aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-07-07 03:50:58 -0400
committerB. Watson <urchlay@slackware.uk>2024-07-07 03:50:58 -0400
commit98f3c16ecdcea547046b320316f4e79aa200dde4 (patch)
tree99032ec753f17b3eb11ef3cc8534f68b8936c575
parent4c3a520a15d0cb2b0db1736efe03145bc296de4c (diff)
downloadbw-atari8-tools-98f3c16ecdcea547046b320316f4e79aa200dde4.tar.gz
bas.c: fix OP_HEXCONST brain damage.
-rw-r--r--bas.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/bas.c b/bas.c
index 4bad870..c729e19 100644
--- a/bas.c
+++ b/bas.c
@@ -351,6 +351,11 @@ void walk_code(unsigned int startlineno, unsigned int endlineno) {
tok = program[pos];
switch(tok) {
case OP_NUMCONST:
+ CALL(on_exp_token);
+ pos++;
+ CALL(on_num_const);
+ pos += 6;
+ break;
case OP_HEXCONST:
if(allow_hex_const) {
CALL(on_exp_token);