Hitachi H8S/2646 Hardware Manual page 66

Hitachi 16-bit single-chip microcomputer h8s/2646 series
Table of Contents

Advertisement

Stack Structure: In advanced mode, when the program counter (PC) is pushed onto the stack in a
subroutine call, and the PC, condition-code register (CCR), and extended control register (EXR)
are pushed onto the stack in exception handling, they are stored as shown in figure 2-5. When
EXR is invalid, it is not pushed onto the stack. For details, see section 4, Exception Handling.
SP
(a) Subroutine Branch
Notes: *1
When EXR is not used it is not stored on the stack.
*2
SP when EXR is not used.
Ignored when returning.
*3
34
Reserved
PC
(24 bits)
Figure 2-5 Stack Structure in Advanced Mode
SP
Reserved
*2
(SP
)
(b) Exception Handling
*1
EXR
*1*3
CCR
PC
(24 bits)

Advertisement

Table of Contents
loading

Table of Contents