Skip to content
breaknes

breaknes

EMULATOR DATABASE

breaknes

Breaknes — a gate-level NES / Famicom / Dendy emulator that reconstructs chip logic (6502, APU, PPU, MMC1) from real-die reverse engineering and runs cartridges described as PCB JSON rather than hard-coded mapper behaviour.

6.0 / 10

nes

Download Tutorials & guides

Sign in to download. Files are hosted by the emulator project.

NES
SYSTEM SPOTLIGHTNESArtwork from the Retro Replay system database

About breaknes

Breaknes is built at the gate level: instead of emulating chips by observed behaviour, the project duplicates the logic circuits reconstructed from die decaps and schematics in C++. That makes it a research-focused, high-insight emulator useful to developers, hardware researchers, and anyone studying how the original silicon behaved.

Gate-level chip simulation (M6502Core, APUSim, PPUSim), cartridge PCBs expressed as JSON (CartPcb), two front-ends (a managed WinForms GUI and an SDL2 port), extensive developer tools (debuggers, PPU/APU replayers, unit tests) and a nescartdb-derived cartridge identification database.

The people behind breaknes / history

Breaknes is the emulator component of the breaks chip-reversing project maintained at the emu-russia organisation on GitHub. The repository contains a long commit history and active work: the codebase includes a managed GUI (Breaknes), an SDL2 port (BreaknesSDL), a native core (BreaksCore), gate-level simulators for the 6502, APU and PPU, a mapper (MMC1), cartridge database conversion tools, and multiple utilities. The project is described as WIP in its documentation; releases are published in the GitHub releases section and source is actively available for cloning and building. The project is research- and developer-oriented rather than a packaged consumer emulator with guaranteed game-by-game compatibility.

Screenshots

Game screenshot from a nes title
Game screenshot from the nes library. Image from Retro Replay media.
The Legend of Zelda gameplay on NES
Gameplay from The Legend of Zelda on NES.

Tutorials & guides

breaknes setup guide (click to expand)

Setup note: Breaknes is developer-oriented. The project provides two front-ends and a native core. Below are practical steps to obtain, build, and run Breaknes from source using the repository's documented instructions.

  1. 1) Get the source: Clone the official repository: git clone https://github.com/emu-russia/breaknes.git. Inspect the top-level README, docs/ and Breaknes/ folder to choose the front-end you want (Breaknes managed GUI or BreaknesSDL).
  2. 2) Windows (managed GUI) — prerequisites: The README documents a Windows build using Visual Studio. Install a supported Visual Studio version (the README references Visual Studio 2026 in its build note) and ensure the .NET runtime for the managed GUI is available (README mentions .NET 6.0 Desktop Runtime). Open Breaknes.sln in Visual Studio and build the solution. Expect WinForms-managed GUI projects and native C++ components to be built together.
  3. 3) Windows / Linux (SDL2 port) — prerequisites: For the SDL2 front-end use Breaknes/BreaknesSDL. Install development dependencies (SDL2 development libraries, a C++ toolchain, CMake). On Linux: create a build directory, run cmake .., then make. On Windows you can configure the SDL2 variant with CMake or build with Visual Studio if toolchain is configured for SDL2.
  4. 4) Typical build steps (Linux / SDL2): From the repository root: mkdir build && cd build; cmake ..; make. The README shows running the built executable with a ROM: ./breaknes bomber.nes. Build outputs are located under the build folder; run the SDL2 executable for a cross-platform native runtime.
  5. 5) Cartridge/ROM handling: Breaknes represents cartridge PCBs as JSON documents and identifies ROMs by CRC32 against a nescartdb-derived JSON database included in Nescartdb/. The emulator expects PRG/CHR ROM dumps matching entries in its database for some of its cartridge wiring logic. Do not expect included commercial game ROMs or BIOS files — obtain any game files legally yourself and ensure they match the expected dump formats.
  6. 6) Tools and debugging: The repository contains many developer tools: BreaksDebug GUI for inspecting internal signals, Breakasm (6502 assembler), PPUPlayer/APUPlayer for register dump replays, unit tests and scripts for regdump conversion. These are inside Tools/, UnitTest/, and Wiki/ — build and run them as needed for reverse-engineering tasks or signal-level inspection.
  7. 7) Platform notes and expectations: Breaknes is research-focused and WIP. Expect the build to require up-to-date development toolchains and potential manual fixes for library paths. The SDL2 front-end provides the most straightforward cross-platform path (Linux and Windows). The managed WinForms front-end is Windows-specific. Performance and game compatibility are secondary to gate-level accuracy in many parts of the project.
  8. 8) Where to get releases: Binary bundles and utilities (including an SDL2 'Lite' variant mentioned in recent release notes) are available from the project's GitHub Releases page. If you prefer prebuilt artifacts, download from Releases rather than building from source.

Software reminder: Breaknes does not include commercial game ROMs, firmware or copyrighted BIOS/keys. Obtain ROMs legally and ensure you comply with local laws.

Additional information

What breaknes supports

  • Nintendo Entertainment System (NES) / Famicom / Dendy
  • Windows (managed WinForms GUI; native builds)
  • Linux (SDL2 port)
  • x86/x64 platforms supported by provided build toolchains

