Interrupt Flag - Setting and Clearing

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, setting and/or clearing:

    “The new sound-sphere is global. It ripples at great speed across languages, ideologies, frontiers and races.... The economics of this musical esperanto is staggering. Rock and pop breed concentric worlds of fashion, setting and life-style. Popular music has brought with it sociologies of private and public manner, of group solidarity. The politics of Eden come loud.”
    —George Steiner (b. 1929)

    “The doctrine of those who have denied that certainty could be attained at all, has some agreement with my way of proceeding at the first setting out; but they end in being infinitely separated and opposed. For the holders of that doctrine assert simply that nothing can be known; I also assert that not much can be known in nature by the way which is now in use. But then they go on to destroy the authority of the senses and understanding; whereas I proceed to devise helps for the same.”
    —Francis Bacon (1560–1626)

    “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 (1817–1862)