Amstrad DDI-1 manual Primitives

Page 94

Page zero:

This refers to the region of memory in a CP/M environment between 0000Hex and 0100Hex that is used to hold vital system parameters.

Physical device:

An actual device, consisting of hardware, that exists. Physical devices may be represented by logical devices.

Primitives:

Procedures, operations or commands that make up Dr. Logo; the built-in procedures.

Procedure:

A series of expressions or program statements that dictate how to perform a particular task.

Prompt:

A short message or character sequence reminding the user that some type of input is expected. For example, the CP/M prompt is the > and the Dr. Logo prompt is the ? character.

Random access:

The ability to read and write information in memory or on a disc in any desired order.

Read only R/O:

An attribute assigned to a disc, a disc file or a disc drive that prevents writing or changing of data.

Read write R/W:

An attribute assigned to a disc, a disc file or a disc drive that allows both reading and writing of data.

Record:

A group of bytes in a file. CP/M uses 128 byte records.

Sector:

A block of data on a disc. The AMSTRAD disc system uses a sector size of 512 bytes.

Single sided:

Refers to a disc which has only one side available for data storage.

AMSTRAD Disc Drive & Interface DDI-1 Manual

Appendix 1.4

Image 94
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 ButtonRun rolcave Drive a disc missing Retry, Ignore or Cancel?Foundations Loading Software/Games ROLCAVE. not foundDrive a read fail Retry, Ignore or Cancel? Bad commandSyntax error Type mismatchFoundations Introducing Amsdos and CP/M Disc Drive B disc missing Retry, Ignore or CancelLoad filename Tape.inStoring Data Onto Disc First Steps Using The CP/M DiscCpm CLS? Beware Back to AmsdosSaving a Program in Memory onto Disc Loading From Disc CatalogEXAMPLE.BAS Copying Programs From Cassette to Disc Copying Programs From Disc to DiscCopying Programs From Disc to Cassette Copying Using the CP/M System Disc Copying Using DisccopyWriting track 0 to Copying Using CopydiscCopying started Reading track 0 to Do you want to copy another disc Y/NDiscchk Checking DiscsAborting ChkdiscInstallation Amstrad Disc Drive & Interface DDI-1 Manual Backup Master Disc Making Working DiscsTurnkey Amstrad Basic discs Working SYSTEM/UTILITY discBasic only disc DISCCOPY.COMTurnkey Basic onto your Working disc Turnkey Basic using disc suppliedTurnkey CP/M Discs Creating a Turnkey CP/M System discConfiguring the Output from the package Configuring a CP/M ProgramAmbiguous filename Confirm individual files Y/N ? Starting a Turnkey CP/M Package Configuring the Input to the packagePayroll Autostarting a Turnkey CP/M Package Amsdos Primer IntroductionAmsdos filenames and filetypes Disc DirectoryConstruction of Filenames Filenames on two drives Amsdos headersSave PROG.BAS a Save Bprog .BAS Saving variables and performing a Screen Dump Examples of Using Amsdos Commands in a programWild cards BERT.BAS FRED1.BAS FRED2.BAS FRED3.BAK FRED3.BAS FINISH.BASNeat CloseoutWhile not EOF Reference guide to Amsdos commandsPre-empting a Garbage Collection Wend CloseinSave OPENOUT, Print #9, Write #9, List #9, Closeout Summary of Basic commandsSummary of Amsdos external commands CATDisc CPMDIR DISC.INTape ERAREN TAPE.INAmsdos files with headers File Copying proceduresCopying Files Ascii filesFile has a header Amstrad Reference guide to Amsdos Error Messages Drive Drive read fail Drive Drive disc missingDrive Drive disc is write protected Drive Drive write failOperating with CP/M CP/M PrimerCP/M system tracks Console control codes Configuration SectorLogging in a disc DIR command Direct Console CommandsSwitching default drives ERA commandType command Transient commandsREN command Peripheral ManagementWhole disc copiers and checkers File and disc copyingSingle file copying Cassette filesSystem Management StatStat SECRET.BAS $DIR SetupDo you want to update your system disc Y/N Is this correct Y/NFormat Disc GenerationAmsdos Format D Format I FormatMovcpm BootgenAdvanced programming SysgenAmstrad Disc Drive & Interface DDI-1 Manual What is Logo Introduction to LogoDr. Logo Getting StartedTo square Repeat 4 fd 60 rt 90 end Procedures with parametersRepeat 4 fd 60 rt To squareanysize side repeat 4 fd side rt 90 endCs squareanysize 100 rt 45 squareanysize Using Variables to remember valuesEditing programs and procedures To triangle Repeat 3 fd edge rt 120 endOperating hints Summary of Dr. Logo primitivesChar Word and List ProcessingAscii CountFput EmptypFirst ListArithmetic Operations Logical Operations Not ?= Logo LogoProcedures VariablesSetsplit EditingText Screen ShowType CleanGraphic Screen DotSetpal PalWindow Turtle Graphics WrapSeth SetpcErn Workspace ManagementSetpos NodesGprop RecycleGlist PlistSave Disc Files DirLoad KEYBOARD, Joystick buttonp?make key rc Paddle?paddle 0 ?keyEnt SoundEnv ReleaseRun LabelRepeat StopPause ErrorCatch ThrowSystem Properties Technical information for the user Firmware HeadersChanging Discs Store requirementsBios messages Error MessagesAmsdos messages Failed to load boot sector Disc Organisation Common to ALL FormatsJump Block Re-Interception by the User Jump Block Interception by AmsdosReturn Parameters 132 #BC8C 133 #BC8F 134 #BC92 135 #BC95 #BC98 Intercepted Firmware Calls137 #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