CrazyEngineers
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Replies
  • swati verma

    MemberNov 1, 2008

    Trap flag when set then single step interrupt will occur after the next instruction.
    Are you sure? This action cannot be undone.
    Cancel
  • Trieu Vi Nguyen

    MemberDec 26, 2012

    how to enable Trap flag? which instruction can do that?
    Are you sure? This action cannot be undone.
    Cancel
  • rahul69

    MemberDec 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.
    Cancel
  • simplycoder

    MemberDec 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.
    Cancel
  • Ankita Katdare

    AdministratorDec 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.
    Cancel
  • Shanu Verma

    MemberOct 5, 2018

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

    Are you sure? This action cannot be undone.
    Cancel
Home Channels Search Login Register