User`s guide

1.6.2 CCP Operation
The Console Command Processor provides the user access to CP/M 3 facilities
when transient programs are not running. It also reads the user's command lines,
differentiates between built-in commands and transient commands, and executes the
commands accordingly.
This section describes the responsibilities and capabilities of the CCP in some
detail. The section begins with a description of the CCP's activities when it first
receives control from the Cold Start procedure. The section continues with a general
discussion of built-in commands, and concludes with a step-by-step description of
the procedure the CCP follows to execute the user's commands.
When the CCP gains control following a cold start procedure, it displays the
system prompt at the console. This signifies that the CCP is ready to execute a
command. The system prompt displays the letter of the drive designated as the initial
default drive during GENCPM operation. For example, if drive A was specified as
the initial default drive, the CCP displays the following prompt:
A >
After displaying the system prompt, the CCP scans the directory of the default drive
for the file PROFILE.SUB. If the file exists, the CCP creates the command line
SUBMIT PROFILE; otherwise the CCP reads the user's first command line by mak-
ing a BDOS Read Console Buffer function call (BDOS Function 10).
The CCP accepts two different command forms. The simplest CCP command form
changes the default drive. The following example illustrates a user changing the
default drive from A to B.
A>B:
B >
This command is one of the CCP's built-in commands. Built-in commands are part
of the CCP. They reside in memory while the CCP is active, and therefore can be
executed without referencing a disk.
1-16
1.6 System Operation CP/M 3 Programmer's Guide