
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.
Содержание Basic Interpreter Basic 80
Страница 1: ...5IA iC intc tit tcl c t ...
Страница 2: ......
Страница 6: ... ...
Страница 10: ......
Страница 26: ......
Страница 33: ...2 5 Intentially left blank ...
Страница 37: ...BASIC SO COMMANDS AND STATEMENTS 2 9 Intentially left blank ...
Страница 40: ...410 DEF FNAB X Y XA3 YA2 420 T FNAB I J Line 410 de ines the function function is called in line 420 ...
Страница 112: ......
Страница 136: ......
Страница 140: ......
Страница 160: ......
Страница 165: ......
Страница 166: ......
Страница 174: ......
Страница 176: ......
Страница 182: ......
Страница 184: ......
Страница 190: ......