Intel and compatable CPU's Programming Information
prev: CLD Clear Direction Flag
next: CLTS Clear Task-Switched Flag in CR0
CLI -- Clear Interrupt Flag
Opcode Instruction Clocks Description FA CLI 3 Clear interrupt flag; interrupts disabled
IF := 0;
DescriptionCLI clears the interrupt flag if the current privilege level is at least as privileged as IOPL. No other flags are affected. External interrupts are not recognized at the end of the CLI instruction or from that point on until the interrupt flag is set.
Flags AffectedIF := 0
Protected Mode Exceptions#GP(0) if the current privilege level is greater (has less privilege) than the IOPL in the flags register. IOPL specifies the least privileged level at which I/O can be performed.
Real Address Mode ExceptionsNone
Virtual 8086 Mode Exceptions#GP(0) as for Protected Mode