王爽汇编+10

根据上一波学习的内容已知,当栈满时继续push或者当栈空时继续pop都将发生栈顶超界的问题。

今天继续巩固push和pop指令

%title插图%num

上图底部有道题

编程,将10000h-1000fh这段空间当作栈空间,初始状态栈空,将ax,bx,ds中的数据入栈。

解题:

mov ax,1000

mov ss,ax

mov sp,0010

push ax

push bx

push ds

发表回复