![Hitachi H8/3008 Hardware Manual Download Page 86](http://html.mh-extra.com/html/hitachi/h8-3008/h8-3008_hardware-manual_140473086.webp)
70
4.5
Stack Status after Exception Handling
Figure 4.5 shows the stack after completion of trap instruction exception handling and interrupt
exception handling.
SP–4
SP–3
SP–2
SP–1
SP (ER7)
→
SP (ER7)
SP+1
SP+2
SP+3
SP+4
→
SP–4
SP–3
SP–2
SP–1
SP (ER7)
→
SP (ER7)
SP+1
SP+2
SP+3
SP+4
→
Before exception handling
Before exception handling
After exception handling
Stack area
Stack area
CCR
CCR
PC
PC
CCR
PC
PC
PC
H
L
E
H
L
*
After exception handling
Even address
Even address
Pushed on stack
Pushed on stack
a. Normal mode
b. Advanced mode
Legend
PC
E
:
PC
H
:
PC
L
:
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.
Ignored at return.
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
Figure 4.5 Stack after Completion of Exception Handling
Summary of Contents for H8/3008
Page 1: ...Hitachi 16 Bit Microcomputer H8 3008 Hardware Manual ADE 602 221 Rev 1 0 9 14 00 Hitachi Ltd ...
Page 4: ......
Page 17: ...xii ...
Page 70: ...54 ...
Page 114: ...98 ...
Page 154: ...138 ...
Page 314: ...298 ...
Page 412: ...396 ...
Page 496: ...480 ...