Skip to content

Instantly share code, notes, and snippets.

Created October 18, 2017 19:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/73a0beb14e91f47fd501a1b83eca46e3 to your computer and use it in GitHub Desktop.
Save anonymous/73a0beb14e91f47fd501a1b83eca46e3 to your computer and use it in GitHub Desktop.
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