Homebrew Computer From The Ground Up

Building a retro computer of some sort is a rite of passage for many of us, with some building replicas or restorations of old Commodores, Ataris, and other machines from decades past. Others go even further back, to the time of the Intel 8008 or earlier, and a dedicated few will build something completely novel. This project from [3DSage] falls squarely in the latter category, with his completely DIY computer built component by component from scratch, including the machine code needed to run it.

[3DSage] starts with the backbone of every computer: the clock. He first demonstrates how a pair of NOT gates with a set of capacitors can be used as a rudimentary clock pulse, then builds a more refined version with a 555 timer and potentiometer for adjustable rates. Then, it’s on to creating a binary counter, which is a fundamental part of the memory system for this small computer, and finally, allows this circuitry to behave like a normal computer. Using a set of switches to store values in memory and stepping through them with the clock, the computer can be programmed to do plenty of tasks just like a modern microcontroller.

[3DSage] built this project a few years ago and has used it for real-world applications such as controlling servos, LED arrays, playing music, and other tasks. Although he has to program it using his own machine code by hand, it’s a usable computer in many ways. If you want to eschew modernity and build a retro computer in the style of the 1960s, though, this piece goes through what it would have been like to build a similar system in the era when these computers were more common. If you have a switch fetish, you might like to see how real computers worked back then, too.

Continue reading “Homebrew Computer From The Ground Up”

Revisiting A Z80 Game From 1990

Back in the days of 8-bit computers, like no doubt many readers of similar age, we wrote little games. First in BASIC, then augmented with little machine code speed-ups. We didn’t come close to [Óscar Toledo Gutiérrez] though, who’s reverse engineering a 2K all-machine-code game he wrote back in 1990. As a tale of software archaeology it’s fascinating.

The game itself is an avoid-the-monsters platformer with plenty of ladders for the little sprite-based protagonist to run down. The computer was a Mexican homebrew educational machine with a TMS9118 display chip and an AY-3-8910 synthesizer, so the result had both color and music. His run through the code breaks it down neatly into individual sections, so it’s possible to see what’s going on without an in-depth knowledge of machine code.

He readily admits it bears all the hallmarks of an 11-year-old’s knowledge at the time, and that it has some parts less elegant, but nevertheless it’s something of an achievement at any age. It was out of date gameplay-wise in 1990 but in 1982 it could probably have been bought on a tape by eager kids. Here in 2024 he’s got it for download should you have a Colecovision or an MSX. There’s a gameplay video below the break, take a look.

Continue reading “Revisiting A Z80 Game From 1990”

A Lockdown Brightened By A Library Of Vintage Usborne Books

Lockdown is boring. No, let’s emphasize that, lockdown is really boring. Walking for exercise is much less fun than it was last year because it’s a wet and muddy February, and with nowhere open, a rare trip out to a McDonalds drive-through becomes a major outing. Stuck inside for the duration we turn our eyes to some of the older ways to wile away the time. Books. Remember them? In doing that I found that the friend whose house I’m living in has the whole library of Usborne children’s computer and technology books from the 1980s. Suddenly a rainy day doesn’t matter, because we’re in a cheerful world of cartoon robots and computer parts!

When Kids Learned Machine Code

A comprehensive selection to get one's teeth into.
A comprehensive selection to get one’s teeth into.

If this leaves you none the wiser, it’s worth explaining that during the 1980s home computer boom there was no Internet handily placed for finding out how your new toy worked. Instead you had to read books and hoard the scraps of information they contained. Publishers responded to this new world of technology with enthusiasm, and the British children’s publisher Usborne did so in their characteristic entertaining and informative style. For probably the only time in history, children were presented with mainstream books telling them how to write machine code and interface directly to microprocessors, and those among them who probably now read Hackaday took to them with glee. They remain something of a cult object among retrocomputing enthusiasts, and fortunately a selection of them are available for download. Usborne are still very much in business producing up-to-date books educating today’s children, and to promote some of their more recent titles for the Raspberry Pi they’ve released them in electronic form. Continue reading “A Lockdown Brightened By A Library Of Vintage Usborne Books”

Programming The 6502 One Nibble At A Time

[Quinn Dunki] keeps rolling with her 6502 based computer build. This time around she’s added some memory to store the programs, but needed a way to get that code into the device. Above is her solution, a bank of hex switches used to program the 8-bit command and 16-bit address for each line of machine code.

This is a continuation of her Veronica project. The last time we saw it she had hardwired the logic levels for the data bus, but that’s no fun since nothing can actually be computed. [Quinn] picked up an SRAM chip which will store the program. It’s compatible with the 6502’s memory bus, but needs a bit of extra circuitry for her to be able to hand program it with this switch bank. She used some tri-state buffers to switch between connections to the processor, and to the hex switches. This way, she disconnects the RAM from the processor using the buffers, uses the switches and push button to clock in the program, then patches the RAM back into the computer.

Seeing this process in the video after the break certainly gives you an appreciation for what an improvement the punch-card system was over this technique. Still, seeing this is a delight that we’d like to try! Continue reading “Programming The 6502 One Nibble At A Time”