EasyManua.ls Logo

Radio Shack TRS-80 Model III - Page 228

Radio Shack TRS-80 Model III
274 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...
s
TRS-80 MODEL III
qgggggKptg-
"
4
:
Function
Operation
Examples
Page
SlN(exp)
Returns the
sine of exp;
assumes exp
S!N(A/B)
183
is
in radians.
S!N(90/57.29578)
SQR(exp)
Returns
square
root of exp.
Limits:
exp
must
be
non-negative.
SQR(A*A^B*B)
183
TAN(exp)
Returns the
tangent
of exp;
assumes
TAN(X)
183
exp
is in
radians.
TAN(X*.01 745329)
Special
Functions
Function
Operation and
Limits
Returns line
number of
current
error.
ERL
ERR
1NP(port)
MEM
PEEKf
location)
POINTfx.vj
POS(O)
USR(n)
VARVTR(var)
Returns
a value
related to
current
error
code (if
error has
occurred).
ERR
=
(error code
-
1)*2. Also:
(ERR/2) + 1
=
error code.
Inputs and
returns the
current
value
INP(55)
from the
specified/wrf .
Both
argument
and
result are
in the range
to 255
inclusive.
Returns
total
unused and
unprotected
MEM
bytes
in memory.
Does not
include
unused
string storage
space.
Returns
value stored
in the
specified
PEEK(
15370)
memory byte
. location
must
be a
valid
memory
address in
decimal
form (see
Memory Map
in
Appendix D).
Checks
the
graphics
block
specified by
horizontal
coordinate x
and
vertical
coordinate
v.
If
block is
"on",
returns a
True(-
1);
if
block is
"off",
returns a
False
(0).
Limits:
0<
=x<128;0<
=
v<48.
Returns a
number
indicating the cur-
POS(0)
rent
cursor
position. The
argument
"0"
is a dummy
variable
.
Branches to
machine
language sub-
USR(O)
routine. See
Chapter 22.
Returns the
address
where
the
specified
VARPTR(A$)
variable's
name,
value and
pointer are
VARPTR(N1)
stored ,
var must be a
valid variable name
.
Examples
Page
ERL
187
ERR/2
+
1
187
188
186
188
191
193
218

Other manuals for Radio Shack TRS-80 Model III

Related product manuals