Command File Format; Cmd File Header Format - NEC CP/M-86 System Reference Manual

Advanced personal computer
Table of Contents

Advertisement

Command (CMD) File Generation
3-6
COMMAND FILE FORMAT
The CMD file produced by GENCMD consists of a 128-byte header record fol-
lowed immediately by the memory image. Under normal circumstances, the format
of the header record is of no consequence to a programmer. For completeness,
however, the fields of this record are shown in Figure 3-1.
<----------------------
128 Bytes
---------------------->
GD#I\ GD#2\GD#3JGD#41 GD#5-GD#8 ...
Code,
Data,
Extra,
Stack,
Auxiliary
Figure 3-1 CMD File Header Format
In Figure 3-1, GD#1 through GD#8 represent Group Descriptors. Each Group
Descriptor corresponds to an independently loaded program unit and has the
following fields:
8-bit
16-bit
16-bit
16-bit
16-bit
G-Form
G-Length
A-Base
G-Min
G-Max
where G-Form describes the group format, or equals zero if no more descriptors
follow.
If
G-Form is non-zero, then the 8-bit value is parsed as two fields, as follows.
G-Form:
4-bit
4-bit
x x x x
G-Type
The G-Type field determines the Group Descriptor type. The valid Group Descrip-
tors have a G-Type in the range I through 9, as shown in Table 3-2.

Advertisement

Table of Contents
loading

Table of Contents