Peter
pushfpop axor ax,0100h ;set bit 8push axpopf ;tracing mode is now enablednop ;int 1 will be called the first time after this instructionnopnop
pushfpop axand ax,0FEFFh ;reset bit 8push axpopf ;trace mode is now disabled
don't forget to change the int1's vector to your own int1 routine!
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Just set bit 8 of the flag register and every time an instruction has been executed interrupt 1 is called.
example:
pushf
pop ax
or ax,0100h ;set bit 8
push ax
popf
;tracing mode is now enabled
nop ;int 1 will be called the first time after this instruction
nop
nop
pushf
pop ax
and ax,0FEFFh ;reset bit 8
push ax
popf
;trace mode is now disabled
don't forget to change the int1's vector to your own int1 routine!