aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-07-09 03:42:05 -0400
committerB. Watson <urchlay@slackware.uk>2024-07-09 03:42:05 -0400
commit5d16a27b77cc11f07af73050e2f6d175a57f9f0e (patch)
tree33a51a7dd21d0c5afbe2f94f5c66c825e0ed17d9
parent3d6eed9cd5076e85150467fed62a598f2b1a8176 (diff)
downloadbw-atari8-tools-5d16a27b77cc11f07af73050e2f6d175a57f9f0e.tar.gz
whichbas: fix logic for TRACE/EXTEND (cmd 0x58).
-rw-r--r--whichbas.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/whichbas.c b/whichbas.c
index 7c65355..3e652a7 100644
--- a/whichbas.c
+++ b/whichbas.c
@@ -254,6 +254,8 @@ CALLBACK(handle_cmd) {
}
break;
case 0x58: /* TRACE (optional + or -), EXTEND (BXE; no args) */
+ /* partial: TRACE +/- detected, TRACE without arg can't be
+ told from EXTEND. */
if(nexttok == OP_PLUS || nexttok == OP_MINUS) {
bas_type = BT_TURBO;
print_result();
@@ -262,11 +264,6 @@ CALLBACK(handle_cmd) {
as the regular one, but can't be entered in the editor. Assume
no BXL program contains this token. */
remove_type(BT_BXL);
- if(lineno < 32768) {
- /* EXTEND can't show up in a program except maybe line 32768, e.g.
- EXTEND:SAVE "D:BLAH". */
- remove_type(BT_BXE);
- }
}
break;
case 0x59: /* TEXT or PROCEDURE */