I'm working with code that has the following four assembly instructions:
CPSR_cxsf SPSR_cxsf CPSR_c SPSR_c
I've been having a hard time trying to figure out what the difference between these exception modes is. Can anyone advice?
c, x, s
and f
refers to the different parts of the status registers:
c = Control
x = eXtension
s = Status
f = Flags
The purpose of using e.g. CPSR_c
is that it allows you to update only parts of the status register (in this case the control bits) without affecting the other parts.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With