From 1c490388d13bb0fa3cab4fa245d6e17da1b22b87 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Sun, 24 Jan 2021 11:28:02 -0800 Subject: 7556 --- translate_subx_baremetal | 2 +- translate_subx_baremetal_emulated | 2 +- 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 -- cgit 1.4.1-2-gfad0