P. 20
Statement/
Abbreviation
INPUT/IN.
DATA/D.
READ (no abbr.
RESTORE/RES.
PRINT/P.
PRINT AT/P.
LISTING OF RADIO SHACK'S LEVEL I BASIC
__________
Example______________________________
INPUT X, Y, Z (Computer will request data for
variables X, Y and Z)
INPUT "ANY MESSAGE ON SCREEN"; X (Computer will
print info inside quotes and request data for
variable X)
DATA X, Y, Z (holds data or values of variables
for later READ statements)
) READ X, Y, Z (instructs Computer to READ
values assigned by DATA statements)
RESTORE (instructs Computer to start reading from
first DATA statement)
PRINT X (Computer will print value of X)
PRINT X, "ANY MESSAGE", Y, "ANY MESSAGE";
(, starts printing in next 16-character zone)
(; prints with no spacing)
(; at end of PRINT statement ties in the
next line ie. suppresses carriage return)
Print Modifiers
AT PRINT AT 123, X, Y, Z
PRINT AT X, "ANY MESSAGE"
PRINT AT X + Y
(begins printing at the location defined by
the integer, variable or expression. It must
be in the range of 0 to 1023)