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

我的博客

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

[2011-07-31 13:07] 实验十一,

assume cs:code
date segment
db "Beginer's All-purpose Symbolic Instruction Code.",0
date ends

code segment
 start:
    mov ax,date
    mov ds,ax
    mov si,0
    call letter
    
    mov ax,4c00h
    int 21h
    
    letter:
      push cx
      push si
      
      mov ch,0
      s:
        mov cl,[si]
          jcxz ok
          cmp cl,97
          jb next
          cmp cl,122
          ja next
          and cl,11011111b
          mov [si],cl
          next:
          inc si
          jmp short s
          ok:
          pop si
          pop cx
          ret 
code ends
end start
评论次数(2)  |  浏览次数(484)  |  类型(汇编作业) |  收藏此文  | 

[  chinatree   发表于  2011-07-31 14:25  ]

数字后要加d

[  游客   发表于  2011-08-02 17:30  ]

to 楼上:
数字后加d?

经验证,此程序OK。

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