summaryrefslogtreecommitdiff
path: root/stage1/print.asm
diff options
context:
space:
mode:
authorLizzy Fleckenstein <eliasfleckenstein@web.de>2022-10-06 16:45:17 +0200
committerLizzy Fleckenstein <eliasfleckenstein@web.de>2022-10-06 16:45:17 +0200
commitf8397815545adb7d0da36614e0065aa68453a2e4 (patch)
treea771f526970c6724b2511577dceece8783450a49 /stage1/print.asm
downloadcuddles-f8397815545adb7d0da36614e0065aa68453a2e4.tar.xz
Initial commit
Diffstat (limited to 'stage1/print.asm')
-rw-r--r--stage1/print.asm12
1 files changed, 12 insertions, 0 deletions
diff --git a/stage1/print.asm b/stage1/print.asm
new file mode 100644
index 0000000..3505eb6
--- /dev/null
+++ b/stage1/print.asm
@@ -0,0 +1,12 @@
+; uses eax, ebx
+print_str:
+ mov ah, 0x0E
+.print:
+ mov al, [ebx]
+ cmp al, 0
+ je .return
+ int 0x10
+ inc ebx
+ jmp .print
+.return:
+ ret