3-665
INSTRUCTION SET REFERENCE
STIĀSet Interrupt Flag (Continued)
Operation
IF PE=0 (* Executing in real-address mode *)
THEN
IF
<
1; (* Set Interrupt Flag *)
ELSE (* Executing in protected mode or virtual-8086 mode *)
IF VM=0 (* Executing in protected mode*)
THEN
IF IOPL = 3
THEN
IF
<
1;
ELSE
IF CPL
?
IOPL
THEN
IF
<
1;
ELSE
#GP(0);
FI;
FI;
ELSE (* Executing in Virtual-8086 mode *)
#GP(0); (* Trap to virtual-8086 monitor *)
FI;
FI;
Flags Affected
The IF flag is set to 1.
Protected Mode Exceptions
#GP(0)
If the CPL is greater (has less privilege) than the IOPL of the current
program or procedure.
Real-Address Mode Exceptions
None.
Virtual-8086 Mode Exceptions
#GP(0)
If the CPL is greater (has less privilege) than the IOPL of the current
program or procedure.