assume cs:codesg
codesg segment
mov ax,2000h
mov ss,ax
mov sp,0
add sp,4
pop ax
pop bx
push ax
push bx
pop ax
pop bx
mov ax,4c00h
int 21h
codesg ends
end
王爽老师书上第88页实验三
mov sp,0 将堆栈段的长度设置为0
pop ax 出错
add sp,4只是把sp指针往上移动了4位,实际上堆栈段的长度没有改变
用debug发现的
不知道我说的对不...