Figure 3-4 Stack Structure after Exception Handling
Even address
SP (ER7)
SP + 1
SP + 2
SP + 3
SP + 4
SP – 4
SP – 3
SP – 2
SP – 1
SP (ER7)
Before exception
handling starts
After exception
handling ends
(a) Stack structure in normal mode
Even address
SP (ER7)
SP + 1
SP + 2
SP + 3
SP + 4
SP – 4
SP – 3
SP – 2
SP – 1
SP (ER7)
Before exception
handling starts
After exception
handling ends
(b) Stack structure in advanced mode
Pushed on stack
Pushed on stack
Legend
Program counter (PC) bits 23 to 16
Program counter (PC) bits 15 to 8
Program counter (PC) bits 7 to 0
Condition code register
Stack pointer
PC
E
:
PC
H
:
PC
L
:
CCR:
SP:
Ignored at return.
1. PC is the address of the first instruction executed after the return from the exception-handling
routine.
2. Registers must be saved and restored by word access or longword access, starting at
an even address.
Notes:
Stack area
Stack area
*
PC
CCR
CCR
H
PC
L
CCR
PC
E
PC
H
PC
L
*
243