Radio Shack TRS-80 Operation Manual page 47

Hide thumbs Also See for TRS-80:
Table of Contents

Advertisement

MKS$(x)
OPEN"
d
"
b
"fil
"
mo e , ,
ename ,n
Prepares single precision number x for
disk write (random access).
LSET C$
=
MKS$(C!)
Opens a file, assigns mode
(I
=
input,
0
=
output, E
=
output to end of file,
R
=
random),
assigns buffer
b,
specifies
filename and logical record length
n.
OPEN''
R'',1,
''
LIST:1
''
PRINT#b,var name,list . . . . . . . .
.
.
.
.
.
.
.
Writes data to file buffer b (sequential
file).
PUTb,n
RSET string var
PRINT#3,F$
PRINT#l,A$,B$,X,Y,Z
Moves data from file buffer
b
into the
specified record n (random access). If n is
omitted, the current record number is
used.
PUTl,25
Puts string into random access field with
extra spaces
at
the
left.
RSET NAME$
=
"JOHN"
RVN"filename"
. .
.
.
.
.
. .
.
.
.
. .
.
. .
.
.
.
.
Loads and executes program named.
SA VE'
'filename''
,A
RUN"
BLITZ"
Records program from computer memory
to disk. Appending
',A'
specifies ASCII
format. (Refer to your Disk System
Owner's Manual for information on
filenames.)
SAVE"BLITZ"
VSRn(var name) . .
.
.
.
.
.
. .
.
.
.
.
. .
.
.
. .
Calls any one of 10 machine language
subroutines (n
=
0
to 9).
X
=
USR2(DE)
29

Advertisement

Table of Contents
loading

Table of Contents