Download AMOS Basic XCALL subs

Transcript
4
INTRODUCTION
Page 1—4
2.
You
wilt
invoke a particular subroutine via
the AIphaBASIC XCALL
and wilt
usually need to specify several
control
parainetert on that statement tine.
statement,
A typical XCAU. statement tine
might took like this (where COMMON is the
name of the subroutine
you want to invoke, and SEND, "MSGNAM", and
WRITE'OUT are variables
that specify information to the COMMON subroutine);
100 XCALL COMMON,SEND,"MSGNAMU,WRITE*OUT
3.
wilt
need to use MAP statements to define many of the control
variables you specify on the XCAIL statement
tine.
(This
is
because only by way of MAP statements
can
you define binary
variables.)
For
information on MAP statements, refer to the
AlphaBASIc User's Manual, DWM—O0100—Oj.
4.
Many of the XCALL
subroutines require that you pre—toad special
files.
For example, you must load the file DSKO:cOMMopi.SBR(7,6]
into user
or
system memory before running an AtphaBASIC program
that
makes use of the
COMMON subroutine.
(For
each
XCALL
subroutine, the documentation that follows will Let
you know what
files need to be pre—toaded,)
You
To toad a file Into user memory (I.e., your own memory
partition),
enter either of the following from AMOS or AMOS/I command level;
LOAD DSKO;Fllename.$9Rc7,o)
@j
or
.LOAD $AS:fitename.SeR lED
where
Filename is the
name of the subroutine you are requesting
(e.g., COMMON, BASORT, etc.).
Note the use of the ersatz name, BAS:, which indicates
account
[7,6]
of the
System Disk.
After you see the monitor prompt,
you may
run
an AIphaBASIC
program that
uses
the
specifTc
subroutine.
To toad an XCALL subroutine into system memory, the System Operator
must
use the
SYSTEM command within the system initialization
command file.
For more information on
loading
files,
including
subroutines, into system memory during
system boot—up, see the
AMOS System Operator's Guide, DSS—10001—OO, or
Operator's Guide, DSS—1000p-O0.
5.
the
AMOS/I
System
Some XCALL
subroutines (namely,
FLOCK, XIOCK and SPOOL) use the
monitor queue.
The monitor queue is a list of blocks
in
memory which are Linked to each other in a forward chain. system
Each
queue block is currentLy eight words (16 bytes) in size (this value
may change with the next
release of the file
system).
During
normal monitor operations, various functions use these queue blocks
DSS—1000$—OO REV 400
*