I've been reversing some assembly code from a game in an ARM platform, and I've found a cmp r2,0h instruction. While looking online for the cmp
instruction, I've noticed that it actually would compare the value in r2
with 0 (pseudo-C will be r2==0
, right?) So I was wondering if 0h has the same meaning? Does 0h equal 0 (unsigned int)?
In general, I find the 'h' after addresses offsets and also after values, so I think it's some kind of flag or something? For example, after the cmp
instruction there's a sub r2,r2,1h
Thanks a lot.
PS: I'm using no$gba debugger if that matters