Repository navigation
Releases
NES Core 0.3.0
Added
- MMC5 expansion audio: two pulse channels with the MMC5's 240 Hz envelope and
length clock, the 8-bit raw PCM channel at$5011, the$5010PCM IRQ with
read acknowledgement, and the$5015enable and status register. - MMC5 vertical split-screen:
$5200-$5202select the side, tile threshold,
scroll and 4 KB CHR bank, and the split region takes its tiles, attributes and
pattern rows from ExRAM. - MMC5 ExRAM extended attributes:
$5104mode 1 gives every background tile its
own palette and 4 KB CHR bank, with$5130supplying the upper CHR bits. - VRC6 expansion audio: two pulse channels and the sawtooth accumulator,
including$9003halt and 16x/256x frequency scaling. - Expansion audio is clocked per CPU cycle and mixed into the APU output.
- Tests for MMC5 pulse and PCM output, the PCM IRQ, VRC6 pulse/saw output and
halt, ExRAM attribute selection, split-region fetches, and rendered pixels for
both MMC5 background modes.
Known limitations
- MMC5 fill-mode nametables, ExRAM used as a nametable, PCM read mode and the
SL board's split fine-scroll are not implemented. - Split-screen substitution is applied per screen tile and ignores the PPU's
dummy nametable fetches. Substitution follows PPUMASK's rendering bits rather
than the dedicated pin. - MMC5 expansion audio uses a fixed 7424-cycle frame clock and an AC-coupled
model of the PCM DAC.
Install
Download nes-core-windows.zip, extract nes-core.exe and run it. Windows 10
or newer, no installer and no administrator rights needed. Linux and macOS
build from source; see the README.
The build is compiled and smoke-tested on Windows by CI. Game compatibility has
not been broadly validated, and the README lists exactly what is and is not
implemented.
Full changelog: https://github.com/arpitgoswami/nes-core/blob/main/CHANGELOG.md
NES Core 0.2.0
Second tagged release. Adds the MMC5 and VRC6 mappers on top of the 0.1.0 core.
Added
- MMC5 (mapper 5): all four PRG banking modes, 1 KB CHR banking with separate sprite and background banks, 64 KB of banked PRG RAM, 1 KB of extended RAM at
$5C00-$5FFF, per-table nametable mapping through$5105, the 8x8 multiplier, frame status and scanline-compare IRQs. - VRC6a and VRC6b (mappers 24 and 26): 16 KB and 8 KB PRG banking, 1 KB CHR banking, mirroring control through
$B003, and scanline IRQs. - Both mappers keep their registers in versioned save states.
Windows download
The attached nes-core-windows.zip contains nes-core.exe, the x86-64 Windows release build produced by CI for commit 0b03117 (13.6 MB executable, SHA-256 bc14094e1170dfc445e2a9f5a953f1d3fdf9fc91457119f35df2926809a6d1b5). Windows only; build from source on Linux/macOS.
Known limitations
- MMC5 expansion audio, vertical split-screen, ExRAM extended attributes and fill-mode nametables are not implemented. CHR banking is evaluated at 1 KB granularity in every CHR mode, and the PRG RAM protect registers are stored but not enforced.
- VRC6 expansion audio and the cycle-counting IRQ mode are not implemented. The alternate
$B003CHR banking modes are treated as 1 KB banks. - No gamepad, PAL timing, rewind, netplay, NSF playback or expansion audio.
- PPU rendering is scanline-granular, not dot-exact within a scanline.
- Commercial game compatibility has not been broadly validated.
Requires ROM files you own. No ROMs or Nintendo assets are distributed with this project.
NES Core 0.1.0
First tagged release of NES Core, a NES/Famicom emulator core in Rust with an egui desktop interface.
Added
- iNES and NES 2.0 ROM parsing with header and size validation.
- Ricoh 2A03 CPU with all official instructions, common unofficial instructions, cycle accounting, NMI/IRQ/reset and DMA stalls.
- CPU memory bus with RAM mirroring, PPU/APU/controller routing and OAM DMA.
- Scanline-rendering PPU: background, sprites (8x8/8x16), scrolling, nametables, attributes, palettes, sprite 0 hit, vblank/NMI, emphasis.
- APU with two pulse channels, triangle, noise, DMC, frame sequencer, frame IRQ and non-linear mixer.
- Standard controllers with strobe/shift behaviour.
- Mappers: NROM, MMC1, UxROM, CNROM, MMC3 (with IRQ), AxROM.
- Desktop application: ROM library with artwork fallback, import and drag-and-drop, game view with pixel aspect and integer scaling, pause, reset, fullscreen and performance readouts.
- Versioned save states with ROM fingerprint validation and ten slots.
- Persisted settings, rebindable keyboard controls, volume control, VSync and scaling options.
- Six generic achievements that reflect events the emulator actually tracks.
- Platform audio output: cpal on Windows/macOS; runtime-loaded ALSA on Linux.
- Unit and integration tests for the CPU, cartridges, PPU output, NMI, audio sample generation, controllers and save states.
- GitHub Actions CI for formatting, clippy, tests and a Windows release build.
Windows download
The attached nes-core-windows.zip contains nes-core.exe, the x86-64 Windows release build produced by CI for this release (13.5 MB executable, SHA-256 f88372c6d4bf69d4f6f3d13b830710d81866b2c7d43df70ba6036bb38c58a3ce). Windows only; build from source on Linux/macOS.
Known limitations
- No gamepad, PAL timing, rewind, netplay, NSF playback or expansion audio.
- PPU rendering is scanline-granular, not dot-exact within a scanline.
- Commercial game compatibility has not been broadly validated.
Requires ROM files you own. No ROMs or Nintendo assets are distributed with this project.