From ad7fcd0a3f92f758c8decda880de76d26982cf9d Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Tue, 9 Jul 2024 14:51:06 -0400 Subject: whichbas: re-comment TRACE/EXTEND logic. --- whichbas.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/whichbas.c b/whichbas.c index fdda5bf..9d3c283 100644 --- a/whichbas.c +++ b/whichbas.c @@ -255,7 +255,7 @@ CALLBACK(handle_cmd) { } break; case 0x58: /* TRACE (optional + or -), EXTEND (BXE; no args) */ - /* COMPLETE (except for unlikely direct mode EXTEND) */ + /* COMPLETE */ if(nexttok == OP_PLUS || nexttok == OP_MINUS) { bas_type = BT_TURBO; print_result(); @@ -268,11 +268,11 @@ CALLBACK(handle_cmd) { mode only). The only way to get EXTEND into a BXE program is to do a direct mode command like: EXTEND:SAVE "D:PROG" - ...which of course puts it at line 32768. So if this token - appears on any other line, it must be Turbo's TRACE. */ - if(lineno < 32768) { - remove_type(BT_BXE); - } + ...which of course puts it at line 32768. But this code will + never see that, because we'd already detect EXTENDed BXE + based on the first 2 bytes of the file. + */ + remove_type(BT_BXE); } break; case 0x59: /* TEXT or PROCEDURE */ -- cgit v1.2.3