Hints to input programs published in the 8000 Plus magazineThe magazine published hints for error-free typing programs frequently, this ones from December 1987 and March 1988. |
12'1987How to type in a listing(December 1987)
The first thing to do is to load Mallard BASIC.
Turn on your PCW and put the copy of the CP/M master disc in drive A.
When the A> prompt appears type
BASIC and press [RETURN].
After a few seconds a message about Mallard BASIC will appear on the screen, ending with the prompt 'Ok'.
Type in each line carefully, starting with the line number and ending with [RETURN].
The four figure number codes on the extreme right of each line should not be typed - this is for checking purposes if you are using the 8000 Plus checker program as printed last month).
Be careful not to mix up capital I, lower case l and the digit 1, capital O with the digit 0, colons and semicolons, commas and full stops.
You should always save any listing to disc before running it.
to do this type
SAVE "PROGRAM" - you can choose any name you like up lo eight letters in place of PROGRAM.
When you've finished, type
LIST [RETURN] and the whole program will appear on the screen.
Check it, and if any lines are wrong correct them with the 'line editor'.
For example, if there is a mistake in line 100 type
EDIT 100 [RETURN].
Use the arrow keys and the delete key to correct the line, and press [RETURN] when finished.
You can delete a whole line by typing its number and then [RETURN].
To run the program, simply type
RUN [RETURN]...
But!
It's more than likely that no matter how meticulously you typed in the listing it won't work first time.
You may get an error message such as 'Syntax error in 100'.
The line number given in any error message may not be exactly where the error is, it is simply where the program got stuck.
You may have to took around for the mistake.
You can list out the program to the printer (use
LLIST) and check it against the magazine copy.
When you find the mistake use the line editor as described to correct it, rerun the program and keep going until you have got it working.
Don't forget to save the final working version to disc!
To leave BASIC and get back to CP/M type
SYSTEM [RETURN]
To run the program another day, start up BASIC in the same way, put in the disc with the saved program and type
RUN "PROGRAM" (giving the name you saved it under in place of PROGRAM, of course).
|
3'1988How to type in a listing(March 1988)
Load up Mallard BASIC - at CP'M's A> prompt, put the CP/M master disc in and type basic [RETURN].
Now you see the 'Ok' prompt.
Just type in the lines of the listing exactly as they are printed on the page, including the line number at the start, but not the check number at the extreme right.
They are for use with the 8000 Plus listing checker program, as printed in issues 10 and 14.
Type
LIST at any time to print your typing so far out to the screen.
Mistakes made before you press [RETURN] can be corrected with the [DEL] keys, otherwise you will have to use the 'line editor'.
Suppose you have made a typing error in line 100:
type
EDIT 100 and then you can use the cursor keys and [DEL] keys to correct it.
Press [RETURN] when the line is alright.
To delete a line, type just its line number and [RETURN].
When you've finished, save the program to a disc by the command
SAVE "FRED" (choose your own appropriate file name instead of FRED).
To run the program, type RUN.
Programs rarely run first time, but when BASIC encounters a mistake it tells you roughly what line the error is on.
Use the EDIT command to correct it.
You can rerun the program another day by loading BASIC up and, with the disc you saved the program on in the drive, typing
LOAD "FRED" then RUN.
|
| Last updates: 2015 January 22 |