]> git.lizzy.rs Git - loadnothing.git/commitdiff
Initialize the stack
authorHimbeerserverDE <himbeerserverde@gmail.com>
Mon, 12 Sep 2022 13:21:22 +0000 (15:21 +0200)
committerHimbeerserverDE <himbeerserverde@gmail.com>
Mon, 12 Sep 2022 13:21:22 +0000 (15:21 +0200)
stage1/boot.asm

index 093eca5dc4fd7f6b15227e8551c8100f92902a68..47900539159a992d0940eda88858a1847abfd04b 100644 (file)
@@ -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