Panasonic MN101C00 User Manual page 46

Panaxseries mn101c00 series 8-bit single-chip microcomputers
Table of Contents

Advertisement

Chapter 2 Basic CPU Functions
32
Interrupts
Operation when Returning from Interrupt
After the program POPs the register and other values saved by the interrupt service
routine, an RTI instruction is implemented to return to the program that was being
executed when the interrupt was received.
The processing sequence for the return from interrupt instruction, RTI, is listed
below.
1.
The processor status word (PSW) is pulled from the stack. (SP)
2.
The program counter(PC = return address) is pulled from the stack. (SP+1 to 3)
3.
The handy address register (HA) is pulled from the stack. (SP+4, 5)
4.
The SP is pulled. (SP+6
5.
Execution branches to the address indicated by the PC.
SP)

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mn101c115Mn101c117Mn101cp117

Table of Contents