EasyManua.ls Logo

Commodore PET - Peek; ST Values for Tape

Commodore PET
447 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
address
PEEK
PEEK
returns the contents of the specified memory location.
PEEK
is
the
function counterpart of the
POKE
statement.
Format:
PEEK(address)
where:
is
a numeric constant. variable, or expression
specifying the address of the location whose
contents
are
to
be
fetched.
o
~
address
~
65535.
Any memory locations from 0 to 65535 can
be
PEEKed
except the block of
system locations from 49152
to
57599; these locations contain the
8K
BASIC in-
terpreter and have been PEEK-protected to discourage examination of proprietary
software. The protected
area
returns a
PEEK
value of
O.
Locations of interest
that
vou
might
want
to
PEEK
at are discussed in Chapter
6.
Examples:
?PEEK(1)
Prints contents of memory location
1.
A=PEEK(20000)
ST
ST
represents the current value of the PETs 1/0 status word. This
word
is
set
to certain values depending on the results of the last
input/output
operation that
affects the status word.
Format:
ST
ST
values for tape cassette 1/0 operations are shown in Table 4-3.
Table
4-3.
ST
Values
for
Tape
1/0
ST Bit
ST Numeric
Tape READ Tape VERIFY
Position
Value
0 1
1 2
2
4
Short black
Short black
3
8 Long black Long black
4
16
Unrecoverable
Any mismatch
read
error
5
32
Checksum
Checksum errer
error
6
64
End
of file
7
-128
End
of tape
End
of tape
162

Table of Contents

Related product manuals