This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

CMP vc EORS

Note: This was originally posted on 28th June 2011 at http://forums.arm.com

Can anybody explain me why this code


cmp r0, r1
bne  .exit


is not equivalent to



eors r2, r0, r1
bne  .exit


except that r2 is changed of course !!!

Is the Z flag set when the destination register value is 0 ?
Parents Reply Children
No data