System information
An additional utility program called XSUB extends the power of the SUBMIT facility to include
line input to programs as well as the CCP. The XSUB command is included as the first line of
the SUBMIT file. When it is executed, XSUB self-relocates directly below the CCP. All
subsequent SUBMIT command lines are processed by XSUB so that programs that read buffered
console input, BDOS Function 10, receive their input directly from the SUBMIT file. For
example, the file SAVER.SUB can contain the following SUBMIT lines:
XSUB
DDT
I $1.COM
R
G0
SAVE 1 $2.COM
a subsequent SUBMIT command, such as
A:SUBMIT SAVER PIP Y
substitutes PIP for $1 and Y for $2 in the command stream. The XSUB program loads, followed
by DDT, which is sent to the command lines PIP.COM, R, and G0, thus returning to the CCP.
The final command SAVE 1 Y.COM is processed by the CCP.
The XSUB program remains in memory and prints the message
(xsub active)
on each warm start operation to indicate its presence. Subsequent SUBMIT command streams
do not require the XSUB, unless an intervening cold start occurs. Note that XSUB must be
loaded after the optional CP/M DESPOOL utility, if both are to run simultaneously.
1.6.8 DUMP Command
Syntax:
DUMP ufn
The DUMP program types the contents of the disk file (ufn) at the console in hexadecimal form.
The file contents are listed sixteen bytes at a time, with the absolute byte address listed to the left
of each line in hexadecimal. Long typeouts can be aborted by pressing the rubout key during
printout. The source listing of the DUMP program is given in Section 5 as an example of a
program written for the CP/M environment.
1.6 Transient Commands CP/M Operating System Manual
1-41