about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2021-01-24 11:28:02 -0800
committerKartik Agaram <vc@akkartik.com>2021-01-24 19:43:23 -0800
commit1c490388d13bb0fa3cab4fa245d6e17da1b22b87 (patch)
treecbcc49feb2b62903ac7c6744bdd1b58a24fb10eb
parent09f2f3075a8be46484be2b5900888a8ac4799b75 (diff)
downloadmu-1c490388d13bb0fa3cab4fa245d6e17da1b22b87.tar.gz
7556
-rwxr-xr-xtranslate_subx_baremetal2
-rwxr-xr-xtranslate_subx_baremetal_emulated2
2 files changed, 2 insertions, 2 deletions
diff --git a/translate_subx_baremetal b/translate_subx_baremetal
index d337ffe2..b8e49042 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 65536 ]  # 128 sectors * 512 bytes per sector (keep this sync'd with boot.hex)
+if [ `stat --printf="%s" disk.bin` -ge 64512 ]  # 2 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
diff --git a/translate_subx_baremetal_emulated b/translate_subx_baremetal_emulated
index 0e65799a..ab18fa19 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 65536 ]  # 128 sectors * 512 bytes per sector (keep this sync'd with boot.hex)
+if [ `stat --printf="%s" disk.bin` -ge 64512 ]  # 2 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