Amstrad DDI-1 manual Operating hints, Summary of Dr. Logo primitives

Page 63

[CLR] deletes the character under the cursor, [DEL] deletes the character to the left of the cursor.

[ENTER] tells Dr.Logo that you have finished editing a line of commands or makes a new line if you are editing a procedure.

[ESC] means abandon and [COPY] tells Dr.Logo that you have finished editing a procedure.

When typing in commands or new procedures simply edit the text in front of you on the screen. Any characters other than those mentioned above will be inserted into the text at the cursor position.

To edit an existing procedure use the command ed . Dr Logo will display the old version of the procedure on the screen for you, and you can use all the commands above to move the cursor around, and change what it says.

Try editing the procedure patterns by typing ed "patterns

Experiment with the editing keys. If when you have finished, you press [ESC], Dr. Logo will abandon what is on the screen and give you back the original unedited version.

Type ed "patterns again, and after changing the number 4 to 8, press [COPY] to exit, then re-run the procedure and see how the screen output has changed. Remember to set the initial value into :edge

4.9 Operating hints.

The workspace used by Dr. LOGO is divided into nodes. You can see how many are left by typing nodes. Occasionally, when nearly all the nodes are used up, Dr. LOGO will tidy up the workspace and you may see the turtle pause while this happens. You can ask Dr. LOGO to tidy the workspace by typing using the command recycle. This will often allow you to continue after Dr. LOGO has complained of not having any more nodes left.

Make sure that there is plenty of disc space left before starting Dr. LOGO in case you decide to save your procedures on disc. You can use the CAT command in AMSDOS (see AMSDOS primer).

Glance through the final section below and try some of the examples - you won't understand everything the first time ! As you learn about Dr. LOGO you will be able to use more and more of the commands.

When you have finished with Dr. LOGO type bye.

4.10 Summary of Dr. Logo primitives.

This section groups together alphabetical lists of Dr. Logo primitives showing the inputs to use, often with an example.

Primitive names can be entered in either upper or lower-case.

Chapter 4.5

AMSTRAD Disc Drive & Interface DDI-1 Manual

Image 63
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 LampROLCAVE. not found Drive a disc missing Retry, Ignore or Cancel?Foundations Loading Software/Games Run rolcaveType mismatch Bad commandSyntax error Drive a read fail Retry, Ignore or Cancel?Foundations Introducing Amsdos and CP/M Tape.in Drive B disc missing Retry, Ignore or CancelLoad filename DiscFirst 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 DiscDo you want to copy another disc Y/N Copying Using CopydiscCopying started Reading track 0 to Writing track 0 toChkdisc Checking DiscsAborting DiscchkInstallation Amstrad Disc Drive & Interface DDI-1 Manual Making Working Discs Backup Master DiscDISCCOPY.COM Working SYSTEM/UTILITY discBasic only disc Turnkey Amstrad Basic discsCreating a Turnkey CP/M System disc Turnkey Basic using disc suppliedTurnkey CP/M Discs Turnkey Basic onto your Working 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 BERT.BAS FRED1.BAS FRED2.BAS FRED3.BAK FRED3.BAS FINISH.BAS Examples of Using Amsdos Commands in a programWild cards Saving variables and performing a Screen DumpCloseout NeatWend Closein Reference guide to Amsdos commandsPre-empting a Garbage Collection While not EOFCAT Summary of Basic commandsSummary of Amsdos external commands Save OPENOUT, Print #9, Write #9, List #9, CloseoutDISC.IN CPMDIR DiscTAPE.IN ERAREN TapeAscii files File Copying proceduresCopying Files Amsdos files with headersFile has a header Amstrad Reference guide to Amsdos Error Messages Drive Drive write fail Drive Drive disc missingDrive Drive disc is write protected Drive Drive read failCP/M Primer Operating with CP/MCP/M system tracks Configuration Sector Console control codesLogging in a disc ERA command Direct Console CommandsSwitching default drives DIR commandPeripheral Management Transient commandsREN command Type commandCassette files File and disc copyingSingle file copying Whole disc copiers and checkersStat System ManagementIs this correct Y/N SetupDo you want to update your system disc Y/N Stat SECRET.BAS $DIRFormat D Format I Format Disc GenerationAmsdos FormatSysgen BootgenAdvanced programming MovcpmAmstrad Disc Drive & Interface DDI-1 Manual Introduction to Logo What is LogoGetting Started Dr. LogoTo squareanysize side repeat 4 fd side rt 90 end Procedures with parametersRepeat 4 fd 60 rt To square Repeat 4 fd 60 rt 90 endTo triangle Repeat 3 fd edge rt 120 end Using Variables to remember valuesEditing programs and procedures Cs squareanysize 100 rt 45 squareanysizeSummary of Dr. Logo primitives Operating hintsCount Word and List ProcessingAscii CharList EmptypFirst FputArithmetic Operations Logical Operations ?= Logo Logo NotVariables ProceduresShow EditingText Screen SetsplitDot CleanGraphic Screen TypePal SetpalWindow Wrap Turtle GraphicsSetpc SethNodes Workspace ManagementSetpos ErnPlist RecycleGlist GpropKEYBOARD, Joystick buttonp Disc Files DirLoad Save?key Paddle?paddle 0 ?make key rcRelease SoundEnv EntStop LabelRepeat RunThrow ErrorCatch PauseSystem 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