diff options
author | B. Watson <urchlay@slackware.uk> | 2024-04-29 20:11:28 -0400 |
---|---|---|
committer | B. Watson <urchlay@slackware.uk> | 2024-04-29 20:11:28 -0400 |
commit | 0b8fd380a61805445f1ef25157aa80e22c8e5493 (patch) | |
tree | 55e8223e3d3293a24ff560506946731e08a44ae0 /xexcat.c | |
parent | 550356009c9eadf3c3718d885e6e5dde6c0e1bb9 (diff) | |
download | bw-atari8-tools-0b8fd380a61805445f1ef25157aa80e22c8e5493.tar.gz |
xexcat: detect DOS 1.0 files (and abort).
Diffstat (limited to 'xexcat.c')
-rw-r--r-- | xexcat.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -237,6 +237,14 @@ int main(int argc, char **argv) { /* normalize the $FFFF headers: only the first segment needs one. though if the output is DOS 1.0, it's $0984 instead. */ if(count == 1) { + if(!seg.has_ff_header) { + if(seg.start_addr == 0x0984) { + fprintf(stderr, + SELF ": %s: can't handle DOS 1.0 executables as input\n" + " Convert this file to a regular .xex with xex1to2.\n", + infile); + } + } if(dos1_output) { seg.has_ff_header = 0; fputc(0x84, out); |