3.7.4.2 MOVCPM

Sometimes it is required to construct a version of CP/M which does not load into memory in the standard position. This may be because you wish to reserve some memory for other purposes, so CP/M itself must be moved to a lower portion of memory. It is possible to locate CP/M at any position in memory on a 256-byte boundary. The position is specified by a size parameter in the range 64 to 179. This parameter indicates the number of 256-byte areas available for CP/M and transient programs.

The resulting relocated CP/M can either be written to the system disc using SYSGEN or saved using a command prompted by the MOVCPM program.

The syntax of the command is MOVCPM <size> *

eg MOVCPM 178 * will make a CP/M 256 bytes lower in memory than the standard version (which is created with the maximum possible size of 179).

3.7.4.3 SYSGEN

SYSGEN writes the result of a MOVCPM command onto the system tracks of a system or vendor disc. There are three options:

SYSGEN * will write the CP/M generated by an immediately preceding MOVCPM command.

SYSGEN <filename> will read in the specified file, which will probably have been saved after a MOVCPM command, and write that to the system tracks. eg. SYSGEN

CPM44.COM

SYSGEN with no parameters will prompt for a Source and Destination disc and therefore copy the system tracks from one disc to another. This is the option to use if upgrading a Vendor disc to a System disc.

3.7.4.4 BOOTGEN

As discussed in section 3.2 and 3.3 there is more to the system tracks than just CP/M. BOOTGEN, which will prompt for source and destination discs, copies the Sector 1, track 0 (the loader) and the configuration sector from one disc onto another. Use BOOTGEN as part of the process of upgrading a Vendor disc to a system disc, or when you want to distribute a newly designed configuration sector around a number of discs.

3.7.5 Advanced programming

The following programs are for specialist use and it is recommended that the user consults SOFT 159-A Guide to CP/M or other reference works.

ASM

8080

Assembler.

DDT

8080

Assembly code debugging aid.

DUMP

Hexadecimal file dump utility.

ED

A simple context editor.

SUBMIT

Console command mode Batch processing

XSUB

Transient program batch processing.

Chapter 3.9

 

AMSTRAD Disc Drive & Interface DDI-1 Manual

Page 57
Image 57
Amstrad DDI-1 manual Advanced programming, Movcpm, Sysgen, Bootgen