| www.delorie.com/archives/browse.cgi | search |
| From: | Bob Berkawitz <oonly AT mailexcite DOT com> |
| 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 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |