type-in program

term

programmingops culture

Kept in this browser · My desk

A program printed in full in a magazine, book or partwork for the reader to enter by hand at the keyboard; the main way software for home micros was distributed in print in the 1980s.

In Brazil the listing was the backbone of the computing press: the word 'listagem' appears in 98 of the first 100 issues of Micro Sistemas (1981 to 1991), whose errata section was called 'Mensagem de erro'. Listings were numbered in steps of five or ten, as the ZX81's manual advised, so that lines could be inserted. The Micro Aventura books of 1985 made typing a program the way to advance the story.

What it is. A type-in program is a program printed in full, a listing, for the reader to enter by hand at the keyboard. In the late 1970s and the 1980s it was the cheapest way to publish software for home computers: paper cost less than tape, every make could be served on the same page, and the reader learned by typing.

A contract between author and typist. The page gives the numbered lines, often with a paragraph explaining the constants a reader might need to change, and the author's name; the machine checks each line as it is entered (on the Sinclair machines with a syntax error marker) and reports run-time errors as a code and a line number; the magazine closes the loop with errata and a letters page. Its cost was errors: Micro Sistemas printed advice on hunting them in March 1984, in Roberto Quito de Sant'Anna's "Na trilha dos erros de programação", beginning with reading the errata. The regular numbering gives a simple check: a listing from 5 to 180 in steps of 5 has (180 − 5) ÷ 5 + 1 = 36 lines, which is the count of Micro Sistemas' "Lançamento oblíquo" in the same issue. Listings were numbered in steps of five or ten because, as Steven Vickers's ZX81 manual of 1981 put it, it is good practice to leave gaps in the line numbers so that lines can be inserted (the ZX81 accepted 1 to 9999).

Where it started. Dr. Dobb's Journal, launched in January 1976 by the People's Computer Company, existed to print free software in full: its editor, Jim C. Warren, Jr., wrote in February 1976 that the gap no other publication covered was "free and very inexpensive software", and by May 1976 it had published four versions of Tiny BASIC for the 8080, ending with Li-Chen Wang's Palo Alto Tiny BASIC with complete annotated source code.

The checksum answer. The American magazine Compute! and its Gazette printed a number after every BASIC line and a small program, the Automatic Proofreader, that computed the same number from what the reader typed; in its 1984 book version it was 133 bytes of 6502 machine code. For machine code itself, Compute!'s Gazette printed listings for MLX, its machine-language entry program: as its June 1988 issue explains, each line holds eight data bytes and a checksum computed from those bytes and the address, MLX rings a bell when they match and buzzes when they do not, it catches two characters swapped, and it cannot notice FF typed for 00 or the reverse. The same page warns that a mistyped number in a DATA statement can lock the machine up, so a program should be saved before it is run.

One page, many machines. Usborne's children's books printed each game in versions: Computer Battlegames (London, 1982) gives "Missile!" for the TRS-80, the BBC Micro, the ZX Spectrum, the VIC 20, the Apple and the ZX81, and its companions told the reader which lines to change for each computer.

In Brazil. The listing was the backbone of the computing press: the word "listagem" appears in 98 of the first 100 issues of Micro Sistemas (1981 to 1991), whose errata section was called "Mensagem de erro" (in 62 of them). MicroHobby, the magazine of TK users, had a "Programa do leitor" and "Programas do mês" from its no. 0 in March 1983. The INPUT partwork of 1986 built a whole applications course from listings: a letter writer, a collection catalogue, household accounts, bar graphs, a typing teacher in four parts, unit conversions, a drawing package and routines for computer-aided design. The Micro Aventura books of 1985 made typing a program the way to advance the story: each of their eight BASIC programs carries a table of the national micros that run it unchanged and a manual of changes for the others.

What went wrong. Typing errors, above all in DATA statements and machine code, where one wrong digit could crash the computer; printing errors, which is why every magazine had an errata column; and dialects, since each BASIC differed in its random-number function, its graphics and its screen size. Checksums answered the first, errata the second, versioned listings and translation programs such as the Dutch Bascoder the third.

How it faded. The form faded when software came on cassettes broadcast by radio and then on cover disks and CD-ROMs sold with magazines. Neighbours: Automatic Proofreader, checksum, Compute!, partwork, BASIC, compact cassette.

Also known as: type-in, type-in listing, program listing, listagem, programa para digitar

Sources

← Back to T Back to the glossary