![Epson S1C17 Series Скачать руководство пользователя страница 96](http://html.mh-extra.com/html/epson/s1c17-series/s1c17-series_manual_107781096.webp)
S1C17 CORE MANUAL
Seiko Epson Corporation
7-37
(Rev. 1.2)
intl imm5, imm3
Function
Software interrupt with interrupt level setting
Standard) sp
←
sp - 4, A[sp]
←
{psr, pc + 2}, pc
←
TTBR + (vector No. =
imm5
)
×
4,
psr(IL)
←
imm3
Extension 1) Unusable
Extension 2) Unusable
Code
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0 1 1 1 0 1
imm3
imm5
1 1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Flag
IL IE C V Z N
↔
0 – – – –
|
|
|
| |
Mode
Immediate data (unsigned)
CLK
Three cycles
Description
Generates the interrupt of the vector number specified with the
imm5
.
The
intl
instruction saves the address of the next instruction and the contents of the PSR into the
stack, then reads the specified interrupt vector from the vector table and sets it to the PC. By this
processing, the program flow branches to the specified interrupt handler routine. In addition to this,
the
imm3
value is set to the IL bits in the PSR (interrupt level) to disable interrupts of which the
interrupt level is lower than the
imm3
while the interrupt handler routine is executed.
The altered IL bits are restored to the value before the
intl
instruction is executed when the
interrupt handler routine is terminated by the
reti
instruction.
Example
intl 0x3,0x2 ; Generates an external maskable interrupt 0x3
; and set the IL bits to 0x2.