A 45-Year-Old Commodore Program Was Recovered From a Paper Printout — And It Works Again

7 min read Original article ↗

Somewhere among a collection of old university papers, sitting untouched for decades, were three and a half pages of source code from a computer program that its creator had long assumed was lost forever. The program itself wasn't a commercial game, an unfinished blockbuster or even something intended for public release. It was a university assignment, written around 1980 by a Canadian computer science student named Steven McDowell. And now, approximately forty-five years later, it works again!

The program is called Air Traffic Control, a small simulation developed for the Commodore SuperPET, one of the more unusual computers to emerge from Commodore's early years. McDowell recently rediscovered its original source code on a dot-matrix printout, painstakingly re-entered it into an emulator, and spent around 40 hours getting it running again.

The story was shared on 18 November by Frank Gasking of Games That Weren't, following an introduction from fellow retro programmer James Price. And while the recovered program might not look particularly spectacular today, it just makes me happy to see a piece of software surviving for so long just because somebody happened to keep a few sheets of paper!

The Rather Unusual Commodore SuperPET

To understand why McDowell wrote the program in the first place, we need to go back to the University of Waterloo in Ontario, Canada, way back during the early 1980s.

At the time, the university was developing technology that would eventually find its way into Commodore's SuperPET, a specialised version of the company's popular PET computer. Unlike the more familiar Commodore 64, the SuperPET was aimed primarily at education and programming. It was an unusual machine, featuring both the PET's original 6502 processor and an additional Motorola 6809. A switch allowed users to move between the standard PET environment and a more advanced programming system developed at Waterloo.

The university had been working on its own programming languages and development tools, including versions of BASIC, Pascal, FORTRAN, COBOL and APL. These would give students access to languages that were often associated with considerably larger, far more expensive computers.

Original source listing for Waterloo microAPL, with handwritten comments and highlighted variables.
A surviving dot-matrix source listing, marked up by hand.

McDowell was studying computer science while also working in Waterloo's Computer Systems Group, where he was part of a three-person team alongside Geno Coschi and John C. Wilson. Their job involved developing an interpreter for Waterloo microAPL, a version of the APL programming language designed for smaller computers.

APL is pretty different from the programming languages many of us are familiar with today. It makes extensive use of mathematical symbols and operations on arrays of data, allowing some complicated calculations to be expressed in relatively compact ways. And McDowell found himself in the perfect position to put it through its paces.

A University Assignment With Aircraft

As part of a fourth-year operating systems course, McDowell needed to demonstrate concepts involving real-time programming, multiple processes and communication between them.

Instead of approach the assignment in a conventional way, he came up with the idea of creating a small operating system kernel in APL, with an air traffic control simulation running on top of it. He even persuaded his professor to let him complete the assignment using APL, allowing him to combine his university studies with testing the programming language he was helping to develop professionally.

The resulting simulation was simple from a player's perspective. You could specify how many aircraft should appear, and the program would send them travelling across the screen at different speeds, leaving dotted trails behind them, but there was way more happening beneath the surface.

Green-on-black screen displaying source code from the reconstructed Air Traffic Control program.
The recovered program running within the Waterloo microAPL environment.

Each aircraft was represented by its own process, communicating with a simulated air traffic controller as it moved. When the controller detected a potential conflict between aircraft, it could calculate an alternative position and communicate that information back. In other words, the aircraft weren't really the point of it. They were a way to demonstrate how several processes could operate and exchange information within the little system McDowell had created. For a university assignment written around 1980, on hardware with extremely limited resources by today's standards, it was a clever experiment.

Three and a Half Pages That Survived

For decades, McDowell remembered the program and had a vague recollection of what it looked like, but believed the original source code had disappeared.

That changed after he gave a presentation about Waterloo microAPL at the university's Computer Museum. While subsequently sorting through old Watcom paperwork, he came across something super unexpected: a dot-matrix printout containing approximately three and a half pages of the original program.

Long composite photograph showing a surviving paper listing for the complete Air Traffic Control program.
The remarkably long original listing, preserved on paper. Tap or open the image to inspect it more closely.

It must have been a remarkable discovery for him. Here was something he'd written as a student, more than four decades earlier, preserved not on a floppy disk or magnetic tape, but on ordinary paper. McDowell had access to a working SuperPET emulator and the original Waterloo microAPL environment, so he began typing the surviving code back into the computer. Unfortunately, simply recreating the listing wasn't enough.

As he explained in the account published by Games That Weren't, "The listing was not the final copy."

Some of the code therefore needed further work before the simulation would behave as intended. Rather than leave it as a historical curiosity, McDowell spent approximately 40 hours debugging and improving the reconstruction, and eventually, the aircraft were moving across the screen again!

Detail of a highlighted section of the original program listing with the ATC application marked.
The printout retains handwritten annotations dividing the kernel from the air traffic control application.

It's worth making a distinction here: this isn't necessarily a byte-for-byte recovery of the exact program McDowell originally submitted. The surviving printout wasn't the finished version, so the software now available is a working reconstruction based upon that original code.

Nevertheless, it's an extraordinary recovery, particularly because the original programmer was able to undertake the work himself. And the reconstruction still has a few little mysteries. McDowell has documented an occasional INDEX ERROR when three aircraft are running, while aircraft number four sometimes begins circling unexpectedly. Apparently, even after forty-five years, some bugs are just determined to survive.

Close-up of an original dot-matrix paper listing showing message handling and aircraft controller code.
A closer look at the original APL instructions and annotations.

Back in the Air After Forty-Five Years

Thanks to McDowell and James Price, Air Traffic Control is now publicly available for anyone interested in experimenting with it.

You can download the reconstructed Air Traffic Control program directly, courtesy of Games That Weren't, where you'll also find photographs of the original printout, screenshots and instructions for getting everything running.

You'll need either an actual Commodore SuperPET or the VICE emulator, along with Waterloo microAPL. The archive recommends enabling the emulator's warp mode because running the simulation at original hardware speeds can be rather slow.

Original printed APL program on aging paper with handwritten notes and highlighted text.
Another surviving page from the recovered source.

McDowell's work is also documented in Price's book 52 APL Games for Your Commodore 64, C128, and SuperPET, which explores programming in APL and includes an examination of the original air traffic control experiment.

What I love about this little story is how easily the program could have disappeared. Had McDowell thrown away those old papers, or simply overlooked the printout, there might never have been enough information left to reconstruct it. Instead, a few pages of faded source code have given an obscure piece of computing history another opportunity to be studied, shared and enjoyed.

We often talk about video game preservation in terms of recovering lost prototypes, locating forgotten disks or reconstructing old source code. But sometimes it's considerably more personal than that. Sometimes it's a programmer finding something he made as a student and deciding, after all these years, that he'd quite like to see it working again.

And now, thanks to a few sheets of paper and rather a lot of patience, the little aircraft are flying once more!