CMOS RAM中存储的时间信息

CMOS RAM中存储的时间信息

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

 

 

相关文章:

  • 2021-10-17
  • 2021-05-17
  • 2022-12-23
  • 2022-01-22
  • 2021-11-20
  • 2021-12-10
  • 2022-01-05
猜你喜欢
  • 2021-05-27
  • 2021-08-28
  • 2021-06-23
  • 2022-12-23
  • 2021-05-23
  • 2021-07-05
  • 2022-12-23
相关资源
相似解决方案