BASIC Variable Substitution - Chysn/VIC20-wAx2 GitHub Wiki

BASIC variables may be inserted into any wAx command by enclosing the variable name with single quote marks (') in the command.

You may use valid variable names (one- or two-characters), either for floating-point numeric (like 'V' or 'VR') or string (like 'T$' or 'TX$') variables. Variable substitution does not support integer (like 'I%' or 'IX%') variables.

Numeric values from 0-255 are substituted as one-byte hex values ($00 - $FF). Values from 256-65535 are substituted as two-byte hex values ($0100 - $FFFF).

Here are some examples of BASIC variable substitution:

Setting start-of-assembly
10 T = 7000
20 .A 'T' LDA #$00
30 .A *  ETC...
Using as character constant
EX$ = "!"
.A 1800 LDY #'EX$'
Setting a vector interactively
10 INPUT V
20 .A 1800 STA 'V'
30 .A *    STY 'V'+1
Viewing a dynamic range of text
F = 49344:T = 49536
.I 'F' 'T'
Setting a wAx symbol value dynamically
A = 48192
.@V 'A'