RC RANDOM CHAOS

NES CPU Compiled Into Qwen3.5 Transformer Weights

· via Hacker News

Original source

Show HN: A working Nintendo in ~1GB of Qwen weights

Hacker News →

A compiler translated the 6502 CPU (core of the 2A03 chip), 2 KB of work RAM, and cartridge program code into the weights of Qwen3.5. No training occurred—the compiler directly computed every weight value. During play, the model generates tokens representing CPU execution in sequence, while a host program renders graphics, reads controller input, and delivers system interrupts. The model’s Gated DeltaNet state matrices function as memory, storing CPU registers, RAM, and cartridge data.

Testing confirms correctness: the implementation produces identical frame output and timing compared to standard 6502 emulation. Game code requires roughly 1.1 to 1.3 tokens per instruction. Performance is limited: frames take 1-6 seconds to generate, so 10 seconds of simulated gameplay requires about 25 minutes of real time. The system runs 150-290 times slower than original hardware. Currently, only NROM cartridges (mapper 0) are supported; bank-switching games cannot run.

Read the full article

Continue reading at Hacker News →

This is an AI-generated summary. Read the original for the full story.