Datasheet

Table Of Contents
Section 3 Exception Handling
Rev. 2.00 Jul. 04, 2007 Page 52 of 692
REJ09B0309-0200
3.4 Stack Status after Exception Handling
Figures 3.3 shows the stack after completion of interrupt exception handling.
PC and CCR
saved to stack
SP (ER7)
SP – 1
SP – 2
SP – 3
SP – 4
Stack area
SP + 4
SP + 3
SP + 2
SP + 1
SP (ER7)
Even address
Prior to start of interrupt
exception handling
After completion of interrupt
exception handling
[Legend]
Notes:
CCR
PC
PC
PC
1.
2.
PC shows the address of the first instruction to be executed upon return from the interrupt
handling routine.
Register contents must always be saved and restored in word or longword units, starting from
an even-numbered address.
E
L
H
Bits 23 to 16 of program counter (PC)
Bits 15 to 8 of program counter (PC)
Bits 7 to 0 of program counter (PC)
Condition code register
Stack pointer
PC :
PC :
PC :
CCR:
SP:
E
L
H
Figure 3.3 Stack Status after Exception Handling