Stack Status After Exception Handling; Figure 4.6 Stack After Completion Of Exception Handling - Hitachi H8/3062 Hardware Manual

Single-chip microcomputer h8/3062 series; h8/3062b series; h8/3062f-ztat series; h8/3064f-ztat series
Hide thumbs Also See for H8/3062:
Table of Contents

Advertisement

4.5

Stack Status after Exception Handling

Figure 4.6 shows the stack after completion of trap instruction exception handling and interrupt
exception handling.
SP–4
SP–3
SP–2
SP–1
SP (ER7) →
Before exception handling
SP–4
SP–3
SP–2
SP–1
SP (ER7) →
Before exception handling
Legend:
PC
:
Bits 23 to 16 of program counter (PC)
E
PC
:
Bits 15 to 8 of program counter (PC)
H
PC
:
Bits 7 to 0 of program counter (PC)
L
CCR :
Condition code register
SP
:
Stack pointer
Notes: *
Ignored at return.
1.
PC indicates the address of the first instruction that will be executed after return.
2.
Registers must be saved in word or longword size at even addresses.

Figure 4.6 Stack after Completion of Exception Handling

SP (ER7)
SP+1
SP+2
SP+3
Stack area
SP+4
Pushed on stack
a. Normal mode
SP (ER7)
SP+1
SP+2
SP+3
Stack area
SP+4
Pushed on stack
b. Advanced mode
CCR
*
CCR
PC
H
PC
L
After exception handling
CCR
PC
E
PC
H
PC
L
After exception handling
Even address
Even address
93

Advertisement

Table of Contents
loading

Table of Contents