Download Print this page

Motorola EXORdisk II User Manual page 84

Advertisement

CHAIN COMMAND
6.2 -- Tag Definition, Assignment, and
Sub~titution
RASM
TESTPROGiHXLG
PROGRAM ASSEMBLED ON
~ANUARY
8,
1978
EXBIN
TESTPROGil000
Tag substitution is used here to specify the various
options
for
the
assembly process,
a
date for the heading
line
printed
during the assembly,
and the starting execution
address
~or
the
converted
obJect file.
The use of tags and tag
values~
thel'erore,
is
Or
gl'eat
importance
in
the
creation
of
complicated and geneT'al
pu~pose
CHAIN files.
To
pass
tag
values
from one
CHAIN
file to another, a
forcing character, is used.
The backslash
character
,\,
is
used
te indicate that the next character of
a
line is not to
be
tested as
a
special character
(i.
e.
I
to
see
if an operator
-rollows~
or a valid tag).
ThuS,
passing
oil
t:ag
from one CHAIN
file to another can be ddne
~ith
a series of statements
like
the following:
RASM
TESTPROGiH7.0PT!DN%
PROGAM ASSEMBLED ON
7.DATE7.
CHAIN
FILE2iSTART\7.7.STARTi.\7.
The
fi~~t
and
last
pe~cent
signs of the last line are not tag
r~placement
indicato~s.
When the above lines
.re
compiledJ
the
resultant
intermediate
file
will
not
contain
the
b
a
c Ie
s
1
ash
c
h
a r act e
yO
s .
I
-F the va
1
u e
It
XL G
If
i s
give n
t
G
OPT I ON,
"01. 8.
78"
to
DATEI
and
'lfi'1000n
to
START1
then the
compiled
CHAIN
file would appear as
RASM
TESTPROGiHXLG
PROGRAM ASSEMBLED ON 01.8.78
CHAIN FILE2iSTARTki lOOOi.
The value or
START
would be passed from the first
CHAIN
file
to
the second
CHAIN
file.
The second
CHAIN
process can only
,be invoked from the last line of the intermediate file.
6.3
Compilation Operators
T~o
t~pes
of
CHAIN
operators exist which can be used
to
modify
the
procedure
that
is
performed through the CHAIN
process:
Compilation
Operators
and
Execution
Operators.
Execution
Operators
are
described
in
section
6.4.
Compilation
Operato~s
permit the operator to
parameterize
a
CHAIN
file
to
perform
many
different
procedures.
For
example, a
CHAIN
file may contain the
MDOS
command
lines
to
assemble
an
entire
system of programs.
Based on the CHAIN
arguments specified on the
CHAIN
command linel
all
or part of
'the system of programs may be assembled.
The options for the
assembly process can also be supplied via
a
CHAIN
argument,
(see example in section
6.7).
)
Page
06-04

Advertisement

loading

This manual is also suitable for:

Exordisk iii