开发者

ARM v7 ADD vs. LDR

Is there any difference between the following instruction (besides flags affection)?

开发者_运维知识库ADD             R6, SP, #0xDC

and

LDR             R6, [SP, #0xDC]


ADD adds numbers, LDR loads data from memory to registers.

ADD R6, SP, #0xDC   -> R6 = SP + 0xDC
LDR R6, [SP, #0xDC] -> R6 = memory_contents_of_address(SP + 0xDC)
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