denglu191 发表于 2014-5-18 20:29:51

汇编 6.2在代码段中使用栈 程序6.3中出现的问题

本帖最后由 denglu191 于 2014-5-18 20:31 编辑


在循环中的问题 执行push 中 当cx=0005后 问什么会变

当执行完后是这样的不解
assume cs:codesg
codesg segment
   dw 0123h,0456h,0789h,0abch,0defh,0fedh,0cbah,0987h
   dw 0,0,0,0,0,0,0,0
sanrt:    mov ax,cs
          mov ss,ax
   mov sp,32
   mov bx,0
   mov cx,8
s:push cs:
   add bx,2
   loop s
   mov bx,0
   mov cx,8
       s0:pop cs:
   add bx,2
   loop s0
   
   mov ax,4c00h
   int 21h
codesg ends
end sanrt


huha88 发表于 2014-6-30 14:58:02


我来拿奖励的

七月你好 发表于 2014-6-30 15:29:06

我来拿奖励的

HTT_音乐 发表于 2014-6-30 16:27:12

有吗?我执行编译都一直没变啊
页: [1]
查看完整版本: 汇编 6.2在代码段中使用栈 程序6.3中出现的问题