Mail Archives: djgpp/1996/03/28/00:31:55
The following code keeps giving me two "cannot reload integer constant int 'asm'" errors.
cmds is a member of TCommandSet and I'm compiling with -O3 (compiling without opitimisation
works but is not what I want). How else can I get arround this and what exactly does this
error mean?
------------------------------------------------------
Boolean TCommandSet::has( int cmd )
{
Boolean enabled;
cmd&=0xff;
asm ("
btl %2,%1
xorl %0,%0 <=== I've also tried %2,%2 and %2,%0 and %0,%2
roll $1,%0
"
:"a="(enabled)
:"g"(cmds),"g"(cmd)
);
return enabled;
}
-------------------------------------------------------
Any help will be appreciated,
TIA
Bill
- Raw text -