Trap Flag - Setting

Setting

The 8086 has no instruction to directly set or reset the trap flag. These operations are done by pushing the flag register on the stack, changing the trap flag bit to what the programmer wants it to be, and then popping the flag register back off the stack. The instructions to set the trap flag are:

  1. PUSHF ; Push flags on stack
  2. MOV BP,SP ; Copy SP to BP for use as index
  3. OR WORD PTR,0100H ; Set TF flag
  4. POPF ; Restore flag Register

Read more about this topic:  Trap Flag

Famous quotes containing the word setting:

    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)

    We don’t arrive at it by standing on one leg or on the first day of our setting out—but though we may jostle one another on the way that is no reason why we should strike or trample—elbowing’s enough.
    George Gordon Noel Byron (1788–1824)

    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)