
7542 Group
Rev.3.02 Oct 31, 2006 Page 14 of 134
REJ03B0006-0302
Execute JSR
On-going Routine
M (S)
(PC
H
)
(S)
(S – 1)
M (S)
(PC
L
)
Execute RTS
(PC
L
)
M (S)
(S)
(S – 1)
(S)
(S + 1)
(S)
(S + 1)
(PC
H
)
M (S)
Subroutine
Restore Return
Address
Store Return Address
on Stack
M (S)
(PS)
Execute RTI
(PS)
M (S)
(S)
(S – 1)
(S)
(S + 1)
Interrupt
Service Routine
Restore Contents of
Processor Status Register
M (S)
(PC
H
)
(S)
(S – 1)
M (S)
(PC
L
)
(S)
(S – 1)
(PC
L
)
M (S)
(S)
(S + 1)
(S)
(S + 1)
(PC
H
)
M (S)
Restore Return
Address
I Flag “0” to “1”
Fetch the Jump Vector
Store Return Address
on Stack
Store Contents of Processor
Status Register on Stack
Interrupt request
(Note)
Note : The condition to enable the interrupt Interrupt enable bit is “1”
Interrupt disable flag is “0”
Table 4 Push and pop instructions of accumulator or processor status register
Accumulator
Processor status register
Push instruction to stack
PHA
PHP
Pop instruction from stack
PLA
PLP
Fig. 12 Register push and pop at interrupt generation and subroutine call