From afea9d769d5af947e55864add23c6af5af9d7072 Mon Sep 17 00:00:00 2001 From: HimbeerserverDE Date: Mon, 12 Sep 2022 15:21:22 +0200 Subject: [PATCH] Initialize the stack --- stage1/boot.asm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/stage1/boot.asm b/stage1/boot.asm index 093eca5..4790053 100644 --- a/stage1/boot.asm +++ b/stage1/boot.asm @@ -12,6 +12,12 @@ mov fs, ax mov gs, ax mov ss, ax +; Initialize the stack +; It grows down, overwriting this code +; I have no idea what this does exactly +mov bp, STAGE2START +mov sp, bp + jmp boot ; Print al register -- 2.44.0