aboutsummaryrefslogtreecommitdiff
path: root/bas.c
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-07-17 04:40:53 -0400
committerB. Watson <urchlay@slackware.uk>2024-07-17 04:40:53 -0400
commitc150802bc351b221f380e295afe1239ad70de50b (patch)
treee822b7d2e48ae4f634e7dab00e7d655e00d809b3 /bas.c
parent944b59a1e25f254694e5c58fddcb461d5a05a5a4 (diff)
downloadbw-atari8-tools-c150802bc351b221f380e295afe1239ad70de50b.tar.gz
listbas: support all 256 variable names in Turbo BASIC.
Diffstat (limited to 'bas.c')
-rw-r--r--bas.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/bas.c b/bas.c
index cf03f38..e5df296 100644
--- a/bas.c
+++ b/bas.c
@@ -394,6 +394,11 @@ void walk_code(unsigned int startlineno, unsigned int endlineno) {
while(pos < end) { /* loop over operators */
tok = program[pos];
switch(tok) {
+ case 0: /* Turbo variables numbered >= $80 */
+ CALL(on_exp_token);
+ /* on_exp_token callback better know what to do with $00! */
+ pos += 2;
+ break;
case OP_NUMCONST:
CALL(on_exp_token);
pos++;