filo: tweak it a bit more so we get the right layout
authorAlan Cox <alan@linux.intel.com>
Sat, 5 Jan 2019 22:44:54 +0000 (22:44 +0000)
committerAlan Cox <alan@linux.intel.com>
Sat, 5 Jan 2019 22:44:54 +0000 (22:44 +0000)
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
Kernel/platform-sc114/loader.s

index 15dde8e..6427e40 100644 (file)
@@ -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
index 8709a3a..cc2f454 100644 (file)
@@ -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
 
 ;