How can ARM's MOV instruction work with a large number as the second operand?

前端 未结 7 2010
陌清茗
陌清茗 2020-12-28 17:23

I just begin to study ARM assembly language, and am not clear about how to use MOV to transfer an immediate number into a register.

From both the ARM reference manual

7条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-28 18:01

    It's somewhat hard to determine if the given constants are within the valid range.

    Like Matthew already mentioned, the assembler lends you hand by replacing given instructions with similar, negating ones, like mov/mvn, cmp/cmn, tst/tne etc.

提交回复
热议问题