Before covermount tapes, magazines and books printed programs for you to type in yourself: games, utilities and demos, sometimes pages long. It could take hours, one typing mistake could stop the whole thing working, and many of us learned to program that way. The listings are still out there, and still worth typing in. Here’s how to do it, on a real machine or an emulator.
Before you start
- Save before you run. A wrong number in a DATA statement or a machine code routine can crash the computer and lose the lot. Save after every session, too.
- Check whether the listing needs another program first, such as a hex loader or a checksum program, often printed in an earlier issue.
- Read the magazine’s notes on how it prints special characters. Magazines each had their own.
- Look for corrections in the following issues: printed listings sometimes had mistakes of their own.
Checksum programs
Typing errors in BASIC usually stop the program with an error at the bad line, but errors in machine code tend to make it crash in ways that are hard to trace. So magazines printed checksum programs: you load the checker first, and it gives a number for each line you type, to compare with the number printed in the magazine.
| Machine | System | How it worked |
|---|---|---|
| ZX Spectrum | Your Spectrum / Your Sinclair Hex Loader | first printed in October 1984 and used for about five years; machine code is typed as 16 hex characters (8 bytes) per line, checked against a checksum |
| Commodore 64 | COMPUTE!’s Automatic Proofreader | from 1983: shows a checksum for each line as you type it. The 1986 version also catches swapped characters |
| Commodore 64 | COMPUTE!’s MLX | for machine code: from 1986, eight hex bytes and a check on each line |
| Commodore 64 | Your Commodore | DATA loaders with a checksum per line that tell you the line number of the mistake |
No checksum is perfect: as Your Commodore warned, one error can cancel out another.
ZX Spectrum
- Don’t spell out keywords. PRINT, GO TO and many others each come from a single key in K mode; the rest need SYMBOL SHIFT or extended mode (both shift keys together). If a line won’t go in, a flashing “?” marks the mistake.
- Block graphics come from graphics mode (CAPS SHIFT and 9): keys 1 to 8 give the blocks, and with CAPS SHIFT their inverse.
- User-defined graphics are typed as the letters A to U in graphics mode. Until the program defines them, they just look like capital letters, so a listing’s “A” may really be a graphic. On a 128, UDGs T and U only work in 48K mode.
- Save with
SAVE "name" LINE 10to make it run as soon as it loads, and save machine code withSAVE "name" CODE start,length. Use VERIFY after every SAVE.
Commodore 64
- A line can be at most 80 characters, two screen lines. Keyword abbreviations (the first letter, then the second with SHIFT: S then shifted A for SAVE) let you squeeze more in, but if you edit such a line later, anything past 80 characters is lost.
- Cursor movements and colour changes inside quotes appear in American listings as words in braces: {CLR}, {DOWN}, and {3 DOWN} for three presses. Inside quotes, the C64 records the key instead of acting on it. Type a closing quote to leave quote mode.
- If you mistype in quote mode, press RETURN and go back to fix the line, rather than trying to delete.
Amstrad CPC
Locomotive BASIC is the easiest of the three: you type keywords in full, and lines can be up to 255 characters. To save, use SAVE"name"; see getting started with an Amstrad CPC.
Using an emulator and tools
Typing into an emulator is faster than on a rubber keyboard, and you can save as often as you like. Better still, you can type the listing as a text file on a PC and convert it:
| Machine | Tool | What it does |
|---|---|---|
| ZX Spectrum | zmakebas | turns a text file into a .TAP tape file, with codes for graphics, UDGs and colours. It does almost no syntax checking, so test the result |
| ZX Spectrum | bas2tap | the same idea, for 48K and 128K BASIC |
| Commodore 64 | petcat (part of VICE) | turns a text file into a .PRG; keywords must be lower case, and control codes are written like {clr} |
| Amstrad CPC | WinAPE Auto Type | types a text file in for you, as if at the keyboard |
Once you have a tape file, see loading Spectrum games without tapes, loading C64 games without disks or loading CPC games without tapes to run it on a real machine.
Where to find listings
Usborne has made its 1980s computer books, such as Computer Spacegames and Write Your Own Adventure Programs, free to download for personal or educational use: 20 titles in all, with listings that work on several machines. Many old magazines are scanned on the Internet Archive, and Spectrum Computing indexes Spectrum type-ins by magazine and page. For the magazines themselves, see the 8-bit magazines.