Chapter 5
Interrupt
5.4 Return from Interrupt Routine
5.4 Return from Interrupt Routine
As you execute the REIT instruction at the end of the interrupt routine, the contents of the FLG register and
the PC that have been saved to the stack area immediately preceding the interrupt sequence are automati-
cally restored. Then control returns to the routine that was under execution before the interrupt request was
acknowledged.
If there are any registers you saved via program in the interrupt routine, be sure to restore them using an
instruction (e.g., POPM instruction) before executing the REIT instruction.
255