SLAA534A June 2013 – June 2020
Interrupt functions must save all the registers that are used, even those that are normally considered callee-saved, except for the special purpose registers PC, SP, and SR.
Interrupts push the SR and PC registers onto the stack and branch to an interrupt handler. To return from an interrupt function, the function must execute the special instruction RETI, which restores the SR register and branches to the PC where the interrupt occurred.