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

我的博客

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

[2012-12-03 15:12] 实验14

assume cs:code
code segment
    start:  mov ax,0b800H
            mov es,ax 
            
       s:   mov bx,160*12+35*2
            mov byte ptr es:[bx+4],"/"       
            mov byte ptr es:[bx+10],"/"
            mov byte ptr es:[bx+22],":"
            mov byte ptr es:[bx+28],":"

            mov cl,9  
     s1:    mov al,cl 
            cmp al,6 
            je s3 
            cmp al,5 
            je s3 
            cmp al,3 
            je s3 
            cmp al,1 
            je s3 
            call get 
            call show 
            xor al,al 
            add bx,6 
       s3:  dec cl 
            cmp cl,0ffh 
            je S 
            jmp s1 



            
  get:      push cx
            out 70H,al
            in al,71H
            mov ah,al
            mov cl,4
            shr ah,cl
            and al,00001111b
            add ah,30H
            add al,30H
            pop cx
            ret
            
 show:      
            mov byte ptr es:[bx],ah
            mov byte ptr es:[bx+2],al
            ret 
            
code ends
end start
评论次数(0)  |  浏览次数(311)  |  类型(汇编作业) |  收藏此文  | 
 
 请输入验证码  (提示:点击验证码输入框,以获取验证码