NEC UPD703116 User Manual page 190

32-bit single-chip microcontrollers
Table of Contents

Advertisement

(2) Restore
Recovery from an exception trap is carried out by the DBRET instruction.
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-11 illustrates the restore processing from an exception trap.
190
CHAPTER 7 INTERRUPT/EXCEPTION PROCESSING FUNCTION
Figure 7-10. Exception Trap Processing
CPU processing
Figure 7-11. Restore Processing from Exception Trap
DBRET instruction
PC
PSW
Jump to address of restored PC
User's Manual U14492EJ5V0UD
Exception trap (ILGOP) occurs
DBPC
restored PC
DBPSW
PSW
PSW.NP
1
PSW.EP
1
PSW.ID
1
PC
00000060H
Exception processing
DBPC
DBPSW
By executing the DBRET

Advertisement

Table of Contents
loading

Table of Contents