Download Print this page

Radio Shack TRS-80 100 Quick Reference Manual page 11

Hide thumbs Also See for TRS-80 100:

Advertisement

REMcornnt«n(*l«f«mtf*t
SgrtrimlolhoBASrCimefpeteMhai
tnerema*iderott>eif^e
as
comment YoumayaDbreviateREM
with
an apostrophe
irOltEMIrMap'oyram
l<ndsiheaiar>oaft)d3vtai<on
'00
AVE
- SUM
'
Tt
'Calculate
me
ave-age
RESTORE
RMIMJBDMr
Resets
ineOATAstatemer*
pointer
to™
fast
item
in in«
DATA
siaiennni
an
bni
numb*
so
mat
a
READ
oof mano
can
access
me same
values
rror
e
man
once
600flESTORE100
RESUM
E
On* number
Ends
an
amy
hancWrtg
routmeDy branc"ng
to
*M
mmbw
where
BASC
begins
nor
mat
onaoAon
II
tine
number
is null
oiOJhen BASIC
ratwns
to the
line
whchcausedtrte
error.
tOIQRESUME
RETURN
Ends
asubroutine
by
Winching
bid.
10
mecovnmand
immediately
following the
co'respono>ngOOSUB
RETURN
RIGHTS(sI/inge»preM*on,cO'imO
cnataciere
ol
sfmg
expression
10SEC* -
niG>-T$iTiME£,2|
Returns
trie
riqrrtmc-st
count
RNOfnuroerfc
ex-presston)
Returns
a
pseudorandom rumber
DetweenOand
i
\tnwmcwetsw
«S
non-wro). then
rno
retu
ms anew
ran<Umj number.
If
numeric
expression equals O.tien
RNDielutns
Iho
last
random number
generated.
PRINTRMD\1)
PRtNTRNDfO)
RUN
*(>*•
number
C«arsaJlvansbWsand«ecutosth8curfent
program
starting at tote
num
bet
hne
numbv
is
ope
onel
II
omittod,
BASlCDaglnaoioculonai
thfiiirsime
otme 00914m.
RUN
100
RUN
SOHInumtrteatpnttlan)
Returnsa-1
tor
negabveOrbrjaro.
and
1
torpos>tiveva>uesotnum«c«oxpre3$on.
*TLa10*5GN(CR)
SIN
f
nu
merta
expression)
Returns
the trigonometric sine
or
ru*rrterjc»xp'res
,
srcvi
The
numeric exp'asson must
bain
redans
Y-
SlNtlS)
SPACES
(tertftty
Ratums
string
ot/engfn
spaces
BS
-
SPACE$(?0)
-1-
A*
SCR'numerfc
eipresiionj
Returns The
squa*e
root
ol n rimer re
expression
C2
-
SQRA2
H
B2>
STOP
Stops
eiecuiion ot
a
5
ASIC
program
at
some
point
otnsr
man
(he physical and.
STOP
STRS/numeric
•npictttoo)
Converts numeric expression
to
its
sttingrapiBseniation.
B$
"$
STR$
IBAli
+
00
STRINGS
ilength, cfiaracfefj
Returns
a
slnrq
ot the
given length
composed
olciwacfe*.
tengtti
may
range
from
0to255
crwrecrer
is
either a
slnng expression
or
numerrc
expression
if
il
15
a
Siring
exptessW.onlymerTfsicha'aclercpltriesirlngisduoicatad
if
ins
a
numeric e*pfWs«on. *
fust avauita
to
a
number between
and
255
PRINTSTRINGS(20.
)
PRINT STRINGS<40233I
TAN- (nume/h: expression
)
Returns
tie
tangent
oinvmenc
Q-p'osskxi
nonwfic
expression
must be
»
radians
SlO°E
*
rAN(THETA)
TIMES
Keepetracxofthecurrenltirne.l'imelOfmolnsiilrig
variable
You
may
access
it
*e
any
string
variable
PRlrVTTrME*
TIMES-
'10
00:00"
TIMEONofOFForSTOP
EnabMordi*ao!«rsC*JT»ME$
interrupting
TIMES
ON
V
AL
'((ring
eipnwston)
Converts
string
expression
to
a numeric
F8prBSentationot
the stnng
II
sfringreipreMion contain*
non-numeric
characters.
V
Al returns
only
the
value of
me
leading
txmbot.il
any
A
- VAI
tfil
I
VABPTRrfvif.*W*rlerM)
name.
LINKdl-VARPIRlfJSl
Returns
ma
Tiemory
address 0*
Wm»We
'

Advertisement

loading