您的位置:首页 > 其它

Understanding the nature of ARM PC register

2015-01-10 00:24 190 查看
    In ARM state, the value of the PC is the address of the current instruction plus 8 bytes.

     In Thumb state:

         For B, BL, CBNZ, and CBZ instructions, the value of the PC is the address of the current instruction plus 4 bytes.

         For all other instructions that use labels, the value of the PC is the address of the current instruction plus 4 bytes, with bit[1] of the result cleared to 0 to make it word-aligned.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: