• Application PSR (APSR)
The APSR contains the ALU flags: N (negative flag), Z (zero flag), C (carry or borrow flag),
and V (overflow flag). These bits are at the top 4 bits of the APSR. The common use of these
flags is to control conditional branches.
N (bit 31) Set to bit [31] of the result of the executed instruction. When it is “1”, the result has a negative
value (when interpreted as a signed integer). When it is “0”, the result has a positive value or
equal zero.
Z (bit 30) Set to “1” if the result of the executed instruction is zero. It can also be set to “1” after
a compare instruction is executed if the two values are the same.
C (bit 29) Carry flag of the result. For unsigned addition, this bit is set to “1” if an unsigned overflow
occurred