# NES Static Recompiler Hits GitHub for Windows

> A new static recompiler MVP generates C code for NES routines and uses SDL2 for display on Windows.

- Published: 2026-11-03T06:32:47Z
- Score: 7/10
- Tags: recomp, tool, pc
- Port / platforms: NES -> PC (Windows) (Recompilation)
- Web page: https://emu-radar.customfw.xyz/news/nes-static-recompiler-released/
- Sources: https://github.com/tahasoomra9/nes-static-recompiler

A new project brings static recompilation to Nintendo Entertainment System (NES) titles on Windows. Developed by tahasoomra9, the [NES Static Recompiler](https://github.com/tahasoomra9/nes-static-recompiler) tool parses iNES and NES 2.0 ROMs, discovers code via a 6502 interpreter, and emits generated C code for specific routines.

The MVP currently supports mapper 0/NROM, mapper 2/UxROM, mapper 1/MMC1, and an MMC3 mapper core with scanline IRQ handling. Scanline validation with Blargg test ROMs still needs ROMs supplied by the user. It has SDL2 rendering, 48 kHz audio (APU accuracy is still under validation), controller input, trace logging, and screenshot capture.

### How to Try It

1. Ensure Windows, Python 3.10+, CMake 3.20+, and an MSVC or Clang toolchain are installed.
2. Clone the repository and configure the build using PowerShell:
   ```powershell
   cmake -S . -B build
   cmake --build build --config Release
   ```
3. Place a supported `.nes` ROM in the `rom-game\` folder and run the interpreter via `.\run_game.bat`.
4. Generate and run recompiled code for a specific ROM:
   ```powershell
   $env:PYTHONPATH='.'
   python recompiler\nesrecomp.py "rom-game\Super Mario Bros. (Europe).nes" --emit --out build
   cmake --build build --config Release --target game
   build\Release\game.exe "rom-game\Super Mario Bros. (Europe).nes" --recompiled
   ```
   The generated build is ROM-specific, so do not use `--recompiled` with a different ROM.

Savestates, self-modifying code, and unsupported undocumented opcodes remain outside the current scope.
