From 4a0ac0efb79cec0e60e63b837ea74c3ff0491e1a Mon Sep 17 00:00:00 2001 From: spikey Date: Sat, 17 Feb 2024 14:10:42 -0500 Subject: [PATCH] stub boot --- boot/boot.s | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/boot/boot.s b/boot/boot.s index 5d24aae..b9f1494 100644 --- a/boot/boot.s +++ b/boot/boot.s @@ -1,14 +1,20 @@ -mov ah, 0x0e -mov al, 'H' -int 0x10 -mov al, 'E' -int 0x10 -mov al, 'Y' -int 0x10 +; only support mb1 +align equ 1 << 0 +info equ 1 << 1 +flags equ align | info +magic equ 0x1BADB002 +chksum equ - (magic + flags) +section .multiboot + align 4 + dd magic + dd flags + dd chksum -cli -hlt +global _start +extern sysinit -times 510 - ($ - $$) db 0 -dw 0xaa55 +_start: + cli + call sysinit + hlt