08.06.2013 Views

DIGITAL RESEARCH TM CP/M Operating System Manual CP/M ...

DIGITAL RESEARCH TM CP/M Operating System Manual CP/M ...

DIGITAL RESEARCH TM CP/M Operating System Manual CP/M ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

1.6 Transient Commands <strong>CP</strong>/M <strong>Operating</strong> <strong>System</strong> <strong>Manual</strong><br />

An additional utility program called XSUB extends the power of the SUBMIT facility to include<br />

line input to programs as well as the C<strong>CP</strong>. The XSUB command is included as the first line of<br />

the SUBMIT file. When it is executed, XSUB self-relocates directly below the C<strong>CP</strong>. All<br />

subsequent SUBMIT command lines are processed by XSUB so that programs that read buffered<br />

console input, BDOS Function 10, receive their input directly from the SUBMIT file. For<br />

example, the file SAVER.SUB can contain the following SUBMIT lines:<br />

XSUB<br />

DDT<br />

I $1.COM<br />

R<br />

G0<br />

SAVE 1 $2.COM<br />

a subsequent SUBMIT command, such as<br />

A:SUBMIT SAVER PIP Y<br />

substitutes PIP for $1 and Y for $2 in the command stream. The XSUB program loads, followed<br />

by DDT, which is sent to the command lines PIP.COM, R, and G0, thus returning to the C<strong>CP</strong>.<br />

The final command SAVE 1 Y.COM is processed by the C<strong>CP</strong>.<br />

(xsub active)<br />

The XSUB program remains in memory and prints the message<br />

on each warm start operation to indicate its presence. Subsequent SUBMIT command streams<br />

do not require the XSUB, unless an intervening cold start occurs. Note that XSUB must be<br />

loaded after the optional <strong>CP</strong>/M DESPOOL utility, if both are to run simultaneously.<br />

1.6.8 DUMP Command<br />

Syntax:<br />

DUMP ufn<br />

The DUMP program types the contents of the disk file (ufn) at the console in hexadecimal form.<br />

The file contents are listed sixteen bytes at a time, with the absolute byte address listed to the left<br />

of each line in hexadecimal. Long typeouts can be aborted by pressing the rubout key during<br />

printout. The source listing of the DUMP program is given in Section 5 as an example of a<br />

program written for the <strong>CP</strong>/M environment.<br />

1-41

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

Saved successfully!

Ooh no, something went wrong!