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

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -