aboutsummaryrefslogtreecommitdiffstats
path: root/src/boot/boot.stage1.print.asm
diff options
context:
space:
mode:
Diffstat (limited to 'src/boot/boot.stage1.print.asm')
-rw-r--r--src/boot/boot.stage1.print.asm21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/boot/boot.stage1.print.asm b/src/boot/boot.stage1.print.asm
new file mode 100644
index 0000000..aff2e0d
--- /dev/null
+++ b/src/boot/boot.stage1.print.asm
@@ -0,0 +1,21 @@
+ ;; boot.stage1.print.asm
+
+ [bits 16]
+_print_string:
+ pusha
+ mov ah, 0x0e
+
+_print_string_loop:
+ cmp byte [bx], 0
+ je _print_string_return
+
+ mov al, [bx]
+ int 0x10
+
+ inc bx
+ jmp _print_string_loop
+
+_print_string_return:
+ popa
+ ret
+ align 4