[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gas and prefix's on x86
From: |
Hans-Bernhard Broeker |
Subject: |
Re: gas and prefix's on x86 |
Date: |
25 Apr 2002 16:59:40 GMT |
Andrew Macleod <address@hidden> wrote:
> I've run into a problem using prefix's in the assembler on an x86 target
[...]
> error saying the '[' is invalid. It does accept the lock prefix if
> its on a seperate line by itself. ie
> lock
> incw [eax]x
> works fine. However, we can't issue that from the asm statement in
> the conmpiler.
Wrong. You can:
asm {
"lock \n incw [eax]x"
}
or, maybe even more obviously:
asm {
lock ; incw [eax]x
}
That's how all prefix operations are supposed to be written in GAS,
AFAIK.
> }
--
Hans-Bernhard Broeker (address@hidden)
Even if all the snow were burnt, ashes would remain.