Created
October 18, 2017 19:46
-
-
Save anonymous/73a0beb14e91f47fd501a1b83eca46e3 to your computer and use it in GitHub Desktop.
This file contains 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
Console_Write_Hex: | |
mov cx, 4 | |
HexLoop: | |
rol bx, 4 | |
mov si, bx | |
and si, 000Fh | |
mov al, byte [si + HexChars] | |
mov ah, 0Eh | |
int 10h | |
loop HexLoop | |
ret | |
HexChars db '0123456789ABCDEF' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment