Zhidaily AI · Intelligence · Daily
Zhidaily
Issue 36 · December 5, 2026 · Sat
Today's stories
10 stories · 3 companies
Home / December 5, 2026 / LLM-Written Assembly Runs a 3D Game on a Stock C64
← Back
News Models Score70

LLM-Written Assembly Runs a 3D Game on a Stock C64

In brief
A first-person 3D game for the unmodified Commodore 64, written in 6502 assembly with Claude Code's help, is now playable in a browser and open-sourced under MIT. It shows how far an LLM can be pushed
Hacker News cyril-crutches · Hacker News · github.com
Dec 5 · 03:33 Read the original ↗
01Summary

Jonathan Field has released LEST, a full-resolution first-person 3D game for the unmodified Commodore 64, and says the code, art and build tools were written with Claude in Claude Code and published under the MIT licence. The game runs at 160×200 multicolour pixels by drawing the screen in character mode (40×25 text cells) rather than bitmap mode, and it keeps the frame rate up by caching unchanged areas, casting rays only from the previous frame, and drawing every entity as a hardware sprite with precomputed culling zones. You can play it in a browser through GitHub Pages, or run the disk image (lest-c64.d64) or cartridge image (lest-c64.crt) in the VICE emulator or on real hardware; the cartridge needs no disk drive and loads in under a second. The repository includes the assembler, disk writer and test tools, and a cold build takes about 25 seconds. Field does not publish measured frame-rate figures, so the smoothness claim rests on his own testing rather than a benchmark table.

02Why this is hard on a C64

The Commodore 64 has a 1 MHz 6502 processor and no dedicated graphics hardware for 3D, so first-person games on it have historically run below 10 fps with coarse, blocky walls. A commenter points to Wayout, a 1983 C64 labyrinth game noted for unusually smooth 3D animation for its era, as the benchmark this project is measured against. The author's approach differs from earlier ports such as SquareDoom by drawing the scene in character mode rather than bitmap mode.

03Why it matters

For developers curious about LLM-assisted low-level work, the repository is a reproducible case study: the build emits 6502 assembly, checks page alignment and undocumented-opcode preconditions before writing a disk, and commits the generated assembly so a diff shows what a change did to the machine code. Anyone rebuilding it needs Node.js, ImageMagick 7 and a patched GoatTracker 2 for the music, or can set MUSIC=0 to skip that dependency.

04From the comments

One commenter suggested the approach may echo Wayout, an earlier 3D game for the platform, implying the technique is not wholly new. Another reported playing a few levels and enjoying it, and a third pointed to SquareDoom, a separate AI-assisted Doom port for the C64.