first of all,
1. open command prompt.
2. type "debug" without quote.
Code: Select all
-a100
0AF3:0100 mov ax,3 // enter twice here.
0AF3:0103
-rip
IP 0100
:100 // if not 100, type 100 here.
-r
AX=0000 BX=0000 CX=0000 DX=0000 SP=FFEE BP=0000 SI=0000 DI=0000
DS=0AF3 ES=0AF3 SS=0AF3 CS=0AF3 IP=0100 NV UP EI PL NZ NA PO NC
0AF3:0100 B80300 MOV AX,0003
// since our stack pointer located in ffee
// we will fill it with 0
-f ffe0 ffef 0
-d ffe0 ffef // to see that area, you will see zero
-t // type t (trace) and enter
-d ffe0 ffef // check the stack area again.
0AF3:FFE0 00 00 00 00 03 00 00 00-03 01 F3 0A 57 05 00 00 ............W...
best regards,
Sulaiman Chang