about summary refs log tree commit diff stats
path: root/translate_subx_baremetal_emulated
diff options
context:
space:
mode:
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 f73f09a5..0e65799a 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 32256 ]  # 63 sectors * 512 bytes per sector
+if [ `stat --printf="%s" disk.bin` -ge 65536 ]  # 128 sectors * 512 bytes per sector (keep this sync'd with boot.hex)
 then
   echo "disk.bin won't all be loaded on boot"
   exit 1