delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/06/18/15:47:00

Sender: nate AT cartsys DOT com
Message-ID: <376AA142.3CE00491@cartsys.com>
Date: Fri, 18 Jun 1999 12:42:58 -0700
From: Nate Eldredge <nate AT cartsys DOT com>
X-Mailer: Mozilla 4.08 [en] (X11; I; Linux 2.2.10 i586)
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Re: Inline asm producing compile error
References: <7ke2t2$j3d$1 AT murdoch DOT acc DOT Virginia DOT EDU>
Reply-To: djgpp AT delorie DOT com

Clark L. Coleman wrote:
> 
> I am getting "invalid asm: bad operand number", or something very
> similar, out of the compiler (not assembler) for the following code:
> 
> bool FlushTLB(long address) {
>    asm volatile("invlpg %1"
>                 : /* no outputs */
>                 : "m" (address));
>    return TRUE;
> }

Operands are numbered starting with 0.

invlpg %0
-- 

Nate Eldredge
nate AT cartsys DOT com

- Raw text -


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