Trap Flag - Resetting

Resetting

To reset the trap flag, simply replace the OR instruction in the preceding sequence with the instruction:

AND WORD PTR,0FEFFH

The trap flag is reset when the 8086 does a type-1 interrupt, so the single-step mode will be disabled during the interrupt-service procedure.

Status register
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 (bit position)
- - - - O D I T S Z - A - P - C Flags

Read more about this topic:  Trap Flag