CHAPTER 7 INTERRUPTION/EXCEPTION PROCESSING FUNCTION
294
User’s Manual U14359EJ4V0UM
(2) Restore
Recovery from a debug trap 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.
Figure 7-13 illustrates the restore processing from a debug trap.
Figure 7-13. Restore Processing from Debug Trap
DBRET instruction
PC
PSW
DBPC
DBPSW
Jump to address of restored PC