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 trees stand in the setting sun,
    I in their freckled shade
    Regard the cavalcade of sin,
    Remorse for foolish action done,
    That pass like ghosts regardless, in
    A human image made....
    Philip Larkin (1922–1986)

    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)

    Love is at the root of all healthy discipline. The desire to be loved is a powerful motivation for children to behave in ways that give their parents pleasure rather than displeasure. it may even be our own long-ago fear of losing our parents’ love that now sometimes makes us uneasy about setting and maintaining limits. We’re afraid we’ll lose the love of our children when we don’t let them have their way.
    Fred Rogers (20th century)