王爽汇编语言书第6张,6.4的程序~debug调试退出
assume cs:code,ds:data,ss:stack
data segment
dw 0123h,0456h,0789h,0abch,0defh,0fedh,0cbah,0987h
data ends
stack segment
dw 0,0,0,0,0,0,0,0
stack ends
code segment
start:
mov ax,stack
mov ss,ax
mov sp,16
mov ax,data
mov ds,ax
mov bx,0
mov cx,8
s: push
add bx,2
loop s
mov bx,0
mov cx,8
s0: pop
add bx,2
loop s0
mov ax,4C00H
int 21H
code ends
end start在debug中进行单步调试的时候,会出现这样的问题,我的代码哪里有问题吗?我检查了好几遍,还是没有发现。谢谢谢谢~~~~~
数据和栈都放在CS中就没事,让我很费解呀~~~~ 上去~~~~~~~ 激动人心,无法言表! 楼主加油,鱼C加油!我们都看好你哦! http://zhidao.baidu.com/question/507496582.html 我晕~~都是灌水来啦~~~ 激动人心,无法言表! 冰封丶茶 发表于 2013-5-26 12:21 static/image/common/back.gif
http://zhidao.baidu.com/question/507496582.html
真是被感动的痛哭流涕……
页:
[1]