Created
May 21, 2023 02:39
-
-
Save punixcorn/fca86baaaa8b144ff21cc34cdde23ebd to your computer and use it in GitHub Desktop.
print.asm
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
;; print a string | |
;; address loaded into bx | |
print_message: | |
pusha | |
mov ah, 0x0e | |
jmp .loop | |
.loop: | |
mov al, [bx] | |
cmp al, 0 | |
je end_print | |
int 10h | |
inc bx | |
jmp .loop | |
end_print: | |
popa | |
ret |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment