Stack Status After Exception Handling; Figure 4.2 Stack Status After Exception Handling; Table 4.3 Status Of Ccr After Trap Instruction Exception Handling - Renesas H8S/2158 User Manual

16-bit single-chip microcomputer h8s family/h8s/2100 series
Table of Contents

Advertisement

Section 4 Exception Handling
The TRAPA instruction fetches a start address from a vector table entry corresponding to a vector
number from 0 to 3, as specified in the instruction code.
Table 4.3 shows the status of CCR after execution of trap instruction exception handling.
Table 4.3
Status of CCR after Trap Instruction Exception Handling
Interrupt Control Mode
0
1
4.6

Stack Status after Exception Handling

Figure 4.2 shows the stack after completion of trap instruction exception handling and interrupt
exception handling.
SP
Note: * Ignored on return.
Rev. 3.00 Jan 25, 2006 page 70 of 872
REJ09B0286-0300
I
Set to 1
Set to 1
Normal mode
CCR
CCR *
PC
(16 bits)

Figure 4.2 Stack Status after Exception Handling

CCR
UI
Retains value prior to execution
Set to 1
Advanced mode
SP
CCR
PC
(24 bits)

Advertisement

Table of Contents
loading

Table of Contents