R01UH0822EJ0100 Rev.1.00
Page 193 of 1041
Jul 31, 2019
RX13T Group
13. Exception Handling
13.3
Acceptance of Exception Events
When an exception occurs, the CPU suspends the execution of the program and processing branches to the exception
handling routine.
13.3.1
Acceptance Timing and Saved PC Value
lists the timing of acceptance and the program counter (PC) value to be saved for each exception event.
13.3.2
Vector and Site for Saving the Values in the PC and PSW
The vector for each type of exception and the site for saving the values of the program counter (PC) and processor status
word (PSW) are listed in
Table 13.1
Acceptance Timing and Saved PC Value
Exception Event
Type of Handling
Acceptance
Timing
Value Saved in BPC or on the Stack
Undefined instruction exception
Instruction canceling
type
During instruction
execution
PC value of the instruction that
generated the exception
Privileged instruction exception
Instruction canceling
type
During instruction
execution
PC value of the instruction that
generated the exception
Floating-point exception
Instruction canceling
type
During instruction
execution
PC value of the instruction that
generated the exception
Reset
Instruction
abandonment type
Any machine cycle
None
Non-maskable
interrupt
During execution of the RMPA,
SCMPU, SMOVB, SMOVF,
SMOVU, SSTR, SUNTIL, and
SWHILE instructions
Instruction
suspending type
During instruction
execution
PC value of the instruction being
executed
Other than above
Instruction
completion type
At the next break
between
instructions
PC value of the next instruction
Interrupt
During execution of the RMPA,
SCMPU, SMOVB, SMOVF,
SMOVU, SSTR, SUNTIL, and
SWHILE instructions
Instruction
suspending type
During instruction
execution
PC value of the instruction being
executed
Other than above
Instruction
completion type
At the next break
between
instructions
PC value of the next instruction
Unconditional trap
Instruction
completion type
At the next break
between
instructions
PC value of the next instruction
Table 13.2
Vector and Site for Saving the Values in the PC and PSW
Exception
Vector
Site for Saving the Values in the PC and PSW
Undefined instruction exception
Fixed vector table
Stack
Privileged instruction exception
Fixed vector table
Stack
Floating-point exception
Fixed vector table
Stack
Reset
Fixed vector table
Nowhere
Non-maskable interrupt
Fixed vector table
Stack
Interrupt
Fast interrupt
FINTV
BPC and BPSW
Other than above
Relocatable vector table (INTB)
Stack
Unconditional trap
Relocatable vector table (INTB)
Stack