delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/12/13/17:45:44

From: "lewi9908" <lewi9908 AT ghc DOT ctc DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Quest about inline asm...
Date: Fri, 13 Dec 2002 14:30:10 -0800
Organization: Posted via Supernews, http://www.supernews.com
Message-ID: <uvknsdoml9c8f1@corp.supernews.com>
References: <uvhqfmcgbgs2f2 AT corp DOT supernews DOT com> <atc588$m3m$3 AT antares DOT lu DOT erisoft DOT se> <3DF9B0CA DOT 9050500 AT mail DOT inf DOT tu-dresden DOT de> <uvju8uis6k4he6 AT corp DOT supernews DOT com> <200212131744 DOT gBDHiDd11835 AT envy DOT delorie DOT com>
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
X-Complaints-To: abuse AT supernews DOT com
Lines: 18
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

> Omit the last colon.
>
> __asm__("pushl %eax"
>         : /*No output*/
>         :"a"(ResultsMod));
As stated in last msg I get the compiler error below with this...

...: invalid 'asm' : operand number missing after %-letter

So I reread the error and remember I needed to use __asm__("pushl %%eax" and
not __asm__("pushl %eax".

So it links now but I still got someways to go on my own...

Thanks for the help...



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019