EasyManua.ls Logo

Radio Shack TRS-80 - Page 235

Radio Shack TRS-80
236 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Built-in
Described
in
Functions Description Example
Chapter(s)
MEM
Returns the number of
free bytes
left
in
memory
10
PRINT
MEM
8
INT(X)
Returns the greatest
integer which
is
less
than
or equal to X
10I=INT(Y)
14
ABS(X) Absolute
value
of X
10M=ABS(A)
17
RND
(0)
Returns
a random
number between
and
1
10X=RND(0)
19
RND(N)
Returns
a
random
integer between
landN
10X=RND(500)
19
Math
Described
in
Operators Function
Example
Chapters)
+
Addition
A+B
3
-
Subtraction
A-B
3
*
Multiplication
A*B
3
/
Division
A/B
3
Assigns
value of
right-
hand
side
to
variable
on left-hand side
A=B
3
Relational
Described in
Operators
Relationship
Example
Chapters)
<
Is less than
A<B
6
>
Is
greater
than A>B
6
=
Is equal to
A=B
6
<=
Is less than
or
equal
to A<=B
6
>=
Is
greater than
or equal
to
A>=B
6
Is
not
equal
to AOB
6
Logical
Described
in
Operators
Function Example
Chapter(s)
*
AND (A=3)*(A=7)
"A equals
3
and
A equals
7"
24
+
OR
(A=3)+(B=7)
"A equals
3 or
B equals
7"
24
Variables Purpose
A through Z
Take on number values
A$ and
B$ Take on string values
A(X)
Store
the elements
of
a one-dimensional
array
Described in
Example
Chapter(s)
A=3.14159
3
AS=RADIO SHACK
16
A(0)=400
21
LEVEL I
Shorthand Dialect
Command/Statement
Abbreviation Command/Statement
Abbreviation
PRINT
P.
TAB (after PRINT)
T.
NEW
N.
INT
I.
RUN
R.
GOSUB
GOS.
LIST
L.
RETURN
RET.
END
E.
READ
REA.
THEN
T.
DATA
D.
GOTO
G.
RESTORE
REST.
INPUT
IN.
ABS
A.
MEM
M.
RND
R.
FOR
F.
SET
S.
NEXT
N.
RESET
R.
STEP (after FOR)
S.
POINT
P.
STOP
ST.
PRINT
AT
P.A.
CONT
C.

Other manuals for Radio Shack TRS-80

Related product manuals