Understanding the nature of ARM PC register

来源:互联网 发布:多元统计分析数据下载 编辑:程序博客网 时间:2024/06/06 16:36
    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.
0 0