• Registers
Registers R0 through R7 are the same across all CPU modes; they are never banked.
R13 and R14 are banked across all privileged CPU modes except system mode. That is, each mode that can be entered because of an exception has its own R13 and R14. These registers generally contain the stack pointer and the return address from function calls, respectively.
o Aliases:
o R13 is also referred to as SP, the Stack Pointer.
o R14 is also referred to as LR, the Link Register.
o R15 is also referred to as PC, the Program Counter.
CPSR has the following 32 bits.
o M (bits 0–4) is the processor mode bits.
o T (bit 5) is the Thumb state bit.
o F (bit 6) is the FIQ disable bit.
o I (bit 7) is the IRQ disable bit.
o A (bit 8) is the imprecise data abort disable bit.
o E (bit 9) is the data endianness bit.
o IT (bits 10–15 and 25–26) is the if-then state bits.
o GE (bits 16–19) is the greater-than-or-equal-to bits.
o DNM (bits 20–23) is the do not modify bits.
o J (bit 24) is the Java state bit.
o Q (bit 27) is the sticky overflow bit.
o V (bit 28) is the overflow bit.
o C (bit 29) is the carry/borrow/extend bit.
o Z (bit 30) is the zero bit.
o N (bit 31) is the negative/less than bit.