Not sure I remember the conventions rightly, but assuming bit 0 is the
least significant bit ...
If you add a 1 to a bit you can, in effect, propagate it to a more significant
position via carry
If you add two bits together the sum is the XORing of the two
You can do both at once in this case by adding 1 to a
Then use & to isolate bit 1 to test it (ie a bitwise AND with 2)
if (a + 1)& 2 then goto __pause_game
.L00 ; if ( a + 1 ) & 2 then goto __pause_game
; complex statement detected
That ought to be something like what you want
Edited by bogax, Fri Sep 30, 2011 4:50 PM.