CMOS RAM中存储的时间信息

论坛 期权论坛 脚本     
匿名技术用户   2021-1-16 08:07   114   0

assume cs:code

code segment
start:
    mov al, 8
    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 bx, 0b800h
    mov es, bx
    mov bl, 0ah
    mov byte ptr es:[160*12+40*2], ah
    mov byte ptr es:[160*12+40*2+1], bl
    mov byte ptr es:[160*12+40*2+2], al
    mov byte ptr es:[160*12+40*2+3], bl
    mov ax, 4c00h
    int 21h
    code ends
end start

分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:7942463
帖子:1588486
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP