about summary refs log tree commit diff stats
path: root/translate_subx_baremetal_emulated
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_emulated
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_emulated')
-rwxr-xr-xtranslate_subx_baremetal_emulated2
1 files changed, 1 insertions, 1 deletions
diff --git a/translate_subx_baremetal_emulated b/translate_subx_baremetal_emulated
index 069983ec..881fcef1 100755
--- a/translate_subx_baremetal_emulated
+++ b/translate_subx_baremetal_emulated
@@ -33,7 +33,7 @@ dd if=/dev/zero of=disk.img count=20160  # 512-byte sectors, so 10MB
 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