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:
“In my dealing with my child, my Latin and Greek, my accomplishments and my money stead me nothing; but as much soul as I have avails. If I am wilful, he sets his will against mine, one for one, and leaves me, if I please, the degradation of beating him by my superiority of strength. But if I renounce my will, and act for the soul, setting that up as umpire between us two, out of his young eyes looks the same soul; he reveres and loves with me.”
—Ralph Waldo Emerson (18031882)
“Though the words Canada East on the map stretch over many rivers and lakes and unexplored wildernesses, the actual Canada, which might be the colored portion of the map, is but a little clearing on the banks of the river, which one of those syllables would more than cover.”
—Henry David Thoreau (18171862)