Back to News

NES 6502 CPU emulator embedded in Qwen3.5-4B model weights

#nes#emulator#qwen#llm

Drew Breunig built a working NES 6502 CPU emulator inside the weights of Qwen3.5-4B, inspired by Divyansh Agrawal's qwenputer. The emulator can run NES ROMs like Super Mario Bros, albeit very slowly. Breunig shared the Opus 5.5 prompts used to create the system, which involved exploring chip and RAM emulation techniques and using NES CPU conformance tests.

Coverage timeline

  1. Simon Willison

    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 System (as people do today with FPGAs in MISTRs) using this technique. If so, what size model would you have to build and if you could use smaller faster ones, could you get it to be at the standard clockspeed. Followed by: I think we should build it! Just for fun. It's okay if it's not fast. We want to be able to have the weights, and a cli to run them that we can point at a ROM. Apparently Opus found and then used this collection of conformance tests for the NES CPU released 1

Related stories

  • Developer Builds Deterministic RISC-V CPU Inside Qwen3.5

    A developer has demonstrated a functioning, deterministic RISC-V CPU implemented inside the Qwen3.5 language model, showcasing the model's emergent computational capabilities. The demonstration highlights the model's ability to execute complex, low-level operations beyond typical text generation.

    1 reports · 1 sources694 points · 145 comments

News updates every hour. Subscribe in your RSS reader to get new stories automatically.

Subscribe