Commodore 2001-8 User Manual page 135

Table of Contents

Advertisement

DATA
RESTORE
REM
STOP
CONT
WAIT
100ATA1,3, -1E3,.04
20 DATA "CBM,INC"
30 DATA PET, "2001"
510 RESTORE
500 REM NOW SET V =0
505REM SET V=O: v=o
506 V=O: REM SET V =0
9000 STOP
WAIT I,J,K
B·7
have been read from the first DATA
statement, the next piece of data to be
read will be the first piece listed in the
second DATA statement of the program.
Attempting to read more data then there is
in all the DATA statements in a program
will cause an "OUT OF DATA" error. The
line number given in the "SYNTAX ERROR"
will refer to the line number where the error
actually is located.
Specifies data, read from left to right.
Information appears in data statements in
the same order as it will be read in the
program.
Strings may be read from DATA
statements. If you want the string to
contain a colon (:) or commas (,), or leading
blanks, you must enclose the string in
double quotes. It is impossible to have a
double quote within string data or a string
literaL (" "ANYTHING" ") is illegal.
Allows the rereading of DATA statements.
After a RESTORE, the next piece of data
read will be the first piece listed in the
first DATA statement, and so on as in a
normal READ operation.
Allows the programmer to put comments
in his program. REM statements are not
executed, but can be branched to. A REM
statement is terminated by end of line, but
not by a":".
In this case, the V
=
0 will never be
executed by BASIC.
In this case V =0 will be executed.
Causes a program to stop execution and to
enter command mode. Prints BREAK IN
LINE 9000 (as per this example). CONT
after a STOP branches to the statement
following the STOP.
A command that can be executed only in
direct mode. Resumes program execution
after STOP, END, or use of STOP key.
A program cannot be resumed after error
condition, editing, CLR, or NEW.
This statement reads the status of memory

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pet 2001-8

Table of Contents