Download Print this page

Radio Shack TRS-80 100 Quick Reference Manual page 15

Hide thumbs Also See for TRS-80 100:

Advertisement

RAM
Files
(RAM)
RAM
FUeFltenarne»andE*tenal©nt
RAM
Hen
at
nog
consist
9'
9 siring
ol
0"*»
lo
sn
characters, 1"*
lirsi
ot
writer*
is
a
letter
(naddt
ton.
most
RAM
titos
"av«
specific
extensions
*hicn^resuft.>eaiotheti*riatt>e
These
extensions
are
.CO
BASIC
Program
Foe
ASCitf'iwmaiwaFiBiaBftSiCdaiaWe
a
Tern
E(Ho«f«e.eenain
BASIC
p'og>a»n
ff.es)
Commandf
e'-arpacfT* ia"yuagel"e)
Note Most
commands
whicn
alio*
you to
specify
acsevce
(Sucn as
LCD.MDM.ftr.d90oni«lault»PAM inaikWion.BASCcanoflen
assume
the extension
o' a n'e
horn
the
context
ot
(he
1
command
RAM
10 Oommiindiancl
Functions
CLOSE
AM
mimbtr
flat
Clows
the specr-heai-v
wr***.
CtCSFi.23
CLOSE
EOF
(file
numfiev)
Tesstoianena-ot-liletiywiTononineBAWMe
OPEN'edasMentwnoe'.
TfelunctonreftHnsa
"logical"
answer
either true'
(-1M
you havoroecheamGe-JHlolIheiiie.Dre'se
"
lalse
"
10)
H
»oo nave
noi reacr<eO
lite
enfl
ol
me
He
IFECjF(1»TH£NQOTO1O)0
INPUT*
fire
number,
venaJrieftX
Inpulsdata
sequentially
lr«"
ir-s
RAM
Me
OPEN WasMenwn&eY
INPU'#1.ABCS
INPUT$(/»wner«expfe9a^.f«AenumDerj
ReturnsaBtrmgota
length given
by
numefc
expression
trorti
lrv»
RAM
tite
OPEN
ed as
Me
number
A$- INPUTS
1)
I
PL
"filename"
Dearies
the
RAMlltena-neasttiewami-siarlui:
progtamfthatis.t^programvvtven
runs
invnediate'y
when
you
turn
ontrve
Computer)
1PL"TIMSE T
BA
KILL'Tnename-
Deletestne
RAMIifcWename You
"must
"nc*»de
Itie
He's extension
KILL"DtLLSiDA"
KILL
*MSG$
DO'
LINEINPUT
*
tit*
numb*
.itrvar
Reacreaiirwotistilfomflevice
21
LOAD'RAM:fr?e«efne-~,R
LoaOsaBAStCprogran-tromRAM
MR
rspresent.
BASIC
runs
fhoprog'amartetiinasoeeti
o»ded
lOAD"RAM*TiMS£
r
LOAD
" T
lMSC".R
LOADM
"R AMfltaoanw"
Loads
Pie
machine-language
program
filename
Irom
RAM
ai
the
address
specified
when
It
was
saved.
LOA3VMEMT5T"
lOaDM"RAM
MfMTST
MAXFILES
aoro5thccu'te«'na»rTiij'nnumbe>o(fii©s
Youmay
access
MAXFILES
ike
any
nuroenc
variable
"OMAXFti.ES
-
5
''MAXFILES
MERGE
"RAMifftenenne"
MefoesthelinoetromtheASCli
lormaded
RAM
called
Sara
me
with
me
lines
©t
1h«
mrtra
program
MrnGf
"HAM ACT.OO"
NAME'RAM^rCrftieneme" AS"RAM;newfl«erMr»e"
Renames
oW eYiMM
»o
new
iKenavrw
You
musi
include
I
he
die
s
enleison
NAME-ACCTSDO
AS
CLDACDO'
NAME
"RAM
CLSl
CO"
ASHAMLCOCLSCO"
OPeN-'RAM:rTf«narTie)"FORmodeAS«renumt>ef
Ailocatese
&J\o>.Ne number. (oraRAMIilecalled«e^Bmel.mO(focal
,
be
OUTPUT. speoVng
data
w*
be
*'*ton saquontiary to the
Me,
starting
a" tfwj
beginning ©I
i«e
tile,
INPUT,
specifying
dan
w
til
be
road
sequentially
trom
rh
e
tile,
stanng
at
Ine beginning
oUtfe)
Tile,
o*
APPEND,
specifying thai data
will
be
written
sequenbally
to
ihe
til*.
adding
ieco<°ds to
tho
end
o'
the
f*e
OPEN "BAM ACCTOO' fQRAPPcNDASI
QPfN
"NAMtS.OO
FOR
INPUT
AS
4
PRINT
*
lit*
number
-tipyauf
of>
UK
W'
ties
the
values
oi
expression
(rst
to
Ihe
ram
file
OPEN
ed
as
We mimttw
PRINT
IT.
AS
PRINT
#4 1020.30
PRINT
#fff*
numbm, USING
'-former
';
expretifon
flit
Formats
tfcedata
In
expression
/"«
and sends
it
to
the
RAM
Me
OPEN
'ed
a*
IMenumoe'.
formaf'
consists
ot
one
o>
mote
olfnefoDovitng:
"I"
Prints
ti
est
string
cha'acte'.
PRINT
#1.
USING
•'.'Tandy
"tnepacee'i"
Prinis2
•ncnaractCKStrom astnnQ
PRINT#1.uStNG"
v'
'/'Tandy*
«
Pr»btonedigittoreach#.
PRlNT#l,USING
'####*
:S
ac

Advertisement

loading