CHAPTER 5 INTERRUPT/EXCEPTION PROCESSING FUNCTION
User’s Manual U13850EJ6V0UD
175
(1) To acknowledge maskable interrupts in service program
Service program of maskable interrupt or exception
(2) To generate exception in service program
Service program of maskable interrupt or exception
...
...
• Save EIPC to memory or register
• Save EIPSW to memory or register
• EI instruction (enables interrupt
acknowledgment)
...
...
• DI instruction (disables interrupt
acknowledgment)
• Restore saved value to EIPSW
• Restore saved value to EIPC
• RETI instruction
...
...
• Save EIPC to memory or register
• Save EIPSW to memory or register
• EI instruction (enables interrupt
acknowledgment)
...
• TRAP instruction
• Illegal opcode
...
• Restore saved value to EIPSW
• Restore saved value to EIPC
• RETI instruction
←
Acknowledgment interrupt such as INTP input.
←
Acknowledgment exception such as TRAP instruction.
←
Acknowledgment exception such as illegal opcode.