reti
Return from interrupt
Returns from a maskable interrupt routine by popping PC and signaling the device that the interrupt has finished.
2 bytes · 14 cycles
Used in
- Interrupts: im, ei, di and haltZ80 assembly
SZHP/VNC ––––––
- Changes no flag
Forms
retiUsed at the end of a maskable interrupt service routine. The top stack entry is popped into PC, and signals an I/O device that the interrupt has finished, allowing nested interrupts (not a consideration on the TI).
.org 0x8000
reti
halt