Replying 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 @⁨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 @⁨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.

…wiki.zxnet.co.uk/…/Spectrum_tape_interface#Block…

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 @⁨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 @⁨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 @⁨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 @⁨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.