diff options
author | B. Watson <urchlay@slackware.uk> | 2024-07-17 04:40:53 -0400 |
---|---|---|
committer | B. Watson <urchlay@slackware.uk> | 2024-07-17 04:40:53 -0400 |
commit | c150802bc351b221f380e295afe1239ad70de50b (patch) | |
tree | e822b7d2e48ae4f634e7dab00e7d655e00d809b3 /bas.c | |
parent | 944b59a1e25f254694e5c58fddcb461d5a05a5a4 (diff) | |
download | bw-atari8-tools-c150802bc351b221f380e295afe1239ad70de50b.tar.gz |
listbas: support all 256 variable names in Turbo BASIC.
Diffstat (limited to 'bas.c')
-rw-r--r-- | bas.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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++; |