From f2899b62b997aafc25666f21ea3a754030a8de71 Mon Sep 17 00:00:00 2001 From: Elizabeth Alexander Hunt Date: Mon, 28 Sep 2026 21:08:07 -0700 Subject: Upload from https://github.com/TheHuddle/pr-practice/pull/10/changes --- boot.asm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 boot.asm (limited to 'boot.asm') diff --git a/boot.asm b/boot.asm new file mode 100644 index 0000000..1627135 --- /dev/null +++ b/boot.asm @@ -0,0 +1,29 @@ +MBALIGN equ 1 << 0 +MEMINFO equ 1 << 1 +FLAGS equ MBALIGN | MEMINFO +MAGIC equ 0x1BADB002 +CHECKSUM equ -(MAGIC + FLAGS) + +section .multiboot +align 4 + dd MAGIC + dd FLAGS + dd CHECKSUM + +section .bss +align 16 +stack_bottom: +resb 16384 +stack_top: + +section .text +global _start:function (_start.end - _start) +_start: + mov esp, stack_top + extern kernel + call kernel + cli + +jmp $ + +.end: -- cgit v1.3