How single stepping can be done in 8086?
By setting the Trace Flag (TF) the 8086 goes to single-step mode. In this mode, after the implementation of every instruction s 8086 generates an internal interrupt and by writing some interrupt service routine we can show the content of desired registers and memory locations. So it is useful for debugging the program.