Datasheet

Section 2 CPU
Rev. 3.00 Mar 21, 2006 page 31 of 788
REJ09B0300-0300
Stack structure
In advanced mode, when the program counter (PC) is pushed onto the stack in a subroutine
call, and the PC and condition-code register (CCR) are pushed onto the stack in exception
handling, they are stored as shown in figure 2.4. The extended control register (EXR) is not
pushed onto the stack. For details, see section 4, Exception Handling.
(a) Subroutine Branch (b) Exception Handling
PC
(24 bits)
CCR
PC
(24 bits)
SP
SP
Reserved
Figure 2.4 Stack Structure in Advanced Mode