Skip to content

Instantly share code, notes, and snippets.

@punixcorn
Created May 21, 2023 02:39
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 punixcorn/fca86baaaa8b144ff21cc34cdde23ebd to your computer and use it in GitHub Desktop.
Save punixcorn/fca86baaaa8b144ff21cc34cdde23ebd to your computer and use it in GitHub Desktop.
print.asm
;; 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