Hitachi H8/300H Series Programming Manual page 250

Table of Contents

Advertisement

SP – 4
SP – 3
SP – 2
SP – 1
Stack area
SP (ER7)
Before exception
handling starts
SP – 4
SP – 3
SP – 2
SP – 1
SP (ER7)
Stack area
Before exception
handling starts
Legend
PC
:
Program counter (PC) bits 23 to 16
E
PC
:
Program counter (PC) bits 15 to 8
H
PC
:
Program counter (PC) bits 7 to 0
L
CCR:
Condition code register
SP:
Stack pointer
Notes:
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.
Figure 3-4 Stack Structure after Exception Handling
SP (ER7)
SP + 1
SP + 2
SP + 3
SP + 4
Pushed on stack
(a) Stack structure in normal mode
SP (ER7)
SP + 1
SP + 2
SP + 3
SP + 4
Pushed on stack
(b) Stack structure in advanced mode
243
CCR
CCR
*
PC
H
PC
L
Even address
After exception
handling ends
CCR
PC
E
PC
H
PC
L
Even address
After exception
handling ends

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents