aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-07-09 14:51:06 -0400
committerB. Watson <urchlay@slackware.uk>2024-07-09 14:51:06 -0400
commitad7fcd0a3f92f758c8decda880de76d26982cf9d (patch)
tree4f01be53bf9f58c21f863d81ec43e5d79590a1b4
parent93bed7b51d4217472ac854b88b6afa406e724e44 (diff)
downloadbw-atari8-tools-ad7fcd0a3f92f758c8decda880de76d26982cf9d.tar.gz
whichbas: re-comment TRACE/EXTEND logic.
-rw-r--r--whichbas.c12
1 files 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 */