2.5.1. The ALU status flags

The CPSR 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.

Q

ARM architecture v5E only. Sticky flag (see The Q flag).

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.

Copyright © 2000, 2001 ARM Limited. All rights reserved.ARM DUI 0068B
Non-Confidential