Setting and Clearing
The flag may be set or cleared using the CLI (Clear Interrupts), STI (Set Interrupts) and POPF (Pop Flags) instructions.
CLI clears IF (sets to 0), while STI sets IF to 1. POPF pops 16 bits off the stack into the FLAGS register, which means IF will be set or cleared based on the ninth bit on the top of the stack.
Read more about this topic: Interrupt Flag
Famous quotes containing the words setting and/or clearing:
“The world is ... the natural setting of, and field for, all my thoughts and all my explicit perceptions. Truth does not inhabit only the inner man, or more accurately, there is no inner man, man is in the world, and only in the world does he know himself.”
—Maurice Merleau-Ponty (19071961)
“Usually the scenery about them is drear and savage enough; and the loggers camp is as completely in the woods as a fungus at the foot of a pine in a swamp; no outlook but to the sky overhead; no more clearing than is made by cutting down the trees of which it is built, and those which are necessary for fuel.”
—Henry David Thoreau (18171862)