z80:Opcodes:DI

From Learn @ Cemetech
Revision as of 22:24, 5 February 2016 by Maintenance script (talk | contribs) (Initial automated import)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

The DI Disables the Interrupts (both mode 1 and mode 2).

Syntax

   DI

Effects

Flags preserved

Uses

Useful if you want to use the iy register or shadow registers, which are modified by the OS's interrupts. Be sure to reset iy to flags before returning to the OS.

   ld iy,flags


T-States

4 t-states

See Also

EI,HALT,IM,RETI,RETN,RST