首页 > 编程语言 > 详细

汇编语言(王爽 第三版)实验十四

时间:2016-05-30 18:30:21      阅读:370      评论:0      收藏:0      [点我收藏+]
    assume cs:code
    code segment
s1:    db 9,8,7,4,2,0
s2:    db yy/mm/dd hh:mm:ss,$
start:    mov ax,cs
    mov ds,ax
    mov si,offset s1
    mov di,offset s2
    mov cx,6
s:    push cx
    mov al,ds:[si]
    out 70h,al
    in al,71h

    mov ah,al
    mov cl,4
    shr ah,cl
    and al,00001111b

    add ah,30h
    add al,30h

    mov ds:[di],ah
    mov ds:[di+1],al

    inc si
    add di,3
    pop cx
    loop s

    mov ah,2
    mov bh,0
    mov dh,5
    mov dl,12
    int 10h

    mov dx,offset s2
    mov ah,9
    int 21h

    mov ax,4c00h
    int 21h
    code ends
    end start

 

汇编语言(王爽 第三版)实验十四

原文:http://www.cnblogs.com/monster-prince/p/5543524.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!