Download Print this page

Radio Shack TRS-80 100 Quick Reference Manual page 17

Hide thumbs Also See for TRS-80 100:

Advertisement

The
Cassette Recorder/Player
(CAS)
File
Namo
a
tot
CaMttte
Fl
lea
Cassette
hie
names
constsi of
a
(W«ng o1
one
to
si*
characters
.
the
first
ol
which
is
a
Wiwi
Tfwto
is
tio
nnexl
lor
an
exienscn
.
Foi
example.
ACCTW
UEM1ST
Cl
•-•:>:
C«n«tt«
Comma
nd*
C
LOAD
"fH«naf»e
".
R
Clears
IM
current
BASIC
p
«ograi»
and
loadsaBASICD'iKjra/nliomcassoneupo R.H
present.
te-Us
BASIC»
tun Iheprc^ramatte*
loading
It
CLOAD'ACCIS
R
CLOAO
CLOAD?
'itonavne
Compares
(Pe
cassette
Mo
tilenafe
with the
BASIC
prog
ram
currently
In
rmernory.lt
there a>e
any
differences.
BASC
displays l*o
message
Verify
tmiea on
in* screen: otherwise.
BASIC
inw
prirtls
OK
CLOAD'
ACCT
CLOAOM
WmM"
Loads themachrne-fa^auagep-ooTamcanea
MMvnQ
*ro
m
cas
setie
tape
in
to
memory,
at
the address
usod
when
it
was
written
to
the
cassette
tape
clcaom
tvewrsT
cloahw
C LOSE
»rt
number
Mil
Coses
me
hies
OPEN
ed as
ffle
number
CLOSFI.P.3
CCSfc
CSAVE
"fflenante".*
Stores
me
current
BASIC
program
on
(asftOTtetapflassrowne
rVitptesont.toiisBASlCWBavGme
programinASC"
formal
IfOiMtted.BASlCstoresmeptoqrarmna
COmp'fiSSWl
Dinar)
torm.
CSAVE "WDC"
CSAVE
"PARTI'.A
CSAVEH
"flleoame",»f«rf
*ddrm$*.
end
address, enfny
address
Writes the
machine language program
stored t-om
srarr
/MOwsts
to
erw
address
wilrt
the entry
address
one
c
assene
tape,
under
the
namo Monome
CSAVtW
MFtf
T
ST ,50000
50305
500M
CSAVFM
CLfl".39Q(».39030
EOF/fl)e/Vumfl«rJ
le»ls«>rai>e«)-0'-lirecortrJ«IOrt
IhecaSseHe
file
OPEN
ord
as
We
nombe/.
Tr\e function returns
a
'
logcaT answer
.
eiihor
true'
I-
1
)
if
you
tow
reachod
ine
onfl
c* Ihe
IK
or ol
se
false' (0)
ri
you
"*ave
no*
rBacheo
rhe
end
o*
the
Wo
IFfOF(1)T^ENGOTO-00O
input
* Menumoer,
.a
ruble
Oat
inputs data seQuenba-ty
from
tie cassette
Meope
tied
as
fte
nurn
ter.
INPUT #1 ,AB.C*
INPUTS
(mjmertc
etpnttWi, Utenum
Mr
)
Rom
ins
a
siting
ol
a
length
given
by numeWc
e*pn»a«on from
the cassette
die
opened
as
fife
nun? Der
Al-iM\)'»(;i|
UNE
INPUT
#«renunrtoer,
jtfw
Readsa6ncofiex"romdevce
i
NE
NPJT #
i
2$.
L0AD"CAS:Wtfltm«",R
Loads a
BASIC
program
Item
cassette)
it
R
is
pteseni.
BAS
-C
nirs
me
program
aft
er
rt
has
Beeri
loaded
LOAD'CASACCT
R
LOAD'CAS
VA>
LOAOM
"CAS:
'ft
en
am*"
Loads
Ihe
machine-language program
filename from
cassette tape,
at
the
add'ess
specified
chen
it
was
SAVEd
lOADM CASMeMTST'
UAX
FILES
SlO'estPeCunent
makinum
number oHJes
Voumay
access
MAXFILESWeanynurnencvanable
10MAXFILES
• 5
'MAXFILES
MERGE
CAS:W(en#rne"'
Meroastholinosiromme
ASCn
lormaO ed
Aterwne-
(not
compressed
former.'/
wi
Th the
lines
ol
the
Current
program
M6RGE
"CAS
ACCT"
Starts
oi stops cassette
player
trotor.
MOTOHOttOiOFF
MQTQflON
OPEN"CAS;Wen«me"FOflmoofe AS
file
number
AlOcaleea
butter 'or the
ea8se«ettioWa'W''9
fug
number
>$»obu^a'
numbet
assigned
to
the
we
moa«
can
be
OUTPUT,
specifying data
wr
De
written
sequentially
to
eh*
file,
starting
antie
beg
inning
of
trie
Me.oi
it
can
be
INPUT,
specifying
data
wit)
be
read
sequentially
from
the
tne.8«itin5ailtieC«9»nninqoi
mo
We
OPEN'
CAS
FOftOUTPtr
AS3
OPEN"CAS
ACTDAT"
FOR
INPUT
AS
^
PRINT
#fiJenurn6*r,
capreeitor* Usf
WriiestHo values
of
ejipresslon Air
to
trie
cassette
f
ne
opened
as
fie
numrrw
PRINT
*
'AS
PRINT #4.1020.30
PRlMT#Wre number, USHC'Torawr,-«prr*Mro«M«(
Formats
the
date
>n
expression
*Sf
and
w
tos
>i
to
the
cassette hie
OPEN
ed
as
m
nurrTDor
lornat
consists
of
on*
Of
I
mmei
mo
io>W)wTt»g
"¥'
Prints
I"
st
stnog
chft'actet
PfVNTLISING
'!"
Tandy
'
nspacea"
Prints2
'ncha'acierstronasfripg
PRINT*! USING
-
\ \
Tanay

Advertisement

loading