开发者

ARM v7 ADD vs. LDR

开发者 https://www.devze.com 2023-04-12 17:09 出处:网络
Is there any difference between the following instruction (besides flags affection)? 开发者_运维知识库ADDR6, SP, #0xDC

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

精彩评论

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

关注公众号