实验三
1:assume cs:codesg
codesg segment
start:
mov ax, 2000h 2:ax = 2000h
mov ss, ax ss = 2000h
mov sp, 0 sp = 0000h
add sp, 10 sp = 000ah
pop ax ax = 9a50h sp = 000ch
pop bx bx = 3096h sp = 000eh
push ax sp = 000ch ss:sp = 9a50h
push bx sp = 000ah ss:sp = 3096h
pop ax ax = 3096h sp = 000ch ss:sp = 9a50h
pop bx bx = 9a50h sp = 000eh 到达栈底
mov ax, 4c00h
int 21h
codesg ends
end
3:
我的程序是被加载在075a:0000这个内存中的所以要查看psp的内容:
d 075a:0000 0100
075a:0000 CD 20 ...(太多了,省略...) 我的咋是cd21
页:
[1]