03.03.2013 Views

DIGITAL RESEARCH(r) CP/M Plus TM (CP/M Version 3) Operating ...

DIGITAL RESEARCH(r) CP/M Plus TM (CP/M Version 3) Operating ...

DIGITAL RESEARCH(r) CP/M Plus TM (CP/M Version 3) Operating ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

The MAC Command <strong>CP</strong>/M 3 User's Guide<br />

The MAC Command<br />

Syntax: MAC filename {$options}<br />

Explanation:<br />

MAC, the <strong>CP</strong>/M Macro Assembler, is a transient utility that reads<br />

assembly language statements from a disk file of filetype ASM. MAC<br />

assembles the statements and produces three output files with the input<br />

filename and output filetypes of HEX, PRN, and SYM.<br />

Filename.HEX contains IntelO hexadecimal format ob'ect code. You<br />

can debug the HEX file with a debugger, or use HEX COM to create a<br />

COM file and execute it.<br />

Filename.PRN contains an annotated source listing that can be printed<br />

or examined at the console. The PRN file includes a 16-column wide<br />

listing at the left side of the page that shows the values of literals,<br />

machine code addresses, and generated machine code. An equal sign<br />

denotes literal addresses to eliminate confusion with machine code<br />

addresses.<br />

Filename.SYM contains a sorted list of symbols defined in the program.<br />

Before invoking MAC, you must prepare a source program file with<br />

the filetype ASM containing assembly language statements.<br />

You can direct the input and output of MAC using the options listed<br />

in the following table. Use a letter with the option to indicate the<br />

source and destination drives, console, printer, or zero output. Valid<br />

drive names are A through 0. X directs output to the console. P directs<br />

output to the printer. Z specifies that output files will not be created.<br />

5-59

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!