X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f From: luisllo AT alumni DOT uv DOT es (Luis) Newsgroups: comp.os.msdos.djgpp Subject: extended inline asm with djgpp Date: 11 Feb 2002 06:19:28 -0800 Organization: http://groups.google.com/ Lines: 25 Message-ID: <6124b64f.0202110619.5aeda0ef@posting.google.com> NNTP-Posting-Host: 80.25.146.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1013437168 2918 127.0.0.1 (11 Feb 2002 14:19:28 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: 11 Feb 2002 14:19:28 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi ciberfolks!! I have a problem using inline asm in my C code with DJGPP. I have read a lot of tutorials in the web, and all seems to be ok, but I always get the same error message when I try to compile the next code: ---------------------------------------------------------------------- #include asm(" pushl %%edx; movl %0,%%eax; mov %1,%%dx; movw %%dx,%%ss:(%%eax); popl %%edx" : : "m" (pcar), "m" (car)); int main(void) { /* stuff */ } ---------------------------------------------------------------------- The error message is the next one: test.c:3: parse error before ':' I'm using a pentium machine with windows Me, and I don't have any idea of why it's not working, am I missing any header file?, please help! Thank you!