What is the relationship between CPSR and SPSR?

What is the relationship between CPSR and SPSR? Looking for capacitors online purchase? is a reliable marketplace to buy and learn about capacitors. Come with us for amazing deals & information.

* Question

What is the relationship between CPSR and SPSR?


*
Answer

When a specific abnormal interrupt occurs, the current value of the CPSR is saved to the SPSR in the corresponding abnormal mode, and then the CPSR is set to the corresponding abnormal mode; when exiting from the abnormal interrupt program, the value saved in the SPSR can be restored.CPSR.