Xref: news-dnh.mv.net comp.os.msdos.djgpp:825 Path: news-dnh.mv.net!mv!news.sprintlink.net!psgrain!rainrgnews0!painews0!painews0!nntp Newsgroups: comp.os.msdos.djgpp Subject: Re: inline assembly problem From: buckwalter AT planacc DOT com (daemon) Date: Fri, 07 Jul 1995 13:51:52 -0700 (PDT) References: (none) <1995Jul4 DOT 131029 DOT 18620 AT zippy DOT dct DOT ac DOT uk> Nntp-Posting-Host: pc21.planacc.com Lines: 29 To: djgpp AT sun DOT soe DOT clarkson DOT edu Dj-Gateway: from newsgroup comp.os.msdos.djgpp guest AT dstn02 DOT dct DOT ac DOT uk (Guest) wrote: >Hi, >I have just installed djgpp with gcc version 2.6.3 with maintenance >releases dj112m1.zip - dj112m4.zip and I am trying to compile C code >with inline assembly and setting x86 registers but without any sucess. >I have the file below to try and set the AX register (as a simple >example): >m.c >--- > main() { > > _AX = 0; > } First you need to read up on AT&T assembly as opposed to Intel assembly. This is found by typing 'info as' at the DOS prompt. Then you need to call the function asm() to use inline assembly. How exactly you do this i don't know. But if you figure it out, share! --- /---------------------------------------------------------------------------\ | Damon A. Buckwalter | http://planacc.com/~buckwalter/damon/index.html | |Aspiring Geek/Programmer | T H I S S P A C E F O R R E N T | \---------------------------------------------------------------------------/