xPSR (Program Status Register)
The Cortex-M status register — really three registers sharing the same 32 bits.
The APSR holds the arithmetic flags N, Z, C and V plus the saturation flag Q. The IPSR contains the number of the exception currently running, and zero in thread mode, which is how a function can tell whether it was called from an interrupt handler. The EPSR holds execution state, chiefly the T bit and the state of IT blocks. On exception entry the hardware saves the whole xPSR in the exception frame alongside R0–R3, R12, LR and PC.
The T bit is the source of a classic head-scratcher. Cortex-M can only execute Thumb, but the bit is still there and must be one. A function pointer or vector table entry with an even address clears it, and the next instruction raises a UsageFault with INVSTATE — often escalated to a HardFault that tells you very little.