aboutsummaryrefslogtreecommitdiffstats
path: root/src/boot.stage1.print.asm
diff options
context:
space:
mode:
authorkotorifan <kotorifan05@gmail.com>2026-01-31 13:32:57 +0100
committerkotorifan <kotorifan05@gmail.com>2026-02-04 09:01:10 +0100
commitdfe4a33865ef01c5068804f77da844cdebd87f00 (patch)
tree46dd2fe032a0dc0358737147cbfe5cfd1ab60a56 /src/boot.stage1.print.asm
parente0030889e85b070576c40917c649df3338a384df (diff)
downloadkotori-os-dfe4a33865ef01c5068804f77da844cdebd87f00.tar.gz
Added stage 1 of the bootloader + make.sh
Diffstat (limited to 'src/boot.stage1.print.asm')
-rw-r--r--src/boot.stage1.print.asm21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/boot.stage1.print.asm b/src/boot.stage1.print.asm
new file mode 100644
index 0000000..106a4df
--- /dev/null
+++ b/src/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