Amstrad DDI-1 manual Configuring a CP/M Program, Configuring the Output from the package

Page 32

Although the instructions below are for a single drive disc system, it is in general, simplest to follow them also if you have a twin disc system (by ignoring the second drive).

Firstly format a new system disc. Then copy all the programs from your master package disc using FILECOPY from your System/Utility disc.

Type FILECOPY *.* and follow the instructions on the screen. In particular answer N to the question:

Ambiguous filename: Confirm individual files (Y/N) ?

The FILECOPY program will inform you of the filenames as they are copied.

When the FILECOPY program has finished you will have a working copy of the turnkey disc. If you require any utilities, copy them from your System/Utilities disc using FILECOPY.

1.5.2 Configuring a CP/M Program

The CPC464 supports a wide range of control codes suitable for customising a software package to run with CP/M. Most data-processing any many other packages require to be able to print messages at any part of the screen, accept input from any part of the screen and generally understand cursor controls.

If your package has already been customised for the CPC464 then you need not concern yourself further.

1.5.2.1 Configuring the Output from the package.

The installation procedure for a package will normally consist of running a special program (often called INSTAL) which will ask a number of questions about the parameters of the CPC464 screen. The answers should be derived from the table below, which is an extract from the Amstrad BASIC reference Manual SOFT157:

Value Hex

Value Decimal

Operation

 

&07

7

Sound Bleeper

 

&08

8

Move cursor back one position.

 

&09

9

Move cursor forward one position.

 

&10

10

Move cursor down one line.

 

&0B

11

Move cursor up one line.

 

&0C

12

Home cursor and clear screen.

 

&0D

13

Move cursor to left edge of window on current line.

&10

16

Delete character at cursor position.

 

&11

 

Clear from left edge of window to and including the

 

17

cursor position.

 

&12

 

Clear from and including the current cursor position to

 

18

right edge of window.

 

&13

 

Clear from start of window to and including the

 

19

current cursor position.

 

AMSTRAD Disc Drive & Interface DDI-1 Manual

Chapter 1.4

Image 32
Contents Page Amstrad Disc Drive & Interface DDI-1 Amstrad Contents Contents Page Foundations 1 Setting Up Connecting the Mains LeadConnecting the DDI-1 to the Computer Computer Interface Unit Main Disc Drive Drive a Computer Foundations 2 About Discs Write ProtectionOpen Closed When Your Disc Is Indicator Lamp Eject ButtonDrive a disc missing Retry, Ignore or Cancel? Foundations Loading Software/GamesRun rolcave ROLCAVE. not foundBad command Syntax errorDrive a read fail Retry, Ignore or Cancel? Type mismatchFoundations Introducing Amsdos and CP/M Drive B disc missing Retry, Ignore or Cancel Load filenameDisc Tape.inCpm First Steps Using The CP/M DiscStoring Data Onto Disc CLS? Saving a Program in Memory onto Disc Back to AmsdosBeware EXAMPLE.BAS CatalogLoading From Disc Copying Programs From Disc to Cassette Copying Programs From Disc to DiscCopying Programs From Cassette to Disc Copying Using the CP/M System Disc Copying Using DisccopyCopying Using Copydisc Copying started Reading track 0 toWriting track 0 to Do you want to copy another disc Y/NChecking Discs AbortingDiscchk ChkdiscInstallation Amstrad Disc Drive & Interface DDI-1 Manual Backup Master Disc Making Working DiscsWorking SYSTEM/UTILITY disc Basic only discTurnkey Amstrad Basic discs DISCCOPY.COMTurnkey Basic using disc supplied Turnkey CP/M DiscsTurnkey Basic onto your Working disc Creating a Turnkey CP/M System discAmbiguous filename Confirm individual files Y/N ? Configuring a CP/M ProgramConfiguring the Output from the package Payroll Configuring the Input to the packageStarting a Turnkey CP/M Package Autostarting a Turnkey CP/M Package Amsdos Primer IntroductionConstruction of Filenames Disc DirectoryAmsdos filenames and filetypes Save PROG.BAS a Save Bprog .BAS Amsdos headersFilenames on two drives Examples of Using Amsdos Commands in a program Wild cardsSaving variables and performing a Screen Dump BERT.BAS FRED1.BAS FRED2.BAS FRED3.BAK FRED3.BAS FINISH.BASNeat CloseoutReference guide to Amsdos commands Pre-empting a Garbage CollectionWhile not EOF Wend CloseinSummary of Basic commands Summary of Amsdos external commandsSave OPENOUT, Print #9, Write #9, List #9, Closeout CATCPM DIRDisc DISC.INERA RENTape TAPE.INFile Copying procedures Copying FilesAmsdos files with headers Ascii filesFile has a header Amstrad Reference guide to Amsdos Error Messages Drive Drive disc missing Drive Drive disc is write protectedDrive Drive read fail Drive Drive write failCP/M system tracks CP/M PrimerOperating with CP/M Logging in a disc Configuration SectorConsole control codes Direct Console Commands Switching default drivesDIR command ERA commandTransient commands REN commandType command Peripheral ManagementFile and disc copying Single file copyingWhole disc copiers and checkers Cassette filesSystem Management StatSetup Do you want to update your system disc Y/NStat SECRET.BAS $DIR Is this correct Y/NDisc Generation AmsdosFormat Format D Format I FormatBootgen Advanced programmingMovcpm SysgenAmstrad Disc Drive & Interface DDI-1 Manual What is Logo Introduction to LogoDr. Logo Getting StartedProcedures with parameters Repeat 4 fd 60 rtTo square Repeat 4 fd 60 rt 90 end To squareanysize side repeat 4 fd side rt 90 endUsing Variables to remember values Editing programs and proceduresCs squareanysize 100 rt 45 squareanysize To triangle Repeat 3 fd edge rt 120 endOperating hints Summary of Dr. Logo primitivesWord and List Processing AsciiChar CountEmptyp FirstFput ListArithmetic Operations Logical Operations Not ?= Logo LogoProcedures VariablesEditing Text ScreenSetsplit ShowClean Graphic ScreenType DotWindow PalSetpal Turtle Graphics WrapSeth SetpcWorkspace Management SetposErn NodesRecycle GlistGprop PlistDisc Files Dir LoadSave KEYBOARD, Joystick buttonpPaddle ?paddle 0?make key rc ?keySound EnvEnt ReleaseLabel RepeatRun StopError CatchPause ThrowSystem Properties Technical information for the user Firmware HeadersChanging Discs Store requirementsAmsdos messages Error MessagesBios messages Failed to load boot sector Disc Organisation Common to ALL FormatsReturn Parameters Jump Block Interception by AmsdosJump Block Re-Interception by the User 137 #BC9B Intercepted Firmware Calls132 #BC8C 133 #BC8F 134 #BC92 135 #BC95 #BC98 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