z80:Opcodes:HALT
From Learn @ Cemetech
Revision as of 22:39, 5 February 2016 by Maintenance script (talk | contribs) (Initial automated import)
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.
Contents
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