OPEN
54,8,10
POKE
Open logical file 54 for
IEEE
device 8 and
send secondary address code 10.
data
address
The
POKE
statement
provides the
ability
to store a specified byte value
into
a specified location
in
PET
memory.
Format:
POKE
address,data
where:
is
a numeric
constant
variable, or expression
in
the range 0<address::::;65535 representing an
address in PETs
read/write
(RAM) memory.
is
a numeric
constant
variable, or expression
in
the range 0 <
data::::;
255 representing a byte
va
lue to be stored.
Only RAM and display memory locations are affected by a
POKE.
Examples:
10
POKE
l.A
POKE
32768.ASC("A")-64
PRINT
The PRINT
statement
prints data items
on
the display screen.
Format:
where:
l
PRINTlldata
data,data,
..
" data
?
~data;data;
...
;data
Print data item.
Print data items tabbed.
Print data items continuous.
?
data
(question mark)
is
an
abbreviation accepted by
PET
BASIC for the
word
PRINT.
is
a
constant
variable, or expression represent-
ing a data item
to
be printed. If the data item
is
a string,
it
is
enclosed
in
double
quotation
marks.
Data
Conversions
When
printing
a number,
PET
BASIC prints
it
in standard representation if
it
is
in the range 0.01 ::::;n::::;999999999 and in scientific notation if
it
is
outside
that
range.
143