aboutsummaryrefslogtreecommitdiff
path: root/whichbas.c
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-07-09 03:14:02 -0400
committerB. Watson <urchlay@slackware.uk>2024-07-09 03:14:02 -0400
commita2a2a8437246ea12bbce0c133538617e49c43a90 (patch)
treec94e677d5f73a1a22eb1d7aa83c33b80228e9b2c /whichbas.c
parent188c35607585e0bd2cf861d1db761754a32cf260 (diff)
downloadbw-atari8-tools-a2a2a8437246ea12bbce0c133538617e49c43a90.tar.gz
whichbas: detect compiled Turbo.
Diffstat (limited to 'whichbas.c')
-rw-r--r--whichbas.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/whichbas.c b/whichbas.c
index 46353bc..2911883 100644
--- a/whichbas.c
+++ b/whichbas.c
@@ -27,6 +27,7 @@ int bas_type = 0x0f; /* start out with all enabled */
#define SRET_UKNOWN_DERIV 10
#define SRET_AMSB 11
#define SRET_EXTENDED_BXE 12
+#define SRET_COMPILED_TURBO 13
#define SRET_NOT_BASIC 32
int script_mode = 0; /* -s flag */
@@ -712,6 +713,9 @@ void detect_foreign(void) {
return;
}
+ if(c == 0xfb && d == 0xc2)
+ foreign("Compiled Turbo BASIC XL", SRET_COMPILED_TURBO);
+
if(c == 0xff && d == 0xff)
foreign("XEX executable (not BASIC at all!)", SRET_NOT_BASIC);