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:

    Teaching Black Studies, I find that students are quick to label a black person who has grown up in a predominantly white setting and attended similar schools as “not black enough.” ...Our concept of black experience has been too narrow and constricting.
    bell hooks (b. c. 1955)

    The setting sun is reflected from the windows of the alms-house as brightly as from the rich man’s abode; the snow melts before its door as early in the spring. I do not see but a quiet mind may live as contentedly there, and have as cheering thoughts, as in a palace.
    Henry David Thoreau (1817–1862)

    We should conserve evil just as we should conserve the forests. It is true that by thinning and clearing the forests the earth grew warmer.
    Friedrich Nietzsche (1844–1900)