cli/sti
The clear interrupts and set interrupts instructions dis- or enable hardware interrupts.
Instruction | Encoding | Semantics | Cycles |
---|---|---|---|
cli | 00 110 001 | disable interrupts | 1 |
sti | 00 111 001 | enable interrupts | 1 |
Note that software interrupts (using int
) are unaffected by cli
.
The sequence cli; int 42
would still cause an interrupt.
Note furthermore that returning from the interrupt using iret
would re-enable interrupts.