diff --git a/bootloader/bootloader.asm b/bootloader/bootloader.asm index 5abfc8e..ee11e2c 100644 --- a/bootloader/bootloader.asm +++ b/bootloader/bootloader.asm @@ -12,10 +12,12 @@ skipInc: ;Init CPU registers mov ax, 0x0C70 ;Put bootloader adress in ax register mov ds, ax ;Init data segment + +;Init stack from 0x80000 to 0x8f000 mov ax, 0x8000 -mov ss, ax -mov ax, 0xf000 -mov sp, ax +mov ss, ax ;Set stack segment +mov ax, 0x0f00 +mov sp, ax ;Set stack offset ;Clear the screen call clearScreenIntBios