EasyManua.ls Logo

Radio Shack TRS-80 Model 3 - Special Functions

Radio Shack TRS-80 Model 3
276 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...
TRS-SO
MODEL III
Function Operation
Examples
Section 2
Page
SIN(exp)
Returns the sine
of
exp; assumes exp
SIN(Al8)
7/5
is in radians.
SIN(90/57.29578)
SQR(exp)
Returns square root
of
expo
Limits:
SQR(A*A
8*8)
7/5
exp must be non-negative.
TAN(exp)
Returns the tangent
of
exp,. assumes
TAN(X)
7/5
exp is in radians.
TAN(X*.01745329)
ERL Returns line number
of
current error. ERL
ERR Returns a value related to current error ERR/2 + 1
code (iferrorhas occurred). ERR =
(errorcode
-1)*2.
Also: (ERR/2) +1=
errorcode.
SpecialFunctions
Function
Operationand Limits
Examples
Section 2
Page
8/3
8/3
POINT(X,y)
INP(port)
Inputs and returns the currentvalue INP(55)
from the specified
port.
Both argument
and result are in the range
0 to 255
inclusive.
MEM Returns total unused and unprotected MEM
bytes in memory. Does not
includ~
unused string storage space.
PEEK(location) Returns value stored in the specified PEEK(15370)
memory byte.
location
must be a valid
memory address in decimal form (see
MemoryMap in Appendix D).
Checks the graphics block specified by
horizontal coordinate
x and vertical
coordinate
y.
If
block is
"on"
, returns a
True ( -
1);
if
block is "off" , returns a
False (0). Limits:
0<
=x
<128;0<
=y<48.
8/4
8/4
8/4
8/2
POS(O)
USR(O)
POS(O)
USR(n)
vARPTR(
var)
A/14
Returns a numberindicating the cur-
rent cursor position. The argument
"0"
is a dummy variable.
Branches to machine language sub-
routine. See Chapter 8.
Returns the address where the specified
VARPTR(A$)
variable's name, value and pointerare VARPTR(N1)
stored,
var
must be a valid variable name.
8/4
8/7
8/9

Related product manuals