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

我的博客

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

[2013-02-28 21:59] 实验12

assume cs:codesg

codesg segment
  begin:  mov ax,cs
          mov ds,ax
          mov si,offset do0
          mov ax,0
          mov es,ax
          mov di,200h
          mov cx,offset do0end-offset do0
          cld
          rep movsb
          
          mov ax,0
          mov es,ax
          mov word ptr es:[0*4],200h
          mov word ptr es:[0*4+2],0
          
          mov ax,4c00h
          int 21h
    
    do0:  jmp short do0start
          db 'divide error!'
do0start: mov ax,cs
          mov ds,ax                  
          mov si,202h          ;设置ds:si指向字符串;jmp short do0start占有2个字节           
          mov ax,0b800h
          mov es,ax
          mov di,12*160+36*2   ;设置es:di指向显存空间的中间位置 
          mov cx,13            ;设置cx为字符串长度
     s1:  mov al,[si]
          mov es:[di],al
          inc si
          add di,2
          loop s1
          mov ax,4c00h
          int 21h
do0end:   nop

codesg ends
end begin
评论次数(0)  |  浏览次数(431)  |  类型(汇编作业) |  收藏此文  | 
 
 请输入验证码  (提示:点击验证码输入框,以获取验证码