Chapter
4.
Assembler
Directives
4-18
If
you
omit
a symbol from the name--li'>t
but
reference it
in
the program, the symbol
is
undefined. The assembler
flags this error. You
may include symbols
in
the
operand
name-list
that
are not referenced
in
the program with-
out
causing an error.
Example:
EXTRN
ENTRY,ADDRTN,BEGIN
NAME
Directive
The NAME directive assigns
a name
to
the object module generated by this assembly.
Label
Opcode Operand
optional:
NAME
module-name
The NAME directive requires the presence
of
a
module-name
in
the operand field. This name must conform
to
the rules for defining symbols.
Module names are necessary so
that
you can refer to a module and specify the proper sequence
of
modules
when
a number
of
modules are
to
be
bound together.
The NAME directive must precede the first data or instruction coding
in
the source program,
but
may follow
comments
and control lines.
If
the NAME directive
is
missing from the program, the assembler supplies a default
NAME
directive with the
module--name MODULE.
This
will
cause an error if you at1.empt to bind together several object program
modules and more than onf' has the name MODULE. Also,
if
you make
an
error coding
the
NAME directive,
the default name
MODULE
is
assigned.
The module name
as,>igned
by the NAME directive appears as part
of
the page heading
in
the
assembly listing.
Example:
NAME
MAIN
STKLN
Directive
Regardless
of
the number
of
object program modules you may bind together, only
one
stack
is
generated. The
STKLN directive
allows you to specify the number
of
byte~;
to be reserved for the
stalk
for each module.
Label
Opcode Operand
optional: STKLN
expres,>ion
The operand
expre,>,>ioll
must evaluate to a number which
will
be
used
as
the maximum size
of
the stack.