可以在debug里直接调试
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
d:\MASM>debug
-a
1472:0100 mov cl,4
1472:0102 mov ax,9321
1472:0105 mov dx,1678
1472:0108 shl ax,1
1472:010A rcl dx,1
1472:010C dec cl
1472:010E jnz 108
1472:0110
-g=100 110
AX=3210 BX=0000 CX=0000 DX=6789 SP=FFEE BP=0000 SI=0000 DI=0000
DS=1472 ES=1472 SS=1472 CS=1472 IP=0110 NV UP EI PL ZR NA PE CY
1472:0110 C3 RET
-q
d:\MASM>
记住,jnz后面的again,在debug里要输入第一个again位置的偏移地址即可。 |