posted in Technology
A 45-Year-Old Commodore Program Was Recovered From a Paper Printout — And It Works Again
handheldhideout.neocities.org/articles/a-45-year-old-commodore-program-recovered-from-paper-printoutposted in Technology
A 45-Year-Old Commodore Program Was Recovered From a Paper Printout — And It Works Again
handheldhideout.neocities.org/articles/a-45-year-old-commodore-program-recovered-from-paper-printoutReplying to @PerfectDark@lemmy.world
I came across a nice little preservation story that I couldn’t resist writing about!
Back around 1980, Canadian university student Steven McDowell created an air traffic control simulation for the Commodore SuperPET, written in Waterloo microAPL. He thought the program had been lost forever, until more than forty years later, when he discovered three and a half pages of its original source code printed on old dot-matrix paper. Instead of just archiving the listing, he painstakingly typed it back into an emulator and spent around 40 hours debugging and reconstructing the software until the little aircraft were flying again!
Nice example of how easily early computing history could disappear, and how something as ordinary as a few surviving sheets of paper can bring it back. I’ve written a tiny little article about McDowell, the unusual SuperPET and the recovery of his program. Hope you enjoy it!
Replying to @PerfectDark@lemmy.world
How could it fit in 3.5 pages?
Replying to @Brkdncr@lemmy.world
What he found wasn’t the complete game/project. He was lucky to have found even that much, but he had to recreate the rest to release it now
Replying to @Brkdncr@lemmy.world
Apl uses a lot of math notation, so it can be very succinct
Replying to @PerfectDark@lemmy.world
That’s so cool.
Replying to @PerfectDark@lemmy.world
he painstakingly typed it back into an emulator
Hadn’t heard of OCR then?
Replying to @jobbies@lemmy.zip
1980 dot matrix printer. OCR. Hehehe yeah…
Replying to @speculate7383@lemmy.today
No problem for modern OCR.
Replying to @jobbies@lemmy.zip
Hadn’t heard of OCR then?
You’re missing the part where typing in code from a printed page was part of the ritual of the day. He didn’t just want the code in the computer, he wanted to recreate a core memory of his youth.
Replying to @PerfectDark@lemmy.world
I love a feed good story
Replying to @yessikg@fedia.io
Printer feed
Replying to @PerfectDark@lemmy.world
Yes, of course it does. Why wouldn’t it?
Replying to @xxce2AAb@feddit.dk
Because it was neither complete nor the final version. He had to rebuild it.
Replying to @shalafi@lemmy.world
Thanks, I think a few here skipped actually reading the story!
Replying to @shalafi@lemmy.world
He had the technology.
Replying to @xxce2AAb@feddit.dk
Because it's software running in 2026.
Replying to @PerfectDark@lemmy.world
My first computer, and it was an antique by the time I had it. The disks were like the size of a dinner plate.
Replying to @PerfectDark@lemmy.world
There was an Apple ][ magazine that printed a program in hex each month. Pages and pages to type in. Get it all right and you had yourself a new program. Taught you patience if nothing else.
Replying to @YetAnotherNerd@sopuli.xyz
I did that a lot… and I printed my code on sheets of paper; I just feel weird reading OP article.
Edit ( because I also printed out sheets of paper with my programs from the commodore64).
Replying to @YetAnotherNerd@sopuli.xyz
There were multiple magazines like that for all the various 8-bits. I have a stack of old Compute!'s Gazettes that have both BASIC type-ins as well as hexadecimal listings. And I spent hours typing those in back in the day.
I liked the BASIC ones better because they were easier to modify on the fly or after the fact. Once you'd typed in a few programs it was hard to not read and understand the program rather than just copy it.
The hex ones were more difficult, but it was often possible to pick out well-known memory addresses and opcodes giving the potential to know what and where to POKE to make subtle changes later on.
The really good listings came with a checksum program that you typed in first (once, then saved to disk or tape for future use), or even a dedicated hex editor with checksum, so that it would pick up mistakes. Not where. Only that the line you typed must have an error in it.
Replying to @YetAnotherNerd@sopuli.xyz
In hex? But when you type a character, it isn’t the hex value? Or was there a special keypad used?
I’d really love for someone to find a way to add hexadecimal keypad for these IPv6 addresses though.
Replying to @heartSagan5@lemmy.zip
I guarantee that multiple companies make a hex keypad.
If you mean for the Apple II, that’s far less likely, but I’m sure someone hacked one together. Should be easy to do these days, though.
Replying to @heartSagan5@lemmy.zip
There were some basic programs in these magazines that had some data sections in raw hex, but only part of the program. And weren’t common.
I really doubt they were magazines that focused on entering literal binary blobs
Replying to @heartSagan5@lemmy.zip
You’d type in the hex. The article below has an example page: (they did it for multiple computers and in different formats)
Replying to @YetAnotherNerd@sopuli.xyz
Oh ya. Waiting for the school to open at 7am. We reserved time slots to use the Apple 2 ( the only school in the city to have a computer ) to type in those programs. First it was tape, then floppies.
I’ll be retiring I.T. in a couple of years LOL
Replying to @uhmbah@lemmy.ca
My 9th grade programming class had a bunch of Apple IIe computers. They were great for the time, I guess. I spent most of the semester recreating the Battlezone arcade game on it, while the rest of the class struggled to get a key-driven menu working.
Replying to @PerfectDark@lemmy.world
Typing code from PC Magazine was how I often got my VIC-20 working.
Replying to @shalafi@lemmy.world
That takes me back to my ~8th or 9th birthday
Replying to @BlueEther@no.lastname.nz
I’m only a year or two older! I know I didn’t have my VIC-20 at 9 because I broke my arm on that birthday. No solace in computing. :(
Replying to @shalafi@lemmy.world
Same but with a Timex Sinclair 1000 and it’s respective magazine. 2k memory but I had the 16k upgrade module, and of course the cassette tape deck to save everything on…
Man, APL looks like a complete nightmare.
Replying to @PerfectDark@lemmy.world
Huh, maybe the FAA could upgrade to this!
Replying to @PerfectDark@lemmy.world
Back in those days, DJ played Spectrum game on the air. I taped the game on Cassette and after that played the game. Don’t remember which game was.
Replying to @itisileclerk@lemmy.world
what
Replying to @ripcord@lemmy.world
They used to broadcast code on FM radio.
Listeners could record it to tape and insert the tape in the computer’s tape drive to run the code.
Replying to @bstix@feddit.dk
Ahhhh gotcha
Replying to @bstix@feddit.dk
Considering the lack of paity, error correction.imdo, it’s pretty amazing that worked at all, ever. Even at those low bit rates.
Replying to @ripcord@lemmy.world
ZX Spectrum tape file format had a ‘checksum’ at the end of each block, which was just an XOR of all the bytes in the block, basically parity. Lead to a whole pile of R Tape loading error messages when your tapes were going a bit dodgy. CPU probably wasn’t fast enough to read the tape and do error correction at the same time.
Describing the data rate as ‘low’ kind of understates it. Averages 170 bytes per second. A ZX Spectrum 128K game that took up the entire memory could take nearly 13 minutes to load.
Replying to @ripcord@lemmy.world
The most common tape formats did use a parity bit, and the data was doubled, so that it could attempt to correct it if an error occurred.
The signal was coded as pulse-width modulation, so the amplitude didn’t matter much as long as the zero crossings were timed within an acceptable threshold. I don’t know the exact width of these pulses, but it worked fine when copying a tape at double speed or more.
Replying to @bstix@feddit.dk
and amstrad was smart enough its separated code into “blocks” if a block failed you can just rewind and try again. it was strangely quite robust honestly.
Replying to @ripcord@lemmy.world
i mean tehre was demo on flexidisc (a floppy vinyl record) and record love to pop even new.
Replying to @bstix@feddit.dk
Magazines used to also have cheap plastic records slipped between the pages that when played on a record player and recorded to tape would contain bonus material.
Replying to @ripcord@lemmy.world
We used to load computer games from a cassette tape. You could copy games with a back 2 back tape deck / ghetto blaster.
If you played the screechy computer noises over the airwaves someone could record the game off the radio.
N.B. I’m not OP
Replying to @Noel_Skum@sh.itjust.works
That’s metal as fuck
Replying to @Noel_Skum@sh.itjust.works
My friend had a VIC-20 but without the tape drive (which was optional). We would have to type a game (written in BASIC) into the computer before we could play it. My friend would try and leave the machine on as long as possible so we didn’t have to keep retyping it, but his mom always turned it off at night. For whatever it’s worth, that kind of shit really teaches you accuracy.
Replying to @ChickenLadyLovesLife@lemmy.world
We would get really deep into a game of Zork, and because there as no savepoints, we just turned off the monitor and came back to it later. Leaving our C64 on that long may have contributed to the power supply dying prematurely. My mom was also using the C64 to write her master’s thesis. Sorry mom.
Replying to @partial_accumen@lemmy.world
Yes, power supply issues were a thing with C64’s. Our dad had to send ours for repair twice because we kept leaving the thing on for Zork.
Replying to @ChickenLadyLovesLife@lemmy.world
These sort of plights are what made computers what they are today. Now they are mostly consumer devices and there isn’t any scarcity for what those people want to consume so they never learn more about the device
Replying to @ripcord@lemmy.world
Computer code was translated into audio. That audio was then broadcast over regular radio used for music and news. If you had a cassette recorder and a blank cassette, you could simply record the sound coming out of the speakers of a radio. You then put this recorded cassette into a cassette tape player connected by a wire to your computer so the computer would hear the cassette play. You run a special command on the computer so it starts listening, you press play on the tape and the computer will translate the recorded audio back to computer code. You could then run that program.
Replying to @partial_accumen@lemmy.world
If you’re familiar with the 56k modem connection song, that’s a similar principle. The telephone line is analog but digital content can be encoded in analog using a DAC, at which point it’s can be interpreted as an audio signal and played through a speaker.
The sound itself was just data (training patterns, not the actual data of interest, that gets transmitted after the “song”) being encoded at a faster and faster rate, and it would select the fastest speed it could transmit data at reliably along the line. The “song” would progress further the higher the speed it could communicate reliably with the other side, or it might go back and repeat a section because it could negotiate phase (and other parameters) as well as bitrate, which might improve the line reliability, but it still needed to see that test pattern come through cleanly before it would accept a rate.
Replying to @partial_accumen@lemmy.world
From your choice of words I see you are/were a Commodore user
Replying to @ripcord@lemmy.world
Guilty as charged! My C64 is sitting close to me right now. I half considered putting PRESS PLAY ON TAPE in caps just to drive the point home.
Replying to @PerfectDark@lemmy.world
Yeah? Like, isn’t this how it usually goes with Commodore? I don’t own one but from i’ve read, typing the program off was how you usually did things on it.
Replying to @MonkderVierte@lemmy.zip
It was one option for the home computers of that era, but not the only one. You could buy software on cassette tape, 5 1/4" floppy, or (for the Commodore 64 and VIC-20, anyway) cartridges similar to those used by game consoles of the same era. I’m not sure that some people I knew who had C-64s ever typed a listing into them or knew any commands except for those for tape and floppy access.
Replying to @nyan@lemmy.cafe
I had some commodore 64 books that had programs I “wrote” from the book. Silly games but fun to learn to write when I was a kid. Also had purchased and BBS origin games
Replying to @lost_faith@lemmy.ca
I had an atari 130XE, parents didn’t spring for the disk or tape, I had some carts and a book with some sample programs.
We typed the Big Bang sample into memory for 3 hours. it made a graphical representation of the big bang over 15 seconds.
it was kinda neat, but honestly underwhelming.
Replying to @MonkderVierte@lemmy.zip
Yeah I’m old and I remember my parents buying magazines that had software in them that was just a printout that they’d type in by hand on a ZX Spectrum.
Replying to @PerfectDark@lemmy.world
This is a wonderful preservation story. What struck me most is that the printout was only part of the program — he still had to recreate the missing pieces to get it running again, which makes the recovery even more impressive. It is a good reminder of how fragile early software history is: a few pages of paper were nearly all that stood between this program existing and disappearing completely. I also loved the comments about typing programs in from magazines and loading games from cassette tapes — that was how a lot of people first learned to code.
Replying to @PerfectDark@lemmy.world
Urgh, I relate to the majority of comments in this thread and I think it’s time I schedule that colonoscopy…