Technical data
Loading
Binaries
2-18
Integral
PC
Specifics
The
disc is
now
ready
to use.
To
automatically
start
BASIC
when
the
power
is
turned
on, simply
insert
the
disc into
the
internal
disc drive
and
turn
the
power
on.
The
PAM
window
will first
echo
the message
"t·4
0
1.
•
.1
S t a
t-
tin':;I
B A
~:;
I C .
Please
1.·.1.01
it.
"
When
the
BASIC
window
appears, it is
ready
to use.
Binary files
may
be called from BASIC programs using
the
CALLE: I
t·4
statement
after
the
binaries
have
been
loaded. Fol-
low
the
procedure
outlined
in
the
dictionary section
of
the
reference
manual
under
CAL L B I
t·4
to compile
and
load
a bi-
nary
program. Remember
that
the
file
must
first
be
linked
outside
the
BASIC interpreter before it is loaded.
To
link a
binary
module
to libraries
or
other
modules, use
the
link
edi-
tor ld
with
the
-rd options (the ld
link
editor
is available
with
the
HP-UX C Language compiler).
To
call a binary
program
from BASIC,
use
the
CALLB I
t·4
statement. For example,
if
the
binary
program
has
an
entry
point
called "E n t
t-
I=,
Poi
n t
II
use
the
following statement:
Parameters
may
be
passed
either
by
address
or
by
value. For
example,
in
the
following
statement
the
address
of
the
vari-
able
add
t-
is
passed
as a parameter:
10
CALLBIt·4
"Entt-'=,Point"
(addt-::'