打印
[ARM入门]

MOV lr,pc指令问题?

[复制链接]
1729|2
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
kkkkxxxx|  楼主 | 2016-11-5 21:10 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
沙发
lenglx| | 2017-1-11 12:40 | 只看该作者

Note
Use of the PC as the base register in the STC instruction is deprecated in ARMv7.

•        Read the word-aligned PC value, that is, the address of the current instruction + 4, with
bits [1:0] forced to zero. The base register of LDC, LDR, LDRB, LDRD (pre-indexed, no write-back),
LDRH, LDRSB, and LDRSH instructions can be the word-aligned PC. This enables PC-relative data
addressing. In addition, some encodings of the ADD and SUB instructions permit their source
registers to be 0b1111 for the same purpose.

使用特权

评论回复
板凳
feelhyq| | 2017-1-11 15:52 | 只看该作者
需要考虑指令的流水线的影响

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

1

主题

1

帖子

0

粉丝