APSR: Application Program Status Register

https://developer.arm.com/documentation/ddi0595/2021-12/AArch32-Registers/APSR—Application-Program-Status-Register

Purpose

  • Holds Program status
  • Holds Control Information

Configuration

  • Only present when AArch32 is supported.

Attributes

  • 32bit register

Accessing APSR

Field Descriptions

313029282726~232221~2019~1615~10987654~0
NZCVQRES0PANRES0GERES0EAIFRES0M

N bit[31]

  • Negative Condition Flag

Z bit[30]

  • Zero Condition Flag
  • Field
    • 1: the result of the last flag-setting inst. was zero
    • 0: otherwise

C bit[29]

  • Carry Condition Flag
  • Field
    • 1: the last flag-setting instruction resulted in a carry condition
    • 0: otherwise

V bit[28]

  • Overflow Condition Flag
  • Field
    • 1: the last flag-setting instruction resulted in an overflow condition
    • 0: otherwise

Q bit[27]

  • Cumulative Saturation Bit
  • Field
    • 1: indicates overflow or saturation occurred in some instructions.
    • 0: otherwise

PAN bit[22]

  • Privileged Access Never

GE bit[15:10]

  • Greater than or Equal flags
  • For Parallel addition and subtraction

E bit[9]

  • Endianess

A bit[8]

SError(SystemError) Exception mask bit

AMeaning
0Exception not masked
1Exception masked

I bit[7]

IRQ mask bit

IMeaning
0Exception not masked
1Exception masked

F bit[6]

FIQ mask bit

FMeaning
0Exception not masked
1Exception masked