EasyManua.ls Logo

Tandy TRS-80 - Page 96

Tandy TRS-80
104 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...
APPENDIX
H.
BASIC
WORD
DISCUSSED
CVNistring
variable)
50
Converts
a
5-byte coded
string
(created by
MKN$) back to
the number it
represents.
x=cvnia$)
DIRdrive
number
11
Displays a
directory
of the disk
in the drive
number
you
specify. If you omit
the
drive
number, the
Computer will use
drive 0. (Unless you use
the DRIVE com-
mand to
change
this default.)
This is
a
typical
directory display:
MYPROG
BAS B 3
Y0URPR0G
BAS A 1
HERDATA
DATA 1
A 5
USRPROG
BIN 2 B
2
The
first column
is the name
of the file. The second
column is its
extension. The
third is the
file type
(0
=
BASIC program,
1
=
BASIC data file, 2
=
machine lan-
guage
file, 3
=
editor source file).
The fourth column is the
storage format
(A
=
ASCII, B
=
Binary).
The fifth column is the
file length in granules.
DIR0
DIR
DRIVE drive
number
11-15
Changes the
drive default to
the drive
number
you
specify.
If
you do
not use the
DRIVE
command, the
Computer
will default to drive 0.
DRIVE 1
DSKINIdriue
number
8
Formats a
disk
in the drive
number you specify.
Executing this
command will
erase
memory.
DSKINI0
DSKINI1
DSKI$ drive
number, track,
sector, string
variablel, string variable2
61-62
Inputs data
from a
certain sector
within
a
certain track
on the disk in
drive
number. The first 128 bytes
of data are
input into string
variablel; the
second
128 bytes
into string
variable2.
DSKI$
0.
12
.
3i M* t N$
DSKO$
drive^number,
track,
sector, stringl, string2
61-62
Outputs
stringMata
into the sector,
track, and drive
number
you
specify,
stringl
is output
into
the first
128
bytes
of the
sector; string2 is output
into the second
128 bytes. Used
improperly, this command
could garble the
contents of the
disk.
DSK0$ 0, 2,
1 , "FIRST
DATA", "SECOND DATA"
EOF
(buffer)
27
Returns a
if there
is more data to be
read in the
buffer
and
a
-
1
if there is
no
more data
in it. (See OPEN
for
buffer
numbers.)
IF
EOFU)
= -1
THEN CLOSE
«1
FIELD
#
buffer,
field
size
AS
field
name, . .
.
48-49
Organizes
the space
within a
direct access
buffer
into fields. (See
OPEN for
buffer
numbers.) You
specify the size and
name of each
field.
FIELD
»1»
10 AS A*. 12
AS B$
.
5 AS C$
86

Related product manuals