aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-07-07 04:50:14 -0400
committerB. Watson <urchlay@slackware.uk>2024-07-07 04:50:14 -0400
commit96dc62e466855ba951ea4d89f75e7f081af02987 (patch)
treea5604c594e1cb4103a01dea6ccc2df9a1fcd5b51
parentf97bee398b26ce9f5aa2883ea95a3a31ad436fa5 (diff)
downloadbw-atari8-tools-96dc62e466855ba951ea4d89f75e7f081af02987.tar.gz
whichbas: add HEX$/FIND( op.
-rw-r--r--whichbas.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/whichbas.c b/whichbas.c
index 8bd6d9a..8f44998 100644
--- a/whichbas.c
+++ b/whichbas.c
@@ -284,7 +284,16 @@ CALLBACK(handle_op) {
}
/* 5a: EXOR (infix num op) or BUMP( (pseudo-function, no OP_FUNC_LPAR) */
+
/* 5b: HEX$ (func, takes 1 num arg) or FIND( (pseudo-func, 3 args */
+ if(tok == 0x5b) {
+ if(nexttok == OP_FUNC_LPAR) {
+ remove_type(BT_BXL_BXE);
+ } else {
+ /* BXL/BXE token FIND( includes the (, there's no OP_FUNC_LPAR */
+ remove_type(BT_TURBO);
+ }
+ }
if(tok == 0x5c) {
/* DEC (function, takes str) in TB, HEX$ (function, takes num) in BXL/BXE */