System information

Section 3
CP/M Assembler
3.1 Introduction
The CP/M assembler reads assembly-language source files from the disk and produces 8080
machine language in Intel hex format. To start the CP/M assembler, type a command in one of
the following forms:
ASM filename
ASM filename.parms
In both cases, the assembler assumes there is a file on the disk with the name:
filename.ASM
which contains an 8080 assembly-language source file. The first and second forms shown above
differ only in that the second form allows parameters to be passed to the assembler to control
source file access and hex and print file destinations.
In either case, the CP/M assembler loads and prints the message:
CP/M ASSEMBLER VER n.n
where n.n is the current version number. In the case of the first command, the assembler reads the
source file with assumed filetype ASM and creates two output files
filename.HEX
filename.PRN
The HEX file contains the machine code corresponding to the original program in Intel hex
format, and the PRN file contains an annotated listing showing generated machine code, error
flags, and source lines. If errors occur during translation, they are listed in the PRN file and at the
console.
2.3 Control Characters and Commands CP/M Operating System Manual
3-1