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:

    should some limb of the devil
    Destroy the view by cutting down an ash
    That shades the road, or setting up a cottage
    Planned in a government office, shorten his life,
    Manacle his soul upon the Red Sea bottom.
    William Butler Yeats (1865–1939)

    In my dealing with my child, my Latin and Greek, my accomplishments and my money stead me nothing; but as much soul as I have avails. If I am wilful, he sets his will against mine, one for one, and leaves me, if I please, the degradation of beating him by my superiority of strength. But if I renounce my will, and act for the soul, setting that up as umpire between us two, out of his young eyes looks the same soul; he reveres and loves with me.
    Ralph Waldo Emerson (1803–1882)

    Like plowing, housework makes the ground ready for the germination of family life. The kids will not invite a teacher home if beer cans litter the living room. The family isn’t likely to have breakfast together if somebody didn’t remember to buy eggs, milk, or muffins. Housework maintains an orderly setting in which family life can flourish.
    Letty Cottin Pogrebin (20th century)