The HLT instruction
Processor halt.
The HLT instruction format
| Instruction | Description |
|---|---|
| HLT | Halt 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
NoPF
NoAF
NoZF
NoSF
NoTF
NoIF
NoDF
NoOF
No