aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-07-07 06:03:22 -0400
committerB. Watson <urchlay@slackware.uk>2024-07-07 06:03:22 -0400
commitb13f58cab38be2e0543161aa1eab7760ab1ee3d4 (patch)
treedb33a4d93a0afc8462da79636fd128c0979188fa
parent5e1afcfaf3f2fa3cee4d2a2f7648880b5cfa5831 (diff)
downloadbw-atari8-tools-b13f58cab38be2e0543161aa1eab7760ab1ee3d4.tar.gz
whichbas: improve (%0 %1 %2), (LEFT$ RIGHT$ MID$) op logic.
-rw-r--r--whichbas.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/whichbas.c b/whichbas.c
index 2bb3778..fcad6a0 100644
--- a/whichbas.c
+++ b/whichbas.c
@@ -343,6 +343,9 @@ CALLBACK(handle_op) {
if(nexttok == OP_STRCONST || nexttok >= 0x80) {
/* %0 %1 %2 can't be followed by a string constant *or* a variable */
remove_type(BT_TURBO);
+ } else {
+ /* whereas LEFT$ RIGHT$ MID$ can't be followed by anything else */
+ remove_type(BT_BXL_BXE);
}
}
if(verbose) fprintf(stderr, " bas_type now %02x\n", bas_type);