Trap Flag - Single-step Interrupt

Single-step Interrupt

When a system is instructed to single-step, it will execute one instruction and then stop. The contents of registers and memory locations can be examined; if they are correct, the system can be told to go on and execute the next instruction. The Intel 8086 trap flag and type-1 interrupt response make it quite easy to implement a single-step feature in a 8086-based system. If the trap flag is set, the 8086 will automatically do a type-1 interrupt after each instruction executes. When the 8086 does a type-1 interrupt, it pushes the flag register on the stack.

Read more about this topic:  Trap Flag

Famous quotes containing the word interrupt:

    Never interrupt a murderer, madame.
    Walter Reisch (1903–1963)