Commodore 2001-8 User Manual page 134

Table of Contents

Advertisement

PEEK
PRINT
READ
10A
=
PEEK(I)
360 PRINT X,Y,Z
370 PRINT
360
PRINT X,Y
390 PRINT "VALUE" IS";A
400 PRINT A2,B,
410 PRINT MID$(A$,2);
490 READ V,W
B·6
The byte to be stored must be
=
>0 and
<
=255, or an "ILLEGAL QUANTITY" error
will
occur.
The address (I) must be =>0
and
<
=
65535, or an "ILLEGAL QUANTITY"
error will result. POKE works only on RAM
and 110 POKEing. Certain locations will
disturb normal PEr operation unless reset.
It is not possible to POKE the PEEK of a
location into a location inPET ROM.
PEEK is a function of an address and
returns a byte value contained in that
location. BASIC cannot be PEEKed and
PEEK of locations $COOO to $E109 yields a
value of zero.
Sends the data to PEr TV display. BASIC
software calls a subroutine in the system
software and loads the character in the
accumulator.
Prints the value of expressions on the
terminaL If the list of values to be printed
out does not end with a comma (,) or a
semicolon (;), then a carriage returnlline
feed is executed after all the values have
been printed. Strings enclosed in quotes
(") may also be printed. If a semicolon
separates two expressions in the list,
their values are printed nest to each other.
If a comma appears after an expression in
the list, then spaces are printed until the
carriage is at the beginning of the next N
column field (until the carriage is at column
N,2N,3N,4N ...). If there is no list of
expressions to be printed, then a carriage
return is executed.
String expressions may be printed. A
semicolon is not neeeded between string
expressions such as PRINT ASBS "HELLO"
that are to be concatenated.
Reads data into specified variable from a
DATA statement. The first piece of data
read will be the first piece of data listed in
the first data statement of the program.
The second piece of data read will be the
second piece listed in the first DATA
statement, and so on. When all of the data

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pet 2001-8

Table of Contents