arm - Assembly code comparison fails for 0xFFE700DE >0xA -
as loop condition using following code.
cmp r5 , #0xa bge loop
but when value in r5 large, say, ffe700de, comparison fails. because signed value? how can compare unsigned?
use bhs
instruction, unsigned "higher or same" comparison. see instance this list of arm condtion codes.
remember integer registers, value in register cannot really signed or unsigned, it's instruction use interpret value. value bunch of bits.
Comments
Post a Comment