Message-Id: Date: Thu, 28 Mar 1996 17:09:29 +1200 From: Bill Currie To: djgpp AT delorie DOT com Subject: Assembler problems 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