The Cortex-M4 processor
Application program status register
The APSR contains the current state of the condition flags from previous instruction
executions. See the register summary in
assignments are:
Bits
Bit 31
Bit 30
Bit 29
Bit 28
Bit 27
Bits 26:20
Bits 19:16
Bits 15:0
20/260
Table 4. APSR bit definitions
N: Negative or less than flag:
0: Operation result was positive, zero, greater than, or equal
1: Operation result was negative or less than.
Z: Zero flag:
0: Operation result was not zero
1: Operation result was zero.
C: Carry or borrow flag:
0: Add operation did not result in a carry bit or subtract operation resulted in a
borrow bit
1: Add operation resulted in a carry bit or subtract operation did not result in a
borrow bit.
V: Overflow flag:
0: Operation did not result in an overflow
1: Operation resulted in an overflow.
Q: DSP overflow and saturation flag: Sticky saturation flag.
0: Indicates that saturation has not occurred since reset or since the bit was last
cleared to zero
1: Indicates when an SSAT or USAT instruction results in saturation, or indicates a
DSP overflow.
This bit is cleared to zero by software using an MRS instruction.
Reserved.
GE[3:0]: Greater than or Equal flags. See
Reserved.
DocID022708 Rev 6
Table 2 on page 17
for its attributes. The bit
Description
SEL on page 104
PM0214
for more information.
Need help?
Do you have a question about the STM32F4 Series and is the answer not in the manual?
Questions and answers