汇编网首页登录博客注册
pascale的学习博客
博客首页博客互动【做检测题】论坛求助

我的博客

个人首页 |  我的文章 |  我的相册 |  我的好友 |  最新访客 |  文章收藏 |  论坛提问 |  友情链接 |  给我留言  
图片载入中
学习动态
文章收藏
友情链接

[2008-11-30 22:50] 实验6 (2)

assume cs:codesg, ss:stacksg, ds:datasg

stacksg segment
    dw 0h, 0h, 0h, 0h, 0h, 0h, 0h, 0h
stacksg ends


datasg segment
    db '1. display      '
    db '2. brows        '
    db '3. replace      '
    db '4. modfiy       '
datasg ends


codesg segment

start: mov ax, stacksg
       mov ss, ax
       mov sp, 10h

       mov ax, datasg
       mov ds, ax

       mov cx, 4h
       mov bx, 0h

    s: push cx
       mov cx, 4h
       mov di, 0h

   s0: mov al, [bx][di].3h
       and al, 11011111b
       mov [bx][di].3h, al
       inc di
       loop s0

       pop cx
       add bx, 10h
       loop s

       mov ax, 4c00h
       int 21h
codesg ends

end start
评论次数(3)  |  浏览次数(748)  |  类型(汇编作业) |  收藏此文  | 

[  mxl800   发表于  2008-12-01 10:04  ]

恭喜

[  justlikeit_361   发表于  2008-12-01 14:06  ]

恩,没问题.数据段 的0可以不写h.
这些试验 ,都要上机测试.

[  pascale   发表于  2008-12-01 18:22  ]

哦,知道了,

 
 请输入验证码  (提示:点击验证码输入框,以获取验证码