Xref: news2.mv.net comp.os.msdos.djgpp:4641 From: Brian Drum Newsgroups: comp.os.msdos.djgpp Subject: Newbie Inline ASM Date: Tue, 04 Jun 1996 18:56:08 -0400 Organization: Netcom Lines: 21 Message-ID: <31B4BF08.5FC3@ix.netcom.com> NNTP-Posting-Host: knx-tn5-03.ix.netcom.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp I'm trying to do some SIMPLE inline assembly: main() { asm("movl $4,%eax" ://No output ://No input :"%eax" ); return 0; } It's not supposed to do anyhting except be a test except I get this erro when compiling: D:\DJGPP\Source>gcc test.c test.c: In function `main': test.c:6: invalid `asm': operand number missing after %-letter Could someone please tell me what's wrong with my simple little code snippet. Thanks.