![NEC mPD17120 Subseries User Manual Download Page 262](http://html.mh-extra.com/html/nec/mpd17120-subseries/mpd17120-subseries_user-manual_249259262.webp)
CHAPTER 18 INSTRUCTION SET
247
18.5.10 Interrupt Instructions
(1)
EI
Enable Interrupt
<1> OP code
00111
000
1111
0000
<2> Function
INTEF
←
1
Enables a vectored interrupt.
The interrupt is enabled, after the instruction next to the EI instruction has been executed.
<3> Example 1
As shown in the following example, the interrupt request is accepted after the instruction next to that, that
has accepted the interrupt, has been completely executed (excluding an instruction that manipulates program
counter). The flow then shifts to the vector address
Note1
.
Notes 1.
The vector address differs, depending on the interrupt to be accepted. Refer to Table 14-
1 Interrupt Source Types.
................
.....................
Generating
interrupt request
MOV
ADD
ADD
0AH,
0BH,
0CH,
#00H
#01H
#01H
Generating
interrupt request
EI
............
DI
EI
..............
MOV
SUB
0AH,
0BH,
#01H
#01H
...........
EI
RET
.....................
Note 2
Interrupt service
Routine (vecter address)
Summary of Contents for mPD17120 Subseries
Page 15: ... x MEMO ...
Page 23: ... MEMO 8 ...
Page 45: ... MEMO 30 ...
Page 49: ... MEMO 34 ...
Page 55: ... MEMO 40 ...
Page 93: ... MEMO 78 ...
Page 99: ... MEMO 84 ...
Page 102: ...CHAPTER 11 ARITHMETIC AND LOGIC UNIT 87 MEMO ...
Page 119: ... MEMO 104 ...
Page 175: ... MEMO 160 ...
Page 199: ... MEMO 184 ...
Page 265: ... MEMO 250 ...
Page 281: ...266 MEMO ...
Page 285: ... MEMO 270 ...
Page 289: ... MEMO 274 ...