![Epson S1C17 Series Скачать руководство пользователя страница 175](http://html.mh-extra.com/html/epson/s1c17-series/s1c17-series_manual_107781175.webp)
7-116
Seiko Epson Corporation
S1C17 CORE MANUAL
(REV. 1.2)
reti
reti.d
Function
Return from interrupt handler routine
Standard)
{psr, pc}
←
A[sp], sp
←
sp + 4
Extension 1) Unusable
Extension 2) Unusable
Code
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0 0 0 0 0 0 0 1 0 0 1 0 1 0
0 0
reti
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
0 0 0 0 0 0 0 1 1 0 1 0 1 0 0 0
reti.d
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Flag
IL IE C V Z N
↔
↔
↔
↔
↔
↔
|
|
|
| |
Mode
–
CLK
reti
Three cycles
reti.d
Two cycles (when a one-cycle delayed slot instruction follows), Three cycles (other)
Description
(1) Standard
reti
Restores the contents of the PC and PSR that were saved to the stack when an interrupt occurred
to the respective registers, and return from the interrupt handler routine. The SP is incremented
by an amount equivalent to four bytes.
(2) Delayed branch (d bit (bit 7) = 1)
reti.d
For the
reti.d
instruction, the next instruction becomes a delayed slot instruction. A delayed
slot instruction is executed before the program returns from the interrupt handler routine.
Interrupts are masked in intervals between the
reti.d
instruction and the next instruction, so
no interrupts occur.
Example
reti
; Return from a interrupt handler routine