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

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

python - Django-easy-pdf: xhtml2pdf reporting reportlab 2.2+ is required, but 3.0 installed -

collision detection - C++ library for mesh to mesh intersection: what is available? -