Skip to content

Instantly share code, notes, and snippets.

@Kazinsal
Created June 3, 2021 23:48
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 Kazinsal/6b7262afd369c7ebd057aea49da1e8fa to your computer and use it in GitHub Desktop.
Save Kazinsal/6b7262afd369c7ebd057aea49da1e8fa to your computer and use it in GitHub Desktop.
;; in: AL=character to print, BL=attribute
print_char:
mov bh, 0
cmp al, 31
ja .tty
mov ah, 9
int 0x10
.tty:
mov ah, 0x0E
int 0x10
ret
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment