Datasheet
Section 2 CPU
Rev. 6.00 Mar. 18, 2010 Page 69 of 982
REJ09B0054-0600
• 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.4. When
EXR is invalid, it is not pushed onto the stack. For details, see section 4, Exception Handling.
PC
(24 bits)
PC
(24 bits)
SP
SP EXR
*
1
Reserved
*
1
*
3
CCR
(SP
*
2
)
Reserved
(a) Subroutine Branch (b) Exception Handling
Notes: 1. When EXR is not used it is not stored on the stack.
2. SP when EXR is not used.
3. Ignored when returning.
Figure 2.4 Stack Structure in Advanced Mode