From 5bbecdc2f40531ebdc5893c51a5a626c3ded0835 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sat, 5 Jan 2019 22:44:54 +0000 Subject: [PATCH] filo: tweak it a bit more so we get the right layout Also load another sector as we will spill into it inevitably. This isn't a big deal as even in DOS days the loader space was over 60 sectors. --- Kernel/platform-sc114/Makefile | 2 +- Kernel/platform-sc114/loader.s | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Kernel/platform-sc114/Makefile b/Kernel/platform-sc114/Makefile index 15dde8ec..6427e401 100644 --- a/Kernel/platform-sc114/Makefile +++ b/Kernel/platform-sc114/Makefile @@ -49,4 +49,4 @@ clean: image: sdasz80 -o loader.s - sdldz80 -im -b _CODE=0xF800 loader.rel + sdldz80 -im -b _CODE=0xF000 -b _CODE2=0xF200 loader.rel diff --git a/Kernel/platform-sc114/loader.s b/Kernel/platform-sc114/loader.s index 8709a3a9..cc2f4543 100644 --- a/Kernel/platform-sc114/loader.s +++ b/Kernel/platform-sc114/loader.s @@ -37,7 +37,8 @@ ; ; We have 446 bytes of space in the boot sector before the ; partitions that is loaded (and the partition table), but we -; need to load the second sector holding the core of FILO +; need to load the second sector holding the core of FILO and we +; load 2 sectors more so we have room as it expands to be more useful ; start: @@ -46,6 +47,10 @@ start: ld hl, #0x0001 ; Sector 1 ld de, #0x0000 call bread_raw + ld bc, #0xF400 ; Straight after us + ld hl, #0x0002 ; Sector 1 + ld de, #0x0000 + call bread_raw jp boot_begin ; Run FILO ; -- 2.34.1