Chapter 3 Programming the
VIC
20
Computer
65
T
ABU
3-1. Special String Symbols
Function Key
String Symbol
Reverse On
CTRL
~
ON
u:a
(Reverse
R)
Reverse Off
CTRL
c;J
OFF
~
(Reverse
Shifted
R)
Home
Cursor
~
HOME
B9I
(Reverse
S)
Clear Screen
Shifted
~
HOME
U (Reverse
Shifted
S)
Cursor
Down
[c6
R
]
00 (Reverse
Q)
Cursor
Up
Shifted
[c6
R
]
D (Reverse
Shifted
Q)
Cursor Right
[C~R)
I!I
(Reverse
]f
Cursor Left
Shifted
(C~R]
.1
(Reverse
Shifted
])
VARIABLES
The concept
of
a variable
is
easy
to
understand. Consider the following
statements:
100
A=B+C
200
?A
These two statements cause the sum
of
two numbers to be displayed.
The two numbers are whatever
Band
C represent at the time the statements
are executed. In the following example
90
B=4.65
95
C
..
3.?2
100
fI"B+C
200
?R
B
is
assigned the value 4.65, while C
is
assigned the value 3.27. Therefore, A
equals 8.37.