aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-07-08 02:15:53 -0400
committerB. Watson <urchlay@slackware.uk>2024-07-08 02:15:53 -0400
commitfbecac46197807f11907b503f90702d1745cab4c (patch)
tree75fb33b6847e86190edfff933f6ffaef28c92a22
parent0fbcfa141b459fb900529e1c194a2e67e31785a7 (diff)
downloadbw-atari8-tools-fbecac46197807f11907b503f90702d1745cab4c.tar.gz
whichbas: commentary on op 0x59.
-rw-r--r--whichbas.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/whichbas.c b/whichbas.c
index fcd4b70..ca4d6b4 100644
--- a/whichbas.c
+++ b/whichbas.c
@@ -292,6 +292,9 @@ CALLBACK(handle_op) {
}
break;
case 0x59: /* INKEY$ (0 arg pseudo-func) in TB, string array separator semicolon in BXL/BXE */
+ /* TODO: it might be better to detect INKEY$ by looking for end of line
+ or statement, or OP_ARR_COMMA. INKEY$ can't be followed by anything else,
+ AFAICT, but I'm not *that* certain yet... */
if(nexttok == OP_NUMCONST || nexttok == OP_HEXCONST || nexttok >= 0x80) {
/* INKEY$ may not be followed by a numeric constant or a variable of any kind */
remove_type(BT_TURBO);