2.4.1. The ALU status flags
The APSR contains the following ALU status flags:
- N
Set when the result of the operation was Negative.
- Z
Set when the result of the operation was Zero.
- C
Set when the operation resulted in a Carry.
- V
Set when the operation caused oVerflow.
A carry occurs if the result of an addition is greater than or equal to 232, if the result of a subtraction is positive, or as the result of an inline barrel shifter operation in a move or logical instruction.
Overflow occurs if the result of an add, subtract, or compare is greater than or equal to 231, or less than –231.