The HLT instruction

Processor halt.

The HLT instruction format

InstructionDescription
HLTHalt program execution until an interrupt or a reset.

The HLT (Halt) instruction puts the processor into the halt state. The processor stops executing instructions and remains in this state until one of the following events occurs: a maskable interrupt (if IF=1), a non-maskable interrupt (NMI), a reset (RESET) or debugging. It is often used in operating systems as an idle instruction.

Processor status flags

CF
No
PF
No
AF
No
ZF
No
SF
No
TF
No
IF
No
DF
No
OF
No