2.1
Calling ZSM from CCP (the CP
1M
executive)
Make
sure you have a CP/M 2 System Diskette in drive A, from which you have
done a wann or cold boot.
Make sure your source file is on a diskette
in one
of the drives.
You
invoke ZSM by typing, after the CCP prompt A>, one of the
following two forms:
ZSM <filename>
(return)
ZSM <filename>.<3 parameters>
(return)
In both cases, <filename> represents the name of an assembly·language
source
file of the fonn <filename>.ASM.
In other
words,
to assemble
USERCUST.ASM,
simply reference the filename USERCUST.
ZSM assumes you mean USERCUST.A.SM.
In the first case, the assembler
looks
for the source
file on the drive
currently
"logged
in" under
CP/M
(usually drive A) and puts the object file
back onto the same drive.
It also puts the assembler
listing
file
onto
that
drive, rather than printing it or displaying it on the console.
Whenever ZSM puts an object file onto a disk, the object
file
is always
of
the
form
<filename>.HEX.
The filename is the same name used when calling ZSM.
Whenever ZSM puts an assembler listing file onto disk, this file
is always
of
the
form <filename>.PRN,
again where the filename is the same name used when
calling
ZSM.
For
example,
if you assembler
USERCUST.ASM,
by typing
ZSM
USERCUST
(return),
the result
will
be two new files
on the same
diskette:
USERCUST.HEX
and USERCUST.PRN.
If errors occur during assembly, they will be
listed in the PRN file as well as at the console.
The second
command
form
is used to specify the origin of the source file,
the destination of the hex file, and the destination of the print file,
if any
of these
are different
than
the currently
logged
in drive.
Each of the 3
parameters is a single letter, which have the following meaning:
The first
-
designates the disk drive which contains the source file.
Use A,
a,
C, or
o.
The second
-
designates the drive which will receive the the hex file.
Use A,
a,
C, 0, or Z.
Z skips generation of the hex file altogether.
The third
-
designates the drive which will receive the print file.
Use A,
a,
C, 0,
x,
Y or Z.
X prints the listing immediately, rather than putting it
on a disk.
Y places the listing on the console, rather than a disk.
Z skips generation of the print file.