Download Print this page

Radio Shack TRS-80 100 Quick Reference Manual page 9

Hide thumbs Also See for TRS-80 100:

Advertisement

D
ATAeonttifil
N*f
Detass
a set of
constants {numeric
»nfl.*i
string)
to
be
accessed by
a
BEAD
command
DATA
10?5.5Q15."Probabi!il'es
.'Total
DATES
Keeps
wacfcolrrieciirrent date.
in
string
farm
You may
access
1
*e
any
slung
variable
PRINT
DA1F$
DATES
-
"
1
1
<02«2
DAYS
Keepslrer*ofmec^entdayofthewe«kin
siring
form
You
may
access
DAYS
like
any
string
vflMM
o
*RINT
DAYS
CAYS
-
Trf
D£*D0LMaVlrt
Defines a«
of
rhe
vamBloswhicriDepjnwtththe
letters
m/efte'SU
mo be doube
precision
vanabies
Letter Asf
constats
of indlvlOjal
oners andta
t
letter
ranges
ol
the
form
letter!
-letterZ
lOOCCFOBLO.
X-Z
OEF1NT
fetter
Hal
De'ineiiallotlrievanabies¥»r«cM)eginw'ltiti
flliei^in/aTO'^sMoDenie^eivdnaDias
lefle/nsfconsstsot
irWrvnduailettersandorfltte'rangesofltieloimlenerl-ieBfirt
DEFtMD.
X-Z
DEFSNG
letter
Utt
Defines
a'l
olthe
variables
winch begin
w»th the
letter
s
m
farm
m
I
to
ba
single precision vatrab
ies letter
lis (
consists
ol
rotviduai
letters
ano-or
letter
ranges
ol
me
form
letter
1
-letter
2
CEF5NGQ
X-2
DEFSTB
tetter
Met
Defines
all of
lf» var tables
wNcii
begi
n
with
me
letter! in Letter
hai
10
06
String
variables 'effe'Vs'consislsof
individual letters
and.
or
letter
ranges
of
the
form
letleM
-letter?
CEFSTBO.X.Z
DIM
variable narnef-rJirnenslone)
Ht
Defines
vanmbtonam* as
an
array
with
the
given ^.menaiona. dimensions
is
a
Sst ot
one
or
more
numeric
expressions,
defining
the "length",'
vwott. and
soon
for
the
array.
CIMAS(lfJ!
8AL%(1O.I0,
EWT
Htm
number
range
Enter
text
ed*
Ing
mode
using
tti©
grven
EDIT'CAIOCO
EST
6OT-200
EMO
Terminates execution
ol
the
BASIC
program
END
CRL
Returns theiinenumberc'lhelaai
error
IFEHL -
MOTMENRESUME
'50
ERR
Returns the
error
code numderoltnelastenor
FERR
-flTr-ENPESUME
u
tRAORn(<inenceiprMSi«n
Simt*ate&
Pie
error
sp^cmed
by
numeric
expressfo/>
EPPOR3*
FRRORFRR
FSeturnsthee«poneotial
(antilogjo'
EXPfnumer
ic
expression/
numeric
exoressron
PfllNT£XP:M|
nX'flUfTwttenpfetsJortJ
Retulhifhewnolenumberportionol
rmme'fc
expression.
10A%-HX(A?#|
FOR
countarvarlaoie
initial
value
TO
final
value
STEP
increment
NEXTceunrervariabfe
txecutestnecommanos between
ire
FOR command
and
the
NEXTcommend
repetitively,
varying
coukIbt
variable
t
rom
initial
value to Ana'
v«W
.
adding
'mcemoni
to
rl
each
time
BASC
ends
the
cop.
F0RI*lTO100STE
D
4(
)
NEXT
I
F
RE/
express!
on
J
Returns
Ifiecurrent
arrount
ot
unused numeric
memory
in
bytes
when
expression
i
s
r*jmenc
and
the
current
total
amount
of
unused
sinng
space
when
express-on
is
stnng-type.
TRE(O)
VRET
"!
GOSUB
ifrae
number
Transfers
program
control to
thn subroutine
beginm ng
at
«ne
notnbet.
GOSUB
1
000
GOTO
Nne
number
Writer.
GO'Q
1000
HIMEM
FWft)frfflthelc*ao\y6ssofmorroryavalableto
BASIC
'hlMEW
lFrelattonalorlor^cw/e»pre>ilcmIHENcr>/nrna/«d(8)lELSE
comrnand(B>2
Teststhe
ogicarirutfh o>t*taOonato>K>g'caJ
expression.
Ifthe
expressonis
true",
then
BASIC
executes
canmajt0(3}
I
K
the
expression
is
"false".
BASIC
executes
corrvnaflclfi)?.
If
A>B
Th£
N
GC/TO
lOO
ELSE
lts«JT
A.©
Branches program
oontro
l
to
|h«
spec
(lied
ftne
INP
fport
number)
number.
A%
=
ihjpjsj
Ret urns
a
byte
trom the
specified
CPU
port
14

Advertisement

loading