diff options
author | B. Watson <urchlay@slackware.uk> | 2024-07-07 06:03:22 -0400 |
---|---|---|
committer | B. Watson <urchlay@slackware.uk> | 2024-07-07 06:03:22 -0400 |
commit | b13f58cab38be2e0543161aa1eab7760ab1ee3d4 (patch) | |
tree | db33a4d93a0afc8462da79636fd128c0979188fa | |
parent | 5e1afcfaf3f2fa3cee4d2a2f7648880b5cfa5831 (diff) | |
download | bw-atari8-tools-b13f58cab38be2e0543161aa1eab7760ab1ee3d4.tar.gz |
whichbas: improve (%0 %1 %2), (LEFT$ RIGHT$ MID$) op logic.
-rw-r--r-- | whichbas.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); |