ArcherJhon 发表于 2011-11-18 23:11:53

王爽汇编监测点6.1 改写内存单元中数据

我没有看答案:
他的问题我不知道是什么意思。
start: mov ax,0
      mov ds,ax
      mov dx,0
       ………………
   答案:mov ds:,ax

不知道对不对,去看答案咯

ArcherJhon 发表于 2011-11-18 23:14:14

啊 错了 是 mov cs:,ax
其实在我看答案的一瞬间就知道我会不会是填错了。。。因为dw的数据是存放在cs的代码段中,改写他当然是将cs: 改成 赋值到的 ax 啦。。哎。粗心大意啊。。。字型数据16位 字节数据8位? 不知道对不对。。

ArcherJhon 发表于 2011-11-18 23:17:23

晕。。我是看视频 说检测点我马上来发帖的。。原来还有2题啊。。

ArcherJhon 发表于 2011-11-18 23:18:24

本帖最后由 ArcherJhon 于 2011-11-18 23:20 编辑

监测点 2题: mov ax,cs
                     mov ss,ax
                     mov sp,36

小草稿:15+20=35

ArcherJhon 发表于 2011-11-18 23:21:04

答案 是 mov sp,24h    其实都一样把? 因为我的是十进制

ArcherJhon 发表于 2011-11-18 23:25:01

疑惑:
(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
start:
    mov ax,cs   ;cs为所填第一空
    mov ss,ax
    mov sp,24h    ;此条指令为所填第二空
    mov ax,0
    mov ds,ax
    mov bx,0
    mov cx,8
s:
    push
    pop cs:    ;此条指令为所填第三空
    add bx,2
    loop s
   
    mov ax,4c00h
    int 21h
codesg ends
end start

    push    这个不是放入 ds:的数据吗?   为什么??
    pop cs:    ;此条指令为所填第三空

ArcherJhon 发表于 2011-11-18 23:26:41

。。。太复杂了。。算了算了
页: [1]
查看完整版本: 王爽汇编监测点6.1 改写内存单元中数据