Created
February 17, 2012 04:24
-
-
Save emerak/1850635 to your computer and use it in GitHub Desktop.
Gettting the hour of the system without DOS interruptions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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