English
Language : 

DR805X Datasheet, PDF (65/79 Pages) Digital Core Design – 8-bit RISC Microcontroller Instructions set details ver 3.10
DR805x Instructions set details
3.33. RETI
- 65 -
Function: Return from interrupt
Description:
RETI pops the high and low-order bytes of the PC successively from
the stack, and restores the interrupt logic to accept additional interrupts
at the same priority level as the one just processed. The stack pointer is
left decremented by two. No other registers are affected; the PSW is not
automatically restored to its pre-interrupt status. Program execution
continues at the resulting address, which is generally the instruction
immediately after the point at which the interrupt request was detected.
If a lower or same-level interrupt is pending when the RETI instruction is
executed, that one instruction will be executed before the pending
interrupt is processed.
Operation:
(PC15-8) ← ((SP))
(SP)
← (SP) - 1
(PC7-0) ← ((SP))
(SP)
← (SP) - 1
Bytes:
1
Cycles:
4
Encoding:
00110010
All trademarks mentioned in this document
are trademarks of their respective owners.
http://www.DigitalCoreDesign.com
http://www.dcd.pl
Copyright 1999-2003 DCD – Digital Core Design. All Rights Reserved.