Skip to content

Instantly share code, notes, and snippets.

@emerak
Created February 17, 2012 04:24
Show Gist options
  • Save emerak/1850635 to your computer and use it in GitHub Desktop.
Save emerak/1850635 to your computer and use it in GitHub Desktop.
Gettting the hour of the system without DOS interruptions
mov AH,04H
int 1AH
mov bh,10h
mov al,dl
div bh
mov bl,al
add bl,30h
mov bh,ah
add bh,30h
mov AL,bl
mov AH,0EH
int 10H
mov AL,bh
mov AH,0EH
int 10H
mov AL,2fh
mov AH,0EH
int 10H
mov ah,00h
mov AL,bh
mov AH,0EH
int 10H
mov AL,2fh
mov AH,0EH
int 10H
mov ah,00h
mov bh,10h
mov al,ch
div bh
mov bl,al
add bl,30h
mov bh,ah
add bh,30h
mov AL,bl
mov AH,0EH
int 10H
mov AL,bh
mov AH,0EH
int 10h
mov ah,00h
mov bh,10h
mov al,cl
div bh
mov bl,al
add bl,30h
mov bh,ah
add bh,30h
mov AL,bl
mov AH,0EH
int 10H
mov AL,bh
mov AH,0EH
int 10H
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment