* better
[mascara-docs.git] / hw / i386.reference / CLI.htm
blob32b514b76289825c71ecaf960c85bff2587af63a
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
2 <HTML>
3 <HEAD>
4 <TITLE>80386 Programmer's Reference Manual -- Opcode CLI</TITLE>
5 </HEAD>
6 <BODY>
7 <B>up:</B> <A HREF="c17.htm">
8 Chapter 17 -- 80386 Instruction Set</A><BR>
9 <B>prev:</B><A HREF="CLD.htm"> CLD Clear Direction Flag</A><BR>
10 <B>next:</B><A HREF="CLTS.htm"> CLTS Clear Task-Switched Flag in CR0</A>
11 <P>
12 <HR>
13 <P>
14 <H1>CLI -- Clear Interrupt Flag</H1>
16 <PRE>
17 Opcode Instruction Clocks Description
19 FA CLI 3 Clear interrupt flag; interrupts disabled
20 </PRE>
23 <H2>Operation</H2>
25 <PRE>
26 IF := 0;
27 </PRE>
29 <H2>Description</H2>
31 CLI clears the interrupt flag if the current privilege level is at least as
32 privileged as IOPL. No other flags are affected. External interrupts are not
33 recognized at the end of the CLI instruction or from that point on until the
34 interrupt flag is set.
36 <H2>Flags Affected</H2>
38 IF := 0
40 <H2>Protected Mode Exceptions</H2>
42 #GP(0) if the current privilege level is greater (has less privilege) than
43 the IOPL in the flags register. IOPL specifies the least privileged level at
44 which I/O can be performed.
46 <H2>Real Address Mode Exceptions</H2>
48 None
50 <H2>Virtual 8086 Mode Exceptions</H2>
52 #GP(0) as for Protected Mode
55 <P>
56 <HR>
57 <P>
58 <B>up:</B> <A HREF="c17.htm">
59 Chapter 17 -- 80386 Instruction Set</A><BR>
60 <B>prev:</B><A HREF="CLD.htm"> CLD Clear Direction Flag</A><BR>
61 <B>next:</B><A HREF="CLTS.htm"> CLTS Clear Task-Switched Flag in CR0</A>
62 </BODY>