Datasheet

51
SAM4E [DATASHEET]
Atmel-11157D-ATARM-SAM4E16-SAM4E8-Datasheet_12-Jun-14
12.4.1.9 Application Program Status Register
Name: APSR
Access: Read/Write
Reset: 0x000000000
The APSR contains the current state of the condition flags from previous instruction executions.
N: Negative 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
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.
This bit is cleared to zero by software using an
MRS
instruction.
GE[19:16]: Greater Than or Equal Flags
See “SEL” for more information.
31 30 29 28 27 26 25 24
NZCVQ
23 22 21 20 19 18 17 16
GE[3:0]
15 14 13 12 11 10 9 8
76543210