aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-07-07 02:43:45 -0400
committerB. Watson <urchlay@slackware.uk>2024-07-07 02:43:45 -0400
commitb274f894c0d18a722b04f942bb403d39aa2e41da (patch)
tree14e3b4ec1e2b3f94081650b9c8f9d3f1edb31853
parentc71536ee8e43017bf6abd8f740a29121428f0394 (diff)
downloadbw-atari8-tools-b274f894c0d18a722b04f942bb403d39aa2e41da.tar.gz
bas.c: commentary for allow_hex_const (before I forget what it does).
-rw-r--r--bas.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/bas.c b/bas.c
index 595ed97..4bad870 100644
--- a/bas.c
+++ b/bas.c
@@ -10,8 +10,18 @@
#include "bas.h"
+/* caller's parse_args() should set this for the -v option */
int verbose = 0;
+
+/* hex constants work the same way in Turbo BASIC and BASIC XL/XE: they're
+ exactly like numeric constants, 6-byte BCD FP, but introduced with
+ OP_HEXCONST instead of OP_NUMCONST.
+ If allow_hex_const is set, on_exp_token will be called for OP_HEXCONST.
+ Otherwise, a warning will be printed, on_exp_token will NOT be called,
+ but the constant is skipped the same as a regular numeric, to keep
+ in sync with the token stream. */
int allow_hex_const = 0;
+
unsigned short lomem;
unsigned short vntp;
unsigned short vntd;