Member • Oct 26, 2008
-
swati vermawhat is the function of trap flag in 8086 microprocessor?
-
Member • Nov 1, 2008
Trap flag when set then single step interrupt will occur after the next instruction.Are you sure? This action cannot be undone. -
Member • Dec 26, 2012
how to enable Trap flag? which instruction can do that?Are you sure? This action cannot be undone. -
Member • Dec 26, 2012
#-Link-Snipped-# There is no specific instruction to set Trap flag. However, u can set it by changing the Trap Flag Bit of the flags register.
Also, The Trap Flag is mainly used for debugging purposes.
Hope it helps!!!Are you sure? This action cannot be undone. -
Member • Dec 30, 2012
<a href="https://en.wikipedia.org/wiki/Trap_flag" target="_blank" rel="nofollow noopener noreferrer">Trap Flag</a>
amazingly explained.Are you sure? This action cannot be undone. -
Administrator • Dec 31, 2012
More amazingly, this thread has thousands of views. It only goes to say engineers are searching for the basics and CE is providing them the answers. 👍
So, here's my two cents:
Trap Flag is used for on-chip debugging. Debuggers can use it for step-by-step execution of a computer program. If 8086 does a type-1 interrupt, Trap Flag is reset. Therefore, the single-step mode will be disabled during the interrupt-service procedure.Are you sure? This action cannot be undone. -
Member • Oct 5, 2018
will any geek tell me what the hell on earth single step execution means ?
Are you sure? This action cannot be undone.