z80:Opcodes:DI

From Learn @ Cemetech
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