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 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)

    High from the summit of a craggy cliff,
    Hung o’er the deep, such as amazing frowns
    On utmost Kilda’s shore, whose lonely race
    Resign the setting sun to Indian worlds,
    The royal eagle draws his vigorous young
    James Thomson (1700–1748)

    The setting was really perfect for a brisk bubbling murder....
    Vladimir Nabokov (1899–1977)