AivexaNewsSearch
AI news for builders and product teamsChecked every hour

dbreunig/nesformer

Collected Oct 30, 2026

Drew Breunig has published dbreunig/nesformer, an experiment that bakes a working emulator for the Nintendo Entertainment System's 6502 CPU into the weights of Qwen3.5-4B. The result, according to the project, is that NES ROMs such as Super Mario Bros can now run inside the model, though very slowly. Simon Willison flagged the project, noting it was inspired by qwenputer, an earlier effort by Divyansh Agrawal.

In a Hacker News comment, Breunig shared the prompts he used with Opus 5.5 to build the system. His first instruction asked the model to read Agrawal's qwenputer write-up and then explore whether the same technique could emulate the chip and RAM of an NES, the way people use FPGAs in MISTR retro consoles today. The prompt asked what size model would be needed, and whether smaller, faster models could reach the standard clock speed. A follow-up prompt settled it: build it, just for fun, accepting that it may not be fast, with the goal of having the weights plus a command-line tool that can be pointed at a ROM.

Apparently Opus used a collection of NES CPU conformance tests released 15 years ago by Christopher Pow to check the work. Conformance suites like this are the standard way to verify that an emulator's instruction-level behavior matches the real hardware, covering opcodes, flags and edge cases rather than just making a game boot.

This suggests the practical constraint is size and speed: fitting an instruction interpreter into model weights means every emulated cycle is model inference, which is why the games run slowly. How faithfully the full 6502 instruction set is covered is the interesting question for anyone inspecting the repo.

Why it matters: this is a playful demonstration that a language model's weights can act as a small deterministic program, a pattern developers exploring compact model behaviors or retro-computing work may want to study. Expect slow throughput; treat it as a proof of concept rather than a replacement for conventional emulators (my inference).

Read at Simon Willison

Based on reporting from the original publisher. Visit the source for full context and later updates.

Publisher excerpt

dbreunig/nesformer Inspired by qwenputer by Divyansh Agrawal, Drew Breunig baked a working emulator for a Nintendo Entertainment System 6502 CPU into the weights of Qwen3.5-4B. You can now play NES ROMs such as Super Mario Bros (very slowly) running inside Qwen! In a comment on Hacker News Drew reveals the Opus 5.5 prompts he used to build this system: Read this article and any relevant source code: https://divagr.com/blog/qwenputer. Then explore if you could emulate the chip and ram in a Nintendo Entertainment Sys