A pure Go Nintendo Entertainment System emulator with SDL3 or SDL2 graphics and audio, headless execution, CPU tracing, and HTTP debugging.
- NES emulation - Emulates the CPU, graphics, controllers, memory, and common cartridge mappers
- Audio - Emulates the APU sound channels and plays them through SDL3 or SDL2
- Graphical and headless modes - Runs interactively through SDL3 or SDL2, or without a window for automation
- Development tools - Provides CPU tracing, execution control, and an HTTP debugger
- MCP server - Drives the emulator headless from an AI agent over the Model Context Protocol
- Portable builds - Builds without CGO for Linux, macOS, and Windows
ROM header support is separate from mapper execution. The table links to mapper documentation where available.
| 000 NROM | 001 MMC1 | 002 UxROM OR | 003 CNROM | 004 MMC3 |
| 007 AxROM | 030 UNROM-512 | 034 BNROM / NINA-001 | 066 GxROM | 071 Camerica |
| 079 NINA-003/006 | 094 UN1ROM | 111 GTROM | 180 UxROM AND | 232 Camerica Quattro |
| 128 MXM-1 (Bad Apple Ultimate NES Demake, N8 Pro) | 220 MXM-0 (House of Truth, N8 PRO) | 682 Rainbow |
| 800 MXM-1 (Former Dawn Demo v3.2) | 801 MXM-1 (Former Dawn Hover Boots Demo) |
Download a binary for Linux, macOS, or Windows from Releases, or install from source with Go 1.25 or newer:
go install github.com/retroenv/nesgoemu/cmd/nesgoemu@latestGUI mode requires SDL3 or SDL2 runtime libraries. It uses SDL3 first and SDL2 if SDL3 does not start. See the GUI setup guide for platform-specific installation instructions. Console mode does not require SDL.
Run an iNES ROM with the default graphical interface:
nesgoemu game.nesRun without the graphical interface:
nesgoemu -c game.nesSee the usage guide for command-line options and controls, the advanced usage guide for tracing and debugging, the debug printing guide for program text output, the MCP server guide to control the emulator from an AI agent, and the architecture guide for internals.