
Format 1:
Returns the address of the first byte
of
data
identified
with
<variable
name>.
A
value must be assigned to <variable name>
prior
to
execution
of VARPTR.
Otherwise an "Illegal
function call" error results.
Any type variable
name
may
be used
(numeric, string, array), and
the address returned will be an integer
in
the
range 32767 to -32768.
If a negative address is
returned, add it to 65536 to obtain
the
actual
address.
VARPTR is usually used to obtain the.address
of
a
variable
or
array so it may be passed to an
assembly language subroutine.
A
function
call
of
the
form
VARPTR(A(O»
is usually specified
when
passing
an
array,
so
that
the
lowest-addressed
element
of
the
array
is
returned.
All simple variables should be
assigned
before
calling
VARPTR
for
an
array,
because
the
addresses of the arrays change
whenever
a
new
simple variable is assigned.
Format 2:
Returns the starting address
of
the
disk I/O buffer assigned to <file number>.
In Standalone Dis~ BASIC, VARPTR(i<file number»
returns
the
first byte of the file block.
See
Appendix H.
Summary of Contents for Basic Interpreter Basic 80
Page 1: ...5IA iC intc tit tcl c t ...
Page 2: ......
Page 6: ... ...
Page 10: ......
Page 26: ......
Page 33: ...2 5 Intentially left blank ...
Page 37: ...BASIC SO COMMANDS AND STATEMENTS 2 9 Intentially left blank ...
Page 112: ......
Page 136: ......
Page 140: ......
Page 160: ......
Page 165: ......
Page 166: ......
Page 174: ......
Page 176: ......
Page 182: ......
Page 184: ......
Page 190: ......