Download Print this page

Radio Shack TRS-80 model III Owner's Manual page 117

Mini-disk operation, trsdos disk operating system, disk basic programming language
Hide thumbs Also See for TRS-80 model III:

Advertisement

TRS-80
MODEL
III
DISK
SYSTEM
Disk-Related Features
Disk basic
provides a powerful
set
of
commands,
statements
and
functions
relating to
disk
i/o
under trsdos. These
fall
into
two
categories:
1
.
File
manipulation: dealing with
files
as
units,
rather
than with
the distinct
records
the
files
contain.
2.
File access:
preparing data
files
for
i/o;
reading
and
writing
to
the
files.
Under
the
heading,
File
Manipulation,
we
will
discuss the
following
commands.
kill
Delete
a
program
or data
file
from
the disk
load
Load
a
basic
program from
disk
merge
Merge
an
ASCII-format
basic
program on
disk
with
one
currently
in
ram
run
"pro
gram"
Load
and
execute
a
basic
program
stored
on
disk
save
Save
the resident
basic
program on
disk
Under
the
heading,
File
Access,
we
will
discuss the
following statements
and
functions.
Statements
OPEN
CLOSE
INPUT
#
LINE
INPUT#
PRINT#
HELD
GET
PUT
LSET
RSET
Functions
CVD
CVI
CVS
EOF
LOC
Open
a
file
for
access
(create the
file if
necessary)
Close
access
to
the
file
Read
from
disk,
sequential
mode
Read
a
line
of
data, sequential
mode
Write
to disk,
sequential
mode
Assign
field
sizes
and
names
to
random-access
file
buffer
Read from
disk,
random
access
mode
Write
to
disk,
random
access
mode
Place value
in
specified buffer
field,
add
blanks
on
the
right to
fill
field
Place value
in
specified buffer
field,
add
blanks
on
the
left
to
fill
field
Restore double-precision
number
to
numeric form
after
GETting
from
disk
Restore
integer
to
numeric form
after
GETting
from
disk
Restore
single-precision
number
to
numeric form
after
GETting
from
disk
Check
to
see
if
end
of
file
encountered during
read
get
current record
number.
116

Advertisement

loading