swati verma
swati verma
Branch Unspecified
05 Oct 2018

What is the function of trap flag in 8086 microprocessor?

what is the function of trap flag in 8086 microprocessor?
swati verma

swati verma

Branch Unspecified
10 years ago
Trap flag when set then single step interrupt will occur after the next instruction.
Trieu Vi Nguyen

Trieu Vi Nguyen

Branch Unspecified
6 years ago
how to enable Trap flag? which instruction can do that?
rahul69

rahul69

Branch Unspecified
6 years ago
Trieu Vi Nguyen 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!!!
simplycoder

simplycoder

Branch Unspecified
6 years ago
Ankita Katdare

Ankita Katdare

Computer Science
6 years ago
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.
Shanu Verma

Shanu Verma

Electrical
5 months ago

will any geek tell me what the hell on earth single step execution means ?

Share this content on your social channels -

Only logged in users can reply.