Download Print this page

Motorola EXORdisk II User Manual page 99

Advertisement

r"'"
CHAIN COMMAND
/* PROGRAM PROG4
/
IFS ASM
DEL PROG4.LX: 1
RASM PROG4: li7.0PTi.
/
XIF
/
IFS LOAD
@TST,S
EG
@JMP END2
DEL PROG4.LO: 1
EXBIN PROG4: 1
@LBL END2
I
XIF
/ XIF
/XIF
6.7 -- Examples
The tags
ALLI
D1,
D2,. PROG1,
PROG2,
PROG3,
and
PROG4
are
used to
identiT~
which programs rrom the
s~stem
of
p~og~ams
are
to
be selected by
th~
CHAIN process.
All programs 'rom
ail diskettes can be selected
by
specifying
ALL.
A
specific
program
can
be
selected
by
specifying
its name:
either
PROG11 PROG21 PROG3,
or PROG4.
All programs
on
a
specific
diskette can be selected
by
specifying
Dl
or
D2.
The
tags
ASM
and LOAD are used to select what process
the programs will go through.
ASM
specifies
the
programs
will
be
assembled.
LOAD
specifies link/loading or obJect
file conversion via EXBIN.
It should b'e noted that nested IFs
have
been
indented
(spaces
between
slash
and
IF)
to indicate their level of
nesting.
This is optional, but makes the CHAIN
file
easier
to understand.
Prior to the assembly and link/load or obJect
file conversion processes, a DEL command has been
placed
to
ensure
that the output rile rrom the process does not exist.
The first time that the CHAIN file is used, the
DEL
command
will
cause
an error to occuri
however, the SET operator has
been used to inhibit CHAIN process aborting.
The TST operator is used after each assembly process
to
check
for
errors.
If
an
error
occurred, then the error
status word will be non-zero in the portion indicated bq
the
itS"
deSignator.
Thus,
the test condition for being equal to
zero
will
be
false,
causing
the
JMP
to
be
executed.
Therefore,
if
assemblq errors occur, the link/load or obJect
file
conver~ion
process will be bypassed since it would
only
generate an unusable
~.;
,
....... e.
It
should also be noted that the backslash character is
used
in
the
RLOAD
command
CURP.
Thus,
the
CHAIN
Tore ing
character, which is also a backslash, must be entered.
The
Operator
Breakpoint
is
used
to
pause the
CHAIN
process.
This allows the operator time to insert the
proper
diskette
into
drive one.
Otherwise,
if all
programs from
all
Page
06-19

Advertisement

loading

This manual is also suitable for:

Exordisk iii