鱼C论坛

 找回密码
 立即注册
查看: 3284|回复: 3

[争议讨论] 实验6.我的解答

[复制链接]
flyue 该用户已被删除
发表于 2011-9-20 19:59:37 | 显示全部楼层 |阅读模式
提示: 作者被禁止或删除 内容自动屏蔽
小甲鱼最新课程 -> https://ilovefishc.com
发表于 2011-10-13 09:49:57 | 显示全部楼层
貌似你有的地方写错了那,

这是我自己写的,我也不知道对不对,但是能通过编译:lol

assume cs:codesg,ss:stacksg,ds:datasg
stacksg segment
        dw 0,0,0,0,0,0,0,0
stacksg ends
datasg segment
        db '1. display      '
        db '2. brows        '
        db '3. replace      '
        db '4. modify       '
datasg ends
codesg segment
  start:
        mov ax,stacksg
        mov ss,ax
        mov sp,10h
        mov ax,datasg
        mov ds,ax
        mov bx,0

        mov cx,4
      s:
        push cx
        mov si,0
        mov cx,4
     s0:
        mov ax,[bx+3+si]
        and ax,11011111b
        mov [bx+3+si],ax
        inc si
        loop s0

        add bx,10h
        pop cx
        loop s0

        mov ax,4c00h
        int 21h
codesg ends
end start
小甲鱼最新课程 -> https://ilovefishc.com
发表于 2011-10-13 20:50:44 | 显示全部楼层

能编译通过,就单步调试啊,看看结果正不正确,结果正确就对了!!!
小甲鱼最新课程 -> https://ilovefishc.com
发表于 2011-10-14 10:12:05 | 显示全部楼层
嗯,谢谢啦:lol
小甲鱼最新课程 -> https://ilovefishc.com
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2025-9-10 12:30

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表