Skip to main content

cli/sti

The clear interrupts and set interrupts instructions dis- or enable hardware interrupts.

InstructionEncodingSemanticsCycles
cli00 110 001disable interrupts1
sti00 111 001enable interrupts1

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.