diff --git a/loader.nasm b/loader.nasm index f9bbeb4..39c9a84 100644 --- a/loader.nasm +++ b/loader.nasm @@ -26,7 +26,7 @@ db "FAT16 " ; file system type %define STACK_BASE_ADDR 1000h %define PROGRAM_LOAD_ADDR 1000h -%define SEGMENTS_TO_LOAD 4 +%define SEGMENTS_TO_LOAD 2 startMsg db "Starting loader", 0 jumpingToProgramMsg db "Jumping to program..", 0 diff --git a/main.nasm b/main.nasm index a3b6205..ad8d23b 100644 --- a/main.nasm +++ b/main.nasm @@ -396,4 +396,4 @@ updateInterval dd 1_000_000 / 20 restartDelay dd 250_000 %include "commonSubroutines.nasm" -times (3 * 200h) - ($ - $$) db 0 ; take up 3 segments \ No newline at end of file +times (2 * 200h) - ($ - $$) db 0 ; take up 2 segments and assert we don't overflow beyond that \ No newline at end of file