幽〆浅舞丶 发表于 2013-5-25 21:18:02

王爽汇编语言书第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中进行单步调试的时候,会出现这样的问题,我的代码哪里有问题吗?我检查了好几遍,还是没有发现。谢谢谢谢~~~~~

幽〆浅舞丶 发表于 2013-5-25 21:22:52

数据和栈都放在CS中就没事,让我很费解呀~~~~

幽〆浅舞丶 发表于 2013-5-26 07:40:54

上去~~~~~~~

一站幸福 发表于 2013-5-26 11:27:20

激动人心,无法言表!

冰封丶茶 发表于 2013-5-26 11:44:38

楼主加油,鱼C加油!我们都看好你哦!

冰封丶茶 发表于 2013-5-26 12:21:30

http://zhidao.baidu.com/question/507496582.html

幽〆浅舞丶 发表于 2013-5-26 12:21:33

我晕~~都是灌水来啦~~~

bafengao 发表于 2013-5-26 13:09:16

激动人心,无法言表!

幽〆浅舞丶 发表于 2013-5-26 15:50:00

冰封丶茶 发表于 2013-5-26 12:21 static/image/common/back.gif
http://zhidao.baidu.com/question/507496582.html

真是被感动的痛哭流涕……
页: [1]
查看完整版本: 王爽汇编语言书第6张,6.4的程序~debug调试退出