z80:Opcodes:HALT

From Learn @ Cemetech
Jump to: navigation, search


Suspends all actions until the next interrupt.

Note: Since halt does wait for the next interrupt, if you disable interrupts halt will run forever, resulting in a crash. Make sure that you always either know the interrupts will be on, or turn it on right before you use the halt instruction.

Syntax

   halt

Effects

All flags preserved.

Uses

Exactly what it says: if you need a delay, halt will provide a split second delay. You can chain halts

T-States

4 t-states

See Also

DI,EI,NOP