Lee Stewart, on Mon May 20, 2013 2:32 PM, said:
Actually, it's not when R0 is zero but when the least significant nybble (4 bits) is zero, so your test isn't safe.
That can be fixed with the following, assuming you don't have rigid control of the input value:
MOV @MYVAR,R0 ANDI R0,>000F JEQ SKIP SRA R1,0 SKIP
Adamantyr




Send me a message
Find content
Not Telling


