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

我的博客

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

[2008-06-17 20:54] Test 11  Sub program design

图片载入中
assume cs:codesg
datasg segment
    db "Beginner's All-purpose Symbolic Instruction Code.",0
datasg ends

codesg segment
    start:mov ax,datasg
          mov ds,ax
          mov ax,0b800h
          mov es,ax
          mov si,0
          mov di,0
          mov bp,0
          call letterc
          mov ax,4c00h
          int 21h
          
  letterc:mov al,ds:[si]
          mov es:[bp],al
          add bp,2
          cmp al,0
          je ok
          cmp al,61h
          jna s           
          sub al,20h
          mov es:[di+0a0h],al
          mov es:[di+0a1h],4   ;red words mean converting the words
          add di,2
          inc si
          jmp short letterc
        s:inc si
          mov es:[di+0a0h],al
          mov es:[di+0a1h],2  ;green words mean no change to it
          add di,2
          jmp short letterc
          
       ok:ret
codesg ends
end start
评论次数(1)  |  浏览次数(566)  |  类型(汇编作业) |  收藏此文  | 

[  younggay   发表于  2008-06-18 14:47  ]

I can not see your picture clearly !
but your program is OK!
hehehe

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