Experiment 3 Programming, compiling, connecting, tracking

(1) t1.exe  

assume cs:code

segment code

  mov ax,2000H

  mov ss,ax

  mov sp,10

  pop ax

  pop bx

  push ax

  push bx

  pop ax

  pop bx

 

  mov ax,4c00h

  int 21H

code ends

end

(2) The contents of the relevant registers and the contents of the top of the stack

(3)

psp: cpu communicates with the program

Program segment prefix: SA:0

Program start address: SA+10H:0

ds oriented SA

CS:IP points to program SA+10:0

PSP and the program physical address are continuous, but the segment address is different

 

The first two bytes of the content in the PSP are CD20

-d 0760:0

 

 

 

Guess you like

Origin blog.csdn.net/weixin_43495262/article/details/114806709