diff options
author | B. Watson <urchlay@slackware.uk> | 2024-07-07 04:50:14 -0400 |
---|---|---|
committer | B. Watson <urchlay@slackware.uk> | 2024-07-07 04:50:14 -0400 |
commit | 96dc62e466855ba951ea4d89f75e7f081af02987 (patch) | |
tree | a5604c594e1cb4103a01dea6ccc2df9a1fcd5b51 | |
parent | f97bee398b26ce9f5aa2883ea95a3a31ad436fa5 (diff) | |
download | bw-atari8-tools-96dc62e466855ba951ea4d89f75e7f081af02987.tar.gz |
whichbas: add HEX$/FIND( op.
-rw-r--r-- | whichbas.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 */ |