]> git.lizzy.rs Git - loadnothing.git/blobdiff - stage1/boot.asm
Initialize the stack
[loadnothing.git] / 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