code · How-To
Breaking Enigma with Index of Coincidence on a Commodore 64
The Bombe needs a crib. What if you don’t have one? Index of coincidence measures how much an output looks like real language vs random noise. …
Mar 31, 2026 · 30 min
code · How-To
The Wallis Product for Pi on the C64
John Wallis found an infinite product for pi in 1655. Multiply enough fractions together and pi falls out. We run it on the C64 in BASIC and assembly, …
Mar 14, 2026 · 13 min
code · How-To
Enigma Ring Settings on the Commodore 64
Ring settings multiply Enigma’s keyspace by 17,576. We add them to our C64 emulator, see why brute force alone can’t keep up, and set the …
Feb 25, 2026 · 16 min
code · How-To
Breaking Enigma on the Commodore 64
The Commodore 64 searches nearly six million Enigma M3 configurations to find the one that matches a known plaintext crib. First the concept, then …
Feb 24, 2026 · 22 min
code · How-To
Enigma Emulator on the Commodore 64
A working Enigma M3 emulator on the Commodore 64. First in BASIC for clarity, then in 6502 assembly for speed. Eight rotors with dual notches, …
Feb 20, 2026 · 23 min
code · Getting Started
10 PRINT on the Apple II
Bringing 10PRINT to the Apple II with Applesoft BASIC and Lo-Res graphics, exploring both text-mode and graphical approaches to this iconic one-liner.
Jan 15, 2026 · 2 min
code · Getting Started
Sorting Algorithms Visualized on the Commodore 64
Visualizing sorting algorithms in real-time on the Commodore 64 using PETSCII characters. Three classic algorithms rendered as animated bar charts in …
Dec 17, 2025 · 14 min
code · Getting Started
Three Maze Generators on the Commodore 64
Exploring three different maze generation algorithms on the Commodore 64: Depth-First Search, Randomized Prim’s, and the classic 1981 algorithm …
May 30, 2025 · 10 min
code · How-To
16-bit Unsigned AND on Commodore 64
Implementing 16-bit unsigned AND operations in Commodore BASIC using two’s complement to work around the signed integer limitation.
May 20, 2025 · 2 min
code · Getting Started
The Best Book Cover of All Time
Celebrating the gloriously absurd cover of ‘FORTH on the Atari’—possibly the greatest unintentionally funny book cover ever created.
May 16, 2025 · 2 min
code · Getting Started
10 PRINT for the KIM-1
Implementing 10PRINT on a KIM-1 clone (PAL-II) in both Microsoft BASIC and 6502 assembly, displaying the maze on the 7-segment LED display.
May 16, 2025 · 7 min
code · Getting Started
10PRINT and 100 Doors on the PicoCalc from Clockwork Pi
Running 10PRINT and 100 Doors on the Clockwork Pi PicoCalc, a retro-inspired Raspberry Pi Pico handheld running PicoMite BASIC.
Mar 26, 2025 · 3 min
code · Getting Started
PICO-8 100 Doors Problem
A visual exploration of the classic 100 Doors programming problem implemented in PICO-8, featuring animated circles that show the door-toggling …
Jan 16, 2025 · 3 min
code · Getting Started
10 Print on PICO-8
Continuing the exploration of 10PRINT, we look at how to implement the 10 Print algorithm on the Pico-8 platform.
Jan 10, 2025 · 2 min
code · Getting Started
Dragon Curves
We draw some dragon curves with Logo on the Commodore 64 inspired by Jurassic Park
Sep 13, 2024 · 6 min
code · Getting Started
10 PRINT in Rust vs C
A head-to-head performance comparison of the classic 10PRINT maze algorithm implemented in Rust and C, with benchmarks measuring millions of …
Jul 30, 2024 · 5 min
code · Getting Started
wAx the VIC-20
Exploring wAx, a native assembler for the VIC-20 that integrates with BASIC. Includes examples implementing 10PRINT and Fibonacci in assembly directly …
Apr 19, 2024 · 4 min
code · Getting Started
10 PRINT on the HP-42s
Implementing the classic 10PRINT maze algorithm on the HP-42s calculator using RPN programming. Works on SwissMicros DM42 and Free42 emulators too.
Apr 5, 2024 · 1 min
code · Commodore
The McNuggets Problem
Solving the classic McNuggets Problem in Commodore BASIC: what’s the largest number of nuggets you can’t buy with 6, 9, and 20 packs?
Mar 21, 2024 · 6 min
C64 · code
Back to the basics with BASIC (and Python): Binary Search
Why your algorithm choice matters: comparing linear search O(n) vs binary search O(log n) with implementations in Commodore BASIC and Python.
Mar 13, 2024 · 7 min