From e5c28a46a731a79d02266aa690a90a8f809d0f70 Mon Sep 17 00:00:00 2001 From: kotorifan Date: Sat, 31 Jan 2026 15:22:00 +0100 Subject: A20 enable code added --- src/boot/boot.stage1.print.asm | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/boot/boot.stage1.print.asm (limited to 'src/boot/boot.stage1.print.asm') 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 -- cgit v1.3