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 GENCOM Command <strong>CP</strong>/M 3 User's Guide<br />

Explanation: The preceding form of the GENCOM command creates a COM file<br />

with a header and attached RSXS. A maximum of 15 RSXs can be<br />

attached. GENCOM expects the first filespec to be a COM file and the<br />

following filespecs to be RSX files. Note that the original COM file is<br />

replaced by the newly-created COM file.<br />

Example: A >GENCOM MYPROG PROG1 PROG2<br />

The preceding command generates a new COM file MYPROG.COM<br />

with attached RSXs PROG1 and PROG2.<br />

Generate a COM File Using only RSX Files<br />

Syntax: GENCOM RSX-filespec {RSX-filespec}...<br />

[NULL {SCB = (offset,value)}]<br />

Explanation: The preceding form of the GENCOM command attaches the RSX files<br />

to a dummy COM file. GENCOM creates a COM file with the filename<br />

of the first RSX-filespec in the command tail. This format allows<br />

the system to load RSXs directly.<br />

Example: A>GENCOM PROGI PROG2 [NULL]<br />

The preceding command creates a COM file PROG1.COM with Resident<br />

System Extensions PROG1.RSX and PROG2.RSX.<br />

Restore a File with Attached RSXs to Original COM File<br />

Syntax: GENCOM filename<br />

Explanation: The preceding form of the GENCOM file takes a file that has already<br />

been processed by GENCOM and restores it to its original COM file<br />

format. This form of the command assumes a filetype of COM.<br />

Example: A> GENCOM MYPROG<br />

In the preceding command, GENCOM takes MYPROG.COM, strips<br />

off the header and deletes all attached RSXs to restore it to its original<br />

COM format.<br />

5-41

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

Saved successfully!

Ooh no, something went wrong!