about summary refs log tree commit diff stats
path: root/translate_subx_baremetal
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-02-15 12:54:15 -0800
committerKartik K. Agaram <vc@akkartik.com>2021-02-15 12:54:38 -0800
commitd6e2ba80dd01c6a974aceb40d4bcff7e23c047e9 (patch)
tree1b6ac8a25a5e1e0a2d5d0bfa47255754e183b3e6 /translate_subx_baremetal
parent1ec98d402b46cbe90d52c0af04582972e22ca204 (diff)
downloadmu-d6e2ba80dd01c6a974aceb40d4bcff7e23c047e9.tar.gz
7748
Bug in code-size check.

It costs 18 bytes in the boot sector to load 2 tracks of disk (63KB). At
that rate I can load 6 more tracks before I need to perform the drudgery
again of recalculating offsets.
Diffstat (limited to 'translate_subx_baremetal')
-rwxr-xr-xtranslate_subx_baremetal2
1 files changed, 1 insertions, 1 deletions
diff --git a/translate_subx_baremetal b/translate_subx_baremetal
index 80f59f2e..f2d4274d 100755
--- a/translate_subx_baremetal
+++ b/translate_subx_baremetal
@@ -39,7 +39,7 @@ apps/hex < baremetal/boot.hex  > boot.bin
 cat boot.bin a.bin > disk.bin
 dd if=disk.bin of=disk.img conv=notrunc
 
-if [ `stat --printf="%s" disk.bin` -ge 96768 ]  # 3 tracks * 63 sectors per track * 512 bytes per sector (keep this sync'd with boot.hex)
+if [ `stat --printf="%s" disk.bin` -ge 129024 ]  # 4 tracks * 63 sectors per track * 512 bytes per sector (keep this sync'd with boot.hex)
 then
   echo "disk.bin won't all be loaded on boot"
   exit 1