CHAPTER
31
ASSEMBLER OPERATION
The
ISIS-II
SOSO/SOS5
Assembler
resides
on
the
ISIS-II
system
diskette.
The
assembler
is
loaded
by
calling
ASMSO
at
the
ISIS-II command
level
and
specifying
your source
file
along
with
any desired assembler controls (Chapter
2).
All
requested
assembler
operations are performed without further intervention
once
the
assembly
begins.

Activation

Sequence

The
following
command activates and completes
an
ISIS-II
assembly:
-ASM80
PROG.SRC
SYMBOLS
NODEBUG
Following
the ISIS-II command prompt
(-),
you
issue
a command
to
assemble
the
file
PROG.SRC.
Be
default, an
assembly
listing and object
code
file
are requested
and are output to PROG.LST and.PROG.OBI
respectively.
In
addition, a
symbol
table listing
is
performed, but
symbol
table output
to
the
object
file
is
suppressed.
Note that the
same
effect can
be
achieved
with
no
control specification,
since
the
controls
specified
are both defaults.
The
assembler
sends
out
its
sign-on
message
to
the
console
device:
ISIS-II

8080/8085

MACRO
ASSEMBLER,
V2.0
After execution, the assembler
issues
a sign-off
message
and error
summary:
ASSEMBLY
COMPLETE,
NO
ERRORS
If
XREF
is
selected, the sign-on
message
ISIS-II
ASSEMBLER
SYMBOL
CROSS
REFERENCE,
V2.0
is
then
issued
on the console.

Sample

Assembly

The
following
example
illustrates a typical
use
of the ISIS-II assembler. A short pro-ยท
gram
(MBADD.SRC)
is
taken through all the
steps
needed
to activate the assembler,
obtain an object code
file,
and generate a symbol-cross-reference listing. The source
program to
be
assembled is
shown
first,
followed
by
the assembler activation
se-
quence.
The
resulting assembly and symbol-cross-reference listings are also
shown.
The
source code for program
MBADD.SRC
is
as
follows:
$ TITLE('MULTIBYTE
ADDITION
PROGRAM')
NAME
MBADD
LOAD
MACRO
OPD1,OPD2,CQUNT
L1:
LXI
B,OPD1
;;ADDRESSOF1STNO.
TO
Be
LXI
H,OPD2
;;ADDRESS
OF
2ND
NO.
TO
HL
LXI
D,COUNT ;;LOOP
CONTROL
COUNT
TO
0
E.NDM
CSEG
PUBLIC NUM1,NUM2,NUM3
EXTRN
MAIN
3-1