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发现的
不知道我说的对不...
- [crazyman] 你说的当然不对了。呵呵。 sp就是栈顶的位置啊,add sp , 4就相当于将栈顶从0移到4了。你 03/06 20:03