53
CHAPTER 2 APPLICATION OF PROGRAMMING
2
2.7 Interrupt Program
2.7 Interrupt Program
An interrupt program is from an interrupt pointer (I) to the IRET instruction.
The interrupt pointer number (I) varies depending on the interrupt factor. ( Page 273, Section 5.10) When an
interrupt factor occurs, an interrupt program of the interrupt pointer number corresponding to that factor is executed.
(Interrupt program are executed only after the corresponding interrupt factor occurs.)
Main routine
program
Interrupt
program (I0)
Interrupt
program (I29)
Interrupt pointer
Indicates the end
of the main routine
program.
Main routine
program
Interrupt
program (I0)
Interrupt
program (I29)
An interrupt factor for
I0 occurred.
An interrupt factor for
interrupt program (I29) occurred.
Execution
Execution
Execution Execution
IRET
Execution
IRET
Time