380 The VIC 20
User
Guide
Sl
ST returns the current value of the
I/O
status. This status
is
set to
certain values depending on the results of the last
input/
output operation.
Format:
ST
ST values are shown in Table H-l.
Status should be checked after execution of any statement
that
accesses
an
external device.
Example:
10
IF
8T(>0
OOTO
500
Branch
on
any
error
50
IF
ST=4
THEN
?"SHORT
BLOCK"
SlR$
STR$ returns the string equivalent of a numeric argument.
Format:
STR$(arg n)
STR$ returns the character string equivalent of the number generated
by
resolving arg
n.
TABU
H·i. ST Values for
I/O
Devices
STBit
ST
Numeric Cassette Cassette
Tape
IEEE
Devices
Position
Value
Tape
Read
Verify
and
Load
Read/Write
0 1
Time
out
write
1 2
Time
out
read
2 4
Short
blol:k
Short
block
3 8
Long block
Long block
4
16
Unrecoverable
Any mismatch
read
error
5
32
Checksum
error
Checksum
error
6
64
End
of
file
EO!
7
128
End
of
tape
End
of
tape
Device
not
present