Amstrad DDI-1 manual Advanced programming, Movcpm, Sysgen, Bootgen

Page 57

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

Image 57
Contents Page Amstrad Disc Drive & Interface DDI-1 Amstrad Contents Contents Page Connecting the Mains Lead Foundations 1 Setting UpConnecting the DDI-1 to the Computer Computer Interface Unit Main Disc Drive Drive a Computer Write Protection Foundations 2 About DiscsOpen Closed When Your Disc Is Eject Button Indicator LampFoundations Loading Software/Games Drive a disc missing Retry, Ignore or Cancel?Run rolcave ROLCAVE. not foundSyntax error Bad commandDrive a read fail Retry, Ignore or Cancel? Type mismatchFoundations Introducing Amsdos and CP/M Load filename Drive B disc missing Retry, Ignore or CancelDisc Tape.inFirst Steps Using The CP/M Disc Storing Data Onto DiscCpm CLS? Back to Amsdos BewareSaving a Program in Memory onto Disc Catalog Loading From DiscEXAMPLE.BAS Copying Programs From Disc to Disc Copying Programs From Cassette to DiscCopying Programs From Disc to Cassette Copying Using Disccopy Copying Using the CP/M System DiscCopying started Reading track 0 to Copying Using CopydiscWriting track 0 to Do you want to copy another disc Y/NAborting Checking DiscsDiscchk ChkdiscInstallation Amstrad Disc Drive & Interface DDI-1 Manual Making Working Discs Backup Master DiscBasic only disc Working SYSTEM/UTILITY discTurnkey Amstrad Basic discs DISCCOPY.COMTurnkey CP/M Discs Turnkey Basic using disc suppliedTurnkey Basic onto your Working disc Creating a Turnkey CP/M System discConfiguring a CP/M Program Configuring the Output from the packageAmbiguous filename Confirm individual files Y/N ? Configuring the Input to the package Starting a Turnkey CP/M PackagePayroll Autostarting a Turnkey CP/M Package Introduction Amsdos PrimerDisc Directory Amsdos filenames and filetypesConstruction of Filenames Amsdos headers Filenames on two drivesSave PROG.BAS a Save Bprog .BAS Wild cards Examples of Using Amsdos Commands in a programSaving variables and performing a Screen Dump BERT.BAS FRED1.BAS FRED2.BAS FRED3.BAK FRED3.BAS FINISH.BASCloseout NeatPre-empting a Garbage Collection Reference guide to Amsdos commandsWhile not EOF Wend CloseinSummary of Amsdos external commands Summary of Basic commandsSave OPENOUT, Print #9, Write #9, List #9, Closeout CATDIR CPMDisc DISC.INREN ERATape TAPE.INCopying Files File Copying proceduresAmsdos files with headers Ascii filesFile has a header Amstrad Reference guide to Amsdos Error Messages Drive Drive disc is write protected Drive Drive disc missingDrive Drive read fail Drive Drive write failCP/M Primer Operating with CP/MCP/M system tracks Configuration Sector Console control codesLogging in a disc Switching default drives Direct Console CommandsDIR command ERA commandREN command Transient commandsType command Peripheral ManagementSingle file copying File and disc copyingWhole disc copiers and checkers Cassette filesStat System ManagementDo you want to update your system disc Y/N SetupStat SECRET.BAS $DIR Is this correct Y/NAmsdos Disc GenerationFormat Format D Format I FormatAdvanced programming BootgenMovcpm SysgenAmstrad Disc Drive & Interface DDI-1 Manual Introduction to Logo What is LogoGetting Started Dr. LogoRepeat 4 fd 60 rt Procedures with parametersTo square Repeat 4 fd 60 rt 90 end To squareanysize side repeat 4 fd side rt 90 endEditing programs and procedures Using Variables to remember valuesCs squareanysize 100 rt 45 squareanysize To triangle Repeat 3 fd edge rt 120 endSummary of Dr. Logo primitives Operating hintsAscii Word and List ProcessingChar CountFirst EmptypFput ListArithmetic Operations Logical Operations ?= Logo Logo NotVariables ProceduresText Screen EditingSetsplit ShowGraphic Screen CleanType DotPal SetpalWindow Wrap Turtle GraphicsSetpc SethSetpos Workspace ManagementErn NodesGlist RecycleGprop PlistLoad Disc Files DirSave KEYBOARD, Joystick buttonp?paddle 0 Paddle?make key rc ?keyEnv SoundEnt ReleaseRepeat LabelRun StopCatch ErrorPause ThrowSystem Properties Headers Technical information for the user FirmwareStore requirements Changing DiscsError Messages Bios messagesAmsdos messages Failed to load boot sector Common to ALL Formats Disc OrganisationJump Block Interception by Amsdos Jump Block Re-Interception by the UserReturn Parameters Intercepted Firmware Calls 132 #BC8C 133 #BC8F 134 #BC92 135 #BC95 #BC98137 #BC9B Page Appendix Glossary of Terms CP/M Dr.Logo Primitives TPA Amstrad Disc Drive & Interface DDI-1 Manual Appendix Term Limitations of Remedies Amstrad Disc Drive & Interface DDI-1 Manual Appendix Index ERA Setpos