READMEs & documentation

breaknes official project README
![logo](/Wiki/imgstore/157481692-2ecd4e71-2599-4050-9ce0-815c0336ad27.png)

NES/Famicom/Dendy emulator at the gate level.

Breaknes is the emulator part of the [breaks](https://github.com/emu-russia/breaks) chip-reversing project. The chips are not emulated "by behavior" — the logic circuits reconstructed from the real dies are duplicated in C++, so the emulated 6502 behaves the same way the real one does: same gates, same flip-flops, same buses, same quirks.

## Repository structure

| Folder | What's inside |
|---|---|
| `Breaknes/` | The emulator itself: managed GUI (`Breaknes/Breaknes`), SDL2 port (`Breaknes/BreaknesSDL`), and the native core `BreaksCore` shared by both. |
| `Chips/` | Gate-level simulators of the chips: `M6502Core` (6502), `APUSim` (2A03/2A07 CPU+audio), `PPUSim` (2C02 PPU), `MMC1`. |
| `CartPcb/` | Functional simulation of cartridge PCBs. A board is data — a JSON document with components and wiring, not C++ code. |
| `Common/` | Shared code: `BaseLogicLib` (logic primitives), `BaseBoardLib` (motherboard components: LS139, LS373, SRAM, RomChip...), `JsonLib`, `SharpTools` (C# debugger controls). |
| `IO/` | I/O devices: NES/Famicom/Dendy controllers, virtual controllers, CD4021, UM6582. |
| `Nescartdb/` | The converted nescartdb database (JSON) — identifies a cartridge by the CRC32 of its PRG/CHR dumps. |
| `Tools/` | Utilities, see below. |
| `UnitTest/` | Unit tests for the chips and cores. |
| `Wiki/` | Design documentation. |

## Components

- **BreaksCore** — the native (C++) core: motherboards (NES, Famicom), chip wiring, and a debug hub for monitoring signals and internal state.
- **M6502Core** — MOS 6502 processor core at the gate level.
- **APUSim** — the whole CPU chip (2A03/2A07): 6502 core + APU sound.
- **PPUSim** — the PPU (2C02) at the gate level.
- **MMC1** — the MMC1 mapper chip.
- **CartPcb** — cartridge PCB simulation: board descriptions are JSON, chips are wired with nets, cartridges are identified by nescartdb CRCs.

## Tools

| Tool | What it does |
|---|---|
| `Breakasm` | The simplest possible 6502 assembler (C++ + Python port). |
| `BreaksDebug` | GUI to inspect the 6502 core: signals, registers, memory, disassembly. |
| `PPUPlayer` | Replays PPU register dumps recorded in the emulator. |
| `APUPlayer` | Replays APU register dumps recorded in the emulator. |
| `PpuPumpkin` / `ApuPumpkin` | Speed profiling demos for PPUSim / APUSim. |
| `SlooowPlaaayer` | Plays audio captured from slow sources. |
| `SignalPlotDemo`, `FurryPlotDemo`, `InfernoColormap` | Demos of the custom WinForms controls. |
| `DumpRegdump` / `NescartdbConvert` | Python scripts: regdump dump / nescartdb XML→JSON conversion. |

## Progress

![progress](/Wiki/imgstore/progress.png)

## Build for Windows

Use Windows and VS2026. Open Breaknes.sln and click the Build button with your left heel. Dotnet 6.0 **Desktop** Runtime is also required.

For those who like minimalism - see Breaknes build using SDL2 (`Breaknes/BreaknesSDL`).

## Build for Linux

In general, the build process is typical for Linux. First you get all the sources from Git. Then you call CMake/make

```
# Get source
# Choose a suitable folder to store a clone of the repository, cd there and then
git clone https://github.com/emu-russia/breaknes.git
cd breaknes

# Preliminary squats
mkdir build
cd build
cmake ..
make

# Find the executable file in the depths of the build folder
./breaknes bomber.nes
```

If something doesn't work, you do it. You have red eyes for a reason. :penguin:

## AI Usage Policy 👾

Hand-drawn portraits ceased to exist around 1850, with the arrival of the camera. Hand-written programming ceased to exist around December 2025.

If you have a problem with that, walk on by. AI is used in this project both to implement features from specs (Spec Driven Development) and to fix bugs with the help of a harness that the agent builds while fixing them.

This time I won't write anything about Luddites and the like: in our case we don't even have to forbid peeking into other emulators, since we have taken the Famicom apart down to the molecules. Now just enjoy it and have fun with the process. AI will do all the mechanical work. 👾
Download original README

Original project README source

Release log

Selected releases and changes, with coverage from our weekly emulation roundup.

    Sources & further reading

    FROM THE COMMUNITY

    Player reviews

    0 reviews
    6.0/ 10

    Overall rating

    Provisional site rating and approved member scores, each counted once.

    Starting site scores are provisional editorial scores. Established mainstream projects receive a higher starting score; other imported entries begin at a neutral 6/10 pending individual review. Member scores change the average after approval.

    Your take on breaknes

    Spam has been overwhelming. To help us approve your review, sign up and introduce yourself in the Introductions forum so we know you’re not a bot.

    Sign in with your Retro Replay account to rate this project and share your experience.

    Sign in to review