Singlestepping

HOW/CAN i put the processor in a mode where it issues an interrupt every time it has completed 1 intruction? Or maybe a BIOS or dos call that can do this?


Peter


Comments

  • This time it's much easier!

    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!





Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories