4.5 Stack Status after Exception Handling
Figure 4-6 shows the stack after completion of trap instruction exception handling and interrupt
exception handling.
Figure 4-6 Stack after Completion of Exception Handling
SP-4
SP-3
SP-2
SP-1
SP (ER7)
→
SP (ER7)
SP+1
SP+2
SP+3
SP+4
→
Before exception handling
After exception handling
Stack area
CCR
PC
PC
PC
E
H
L
Even address
Pushed on stack
Legend
PCE:
PCH:
PCL:
CCR:
SP:
Notes:
PC indicates the address of the first instruction that will be executed after return.
Registers must be saved in word or longword size at even addresses.
1.
2.
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
79
www.DataSheet4U.com