aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-05-08 16:33:50 -0400
committerB. Watson <urchlay@slackware.uk>2024-05-08 16:33:50 -0400
commit0c5bfe1c03d22dfecf1f4c0571acfdf1673f18db (patch)
tree298f3f1b163997cc0fec3a80c0941ce285daef04
parent8221db255f9cc66af2a9356e5ab68c6fd555ad3a (diff)
downloadbw-atari8-tools-0c5bfe1c03d22dfecf1f4c0571acfdf1673f18db.tar.gz
atrcheck: detect fenders 3-sector loader.
-rw-r--r--atr2xfd.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/atr2xfd.c b/atr2xfd.c
index 5929433..900ec86 100644
--- a/atr2xfd.c
+++ b/atr2xfd.c
@@ -268,6 +268,8 @@ unsigned char superdos2_sig[] = "\x29\x03\x00\x07\x40\x15\xa0";
unsigned char superdos5_sig[] = "\x64\x03\x00\x07\x40\x15\xa9\x07";
unsigned char smartdos_sig[] = "\x00\x03\x00\x07\xd4\x15\x4c\x14";
unsigned char dosxe_sig[] = "\x58\x03\x00\x07\xca\x0c\x4c\x30";
+unsigned char fenders_sig[] = "\x00\x03\x00\x07\x77\xe4\xa0\x00\x8c\x44";
+unsigned char fenders2_sig[] = "\x00\x03\x00\x07\x77\xe4\xa0\x01\x8c\x44";
/* both of these claim to be "Turbo DOS XE version 2.1" */
unsigned char turbodos_sig[] = "\x04\x03\x00\x07\x40\x15\x4c\x16";
@@ -358,6 +360,9 @@ void classify_boot_sector(FILE *f) {
} else if(SIG_MATCH(buf, smartdos_sig)) {
dos_type = "Smart DOS";
bootable = dos2_bootable;
+ } else if(SIG_MATCH(buf, fenders_sig) || SIG_MATCH(buf, fenders2_sig)) {
+ dos_type = "Fenders 3-sector loader";
+ bootable = 1;
} else if(SIG_MATCH(buf, blank_sig)) {
dos_type = "None (empty boot sector)";
bootable = 0;