Close

Microcode source published

A project log for Isetta TTL computer

TTL Retro computer runs 6502 and Z80 code. Has video, sound and filesystem. Runs a Windows-like OS. No microprocessor or FPGA.

roelhroelh • 11/06/2026 at 15:38•0 Comments

Today, I published the microcode source in the hackaday file section, as microcode 261106.zip.

The microcode actually does a lot more than implementing a processor. Some of it's other functions are:

Startup:
 - system reset  (keyword "R E S E T" )
 - initialize tables (keyword tbl1)
 - copy Z80 boot code from microcode flash to RAM at 0xE000 (keyword DATA, prepared by function "init_values")
 - init system variables (keyword launch)
 - transfer control to bootcode at 0xE000 (end of launch)
Peripherals:
 - process timer interrupt every scanline
 - keyboard and mouse communication
 - video display driver
 - sound driver
 - rtc real time clock
Specialized processing:
 - Blitter
 - Sound generator

Peripherals are mostly serviced in an interrupt. In every CPU instruction, the interrupt request signal is checked. If it is active (indicating the beginning of a new scanline), the Z80 jumps to microcode 0x80 in page 1. This starts a sequence that will first poll the keyboard, then the mouse, output a sound sample, and it will then increment the pointer to the frame table. Then it jumps to the actioncode in the frame table, where the pointer points. The actioncode tells Isetta what to do on this scanline (display video, do vertical sync, and if it is a blank line it will go back to the CPU immediately).

Discussions