From: Bob Berkawitz Newsgroups: comp.os.msdos.djgpp Subject: djgpp assmebly question Date: Thu, 25 Jun 1998 12:37:19 -0600 Organization: Migros-Genossenschafts-Bund Lines: 17 Message-ID: <359298DF.17A1@mailexcite.com> Reply-To: oonly AT mailexcite DOT com NNTP-Posting-Host: 1cust42.tnt14.dfw5.da.uu.net 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 Precedence: bulk I can't get this code to work. I compile it with this command: gcc file.c -o file.exe I get this error: file.c:6: invalid 'asm': operand number missing after %-letter Here is the code. void main() { asm("movl $0, %ecx" :/*no input*/ :/*no output*/ :"%ecx"); } Line six is the line that says: :"%ecx"); Thanks in advance