diff options
Diffstat (limited to 'translate_subx')
-rwxr-xr-x | translate_subx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/translate_subx b/translate_subx index 1d4565c4..2fc62671 100755 --- a/translate_subx +++ b/translate_subx @@ -41,6 +41,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 |