Sender: nate AT cartsys DOT com Message-ID: <376AA142.3CE00491@cartsys.com> Date: Fri, 18 Jun 1999 12:42:58 -0700 From: Nate Eldredge 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> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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