Rev. 1.0, 09/01, page 69 of 904
4.6
Trap Instruction
Trap instruction exception handling starts when a TRAPA instruction is executed. Trap instruction
exception handling can be executed at all times in the program execution state.
The trap instruction exception handling is as follows:
1. The values in the program counter (PC), condition code register (CCR), and extended register
(EXR) are saved in the stack.
2. The interrupt mask bit is updated and the T bit is cleared to 0.
3. A vector address corresponding to the interrupt source is generated, the start address is loaded
from the vector table to the PC, and program execution starts from that address.
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.4 shows the status of CCR and EXR after execution of trap instruction exception handling.
Table 4.4
Status of CCR and EXR after Trap Instruction Exception Handling
CCR
EXR
Interrupt Control Mode
I
UI
I2 to I0
T
0
1
—
—
—
2
1
—
—
0
Legend:
1:
Set to 1
0:
Cleared to 0
—: Retains value prior to execution.
Summary of Contents for H8S/2376 F-ZTAT
Page 24: ...Rev 1 0 09 01 page xxiv of xliv ...
Page 38: ...Rev 1 0 09 01 page xxxviii of xliv ...
Page 44: ...Rev 1 0 09 01 page xliv of xliv ...
Page 60: ...Rev 1 0 09 01 page 16 of 904 ...
Page 96: ...Rev 1 0 09 01 page 52 of 904 ...
Page 116: ...Rev 1 0 09 01 page 72 of 904 ...
Page 148: ...Rev 1 0 09 01 page 104 of 904 ...
Page 284: ...Rev 1 0 09 01 page 240 of 904 ...
Page 422: ...Rev 1 0 09 01 page 378 of 904 ...
Page 634: ...Rev 1 0 09 01 page 590 of 904 ...
Page 656: ...Rev 1 0 09 01 page 612 of 904 ...
Page 668: ...Rev 1 0 09 01 page 624 of 904 ...
Page 780: ...Rev 1 0 09 01 page 736 of 904 ...
Page 796: ...Rev 1 0 09 01 page 752 of 904 ...
Page 806: ...Rev 1 0 09 01 page 762 of 903 ...
Page 808: ...Rev 1 0 09 01 page 764 of 904 ...
Page 921: ...Rev 1 0 09 01 page 877 of 904 ø tBRQOD tBRQOD Figure 24 24 External Bus Request Output Timing ...
Page 938: ...Rev 1 0 09 01 page 894 of 904 ...