Download Print this page

Goldstar FC-200 Operating Instructions Manual page 95

Family computer

Advertisement

the argument
subroutine
with
and coresponds
the
to
9
range
O
the DEFUSR
with
supplied
digit
If
routine.
for that
(digit) is
assumed.
VAL(X$)
Returns the numerical value
The
function also
VAL
Xx$.
tabs, and
linefeeds from the argu-
blanks,
ment
string
(*-7")
PRINT
VAL
-7
OK
number)
VARPTR(
(file
address
Returns the
identified
with
(variable name).
must be
assigned
to (variable
execution
of VARPTR.
is
(digit)
in
X.
to the
statement
omitted,
USRO is
the string
of
strips
leading
For
example
first
data
the
of
byte
of
A
value
prior
to
name)
an
Otherwise,
'Illegal
—93—
call
function
error
be used
variable
name
may
the address returned
array), and
ing,
in
range -32768
the
an
integer
address
a negative
is
actual address.
65536 to obtain the
used
VARPTR is
usually
dress
a variable or
of
passed
to an machine
language
function call
the form
A
of
usually specified when passing
the
address element
that
lowest
is returned.
array
variables
should be
All
simple
before
calling
VARPTR
because the address
of the
whenever
a new simple variable
ed.
number) is specified,
If
(file
the
address
returns
starting
block.
trol
results.
type
Any
(numeric, str-
be
will
If
to
32767.
add
to
returned,
it
the
obtain
ad-
to
be
array so
it
may
subroutine.
is
(A(0))
VARPTR
an
array,
So
of the
assigned
for
an array
arrays change
is
assign-
VARPTR
file
of
con-
the

Advertisement

loading