reti
Return from interrupt
Returns from a maskable interrupt routine by popping PC and signaling the device that the interrupt has finished.
2 bytes14 cycles
Used in
- Interrupts: im, ei, di and haltZ80 assembly
SZHP/VNC ––––––
- Leaves every flag unchanged
Forms
retiReturns from a maskable interrupt service routine. Pops the top stack entry into PC and signals the I/O device that the interrupt has finished, which allows nested interrupts.
.org 0x8000
reti
halt