ARM寄存器
寄存器是存在于CPU中的存储速度极快的存储器,主要负责储存程序运行过程中需要保存的临时变量和系统环境变量等等.
操作模式
为了处理不同的情况,ARM设置了8中操作模式:(除了user模式,其他的都是特权模式Privileged Mode, user模式不能主动切换到其他模式)
寄存器组织概要
在32-bit的ARM Cortex-A8处理器中的寄存器相应的也是32位的.并且每种不同的操作模式都有一组对应的寄存器阻( 通用寄存器+各自独有的寄存器 ),如图:
从上图可看出,一共有40个32-bit的寄存器:
1. 32个通用寄存器;
r0-r13可以用来储存数据或者地址
r14: Link Register: It receives the return address when the processor executes a
Branch with Link ( BL or BLX ) instruction.
You can treat r14 as a general-purpose register at all other times. Similarly,
the corresponding banked registers r14_mon, r14_svc,