璇玑 发表于 2012-8-17 15:44:09

王爽汇编 6.2 中的问题 求解释 求好人

assume cs:codesg
codesg segment
dw 0123h, 0456h, 0789h, 0abch, 0defh, 0fedh, 0cbah, 0987h
dw 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
"请问这个两句dw中定义的数据地址是不是连续的呢?我在debug中没有看到,我查看cs的地址 没有看到啊"

   mov ax,cs
    mov ss,ax
    mov sp,30h
   
    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

璇玑 发表于 2012-8-17 16:20:24

:L 脑袋木掉了 这幼稚问题问 诶 休息一下果然不错
页: [1]
查看完整版本: 王爽汇编 6.2 中的问题 求解释 求好人