一共有37个寄存器
1. 31个通用寄存器
2. 6个状况寄存器
R13作为仓库指针
R14链接寄存器
1.保存函数回来地址
2. 反常回来地址
R15程序计数器(PC指针)
程序状况寄存器
只要在反常时才有程序状况寄存器
为什么有两个CPSR
SPSR当反常产生时保存CPSR的地址
当反常结束时SPSR将之前保存的地址给CPSR
程序状况寄存器的数据格式
NIs set to bit 31 of the result of the instruction. If this result is regarded as a twos complement
signed integer, then N = 1 if the result is negative and N = 0 if it is positive or zero.
ZIs set to 1 if the result of the instruction is zero (this often indicates anequalresult from a
comparison), and to 0 otherwise.
I bit Disables IRQ interrupts when it is set.
F bitDisables FIQ interrupts when it is set.
M 标识处理器的作业形式
获取和设置作业形式