about summary refs log tree commit diff stats
path: root/translate_subx_emulated
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-07-22 03:58:54 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-07-22 03:58:54 -0700
commit5aea0c11b762a860b59e664dbd4bc3b9185934e0 (patch)
treeb254131081659f6406c2acb3138d9ad31b12e16f /translate_subx_emulated
parentd0f39e75ca761bb9c5fa6889ea0703e3700990a2 (diff)
downloadmu-5aea0c11b762a860b59e664dbd4bc3b9185934e0.tar.gz
update memory map doc and anticipate a gotcha
Diffstat (limited to 'translate_subx_emulated')
-rwxr-xr-xtranslate_subx_emulated6
1 files changed, 6 insertions, 0 deletions
diff --git a/translate_subx_emulated b/translate_subx_emulated
index a101c336..d6fc009b 100755
--- a/translate_subx_emulated
+++ b/translate_subx_emulated
@@ -45,6 +45,12 @@ then
   exit 1
 fi
 
+if [ `stat --printf="%s" a.bin` -ge 492544 ]  # 15 tracks * 63 sectors per track * 512 bytes per sector
+then
+  echo "a.bin will overwrite BIOS/Video memory; you'll need to adjust boot.subx to load code to some other non-contiguous area of memory"
+  exit 1
+fi
+
 # Latter half of disk is for debug info.
 dd if=labels of=code.img seek=10080 conv=notrunc  # keep this sync'd with abort.subx
 if [ `stat --printf="%s" labels` -ge 524288 ]  # 4 reads * 256 sectors * 512 bytes per sector