Skip to content
retroenvPublic

About

Nintendo Entertainment System emulator written in Golang

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

128 Commits

Folders and files

Repository files navigation

nesgoemu

CI Codecov Release Go Reference License LLM assisted: human reviewed

A pure Go Nintendo Entertainment System emulator with SDL3 or SDL2 graphics and audio, headless execution, CPU tracing, and HTTP debugging.

Features

  • 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

Supported Mappers

ROM header support is separate from mapper execution. The table links to mapper documentation where available.

iNES 1.0

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

NES 2.0

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)

Quick Start

Installation

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@latest

GUI 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.

Basic Usage

Run an iNES ROM with the default graphical interface:

nesgoemu game.nes

Run without the graphical interface:

nesgoemu -c game.nes

See 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.

About

Nintendo Entertainment System emulator written in Golang

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Sponsor this project

Used by

Contributors

Languages