CHAPTER 7 INTERRUPT/EXCEPTION PROCESSING FUNCTION
169
User’s Manual U15195EJ5V0UD
(2) Restore
Returning from debug trap processing is carried out by the DBRET instruction. By executing the DBRET
instruction, the CPU carries out the following processing and controls the address of the restored PC.
(1) Loads the restored PC and PSW from DBPC and DBPSW.
(2) Transfers control to the address indicated by the restored PC and PSW.
Caution DBPC and DBPSW can be accessed during the period between when the DBTRAP is
executed and when the DBRET instruction is executed.
Figure 7-13 illustrates the processing for restoring from a debug trap.
Figure 7-13. Processing for Restoring from Debug Trap
DBRET instruction
PC
PSW
DBPC
DBPSW
Jump to address of restored PC