Section 2 CPU
Rev. 3.00 Mar. 14, 2006 Page 22 of 804
REJ09B0104-0300
•
Exception Vector Table and Memory Indirect Branch Addresses
In normal mode, the top area starting at H'0000 is allocated to the exception vector table. One
branch address is stored per 16 bits. The structure of the exception vector table is shown in
figure 2.2.
H'0000
H'0001
H'0002
H'0003
Reset exception vector
Reset exception vector
Exception
vector table
Figure 2.2 Exception Vector Table (Normal Mode)
The memory indirect (@@aa:8) and extended memory indirect (@@vec:7) addressing modes
are used in the JMP and JSR instructions. An 8-bit absolute address included in the instruction
code specifies a memory location. Execution branches to the contents of the memory location.
•
Stack Structure
The stack structure of PC at a subroutine branch and that of PC and CCR at an exception
handling are shown in figure 2.3. The PC contents are saved or restored in 16-bit units.
(a) Subroutine Branch
(b) Exception Handling
PC
(16 bits)
EXR
*
1
Reserved
*
1
,
*
3
CCR
CCR
*
3
PC
(16 bits)
SP
SP
Notes: 1.
2.
3.
When EXR is not used it is not stored on the stack.
SP when EXR is not used.
Ignored on return.
(SP )
*
2
Figure 2.3 Stack Structure (Normal Mode)
electronic components distributor