United StatesAndreaOrru/LaiNES
Compact cycle-accurate NES emulator
🎮 LaiNES: Minimal Cycle-Accurate NES Emulator
Run classic NES games with pixel-perfect timing in a tiny, self-contained emulator.
LaiNES is a compact, cycle-accurate NES emulator written in C++. It provides a simple GUI for loading ROMs, managing savestates, and configuring controls, while keeping the codebase small and readable. The emulator targets Unix-like systems and relies on SDL2 for rendering and input.
✨ Highlights
- Cycle-accurate emulation: CPU and PPU step precisely per cycle, with the PPU advancing three times for each CPU tick.
- Broad mapper support: Implements over a dozen common mappers, including MMC1, MMC3, MMC5, VRC6, and more.
- Savestate system: Save and load the full emulator state, preserving CPU, PPU, APU, mapper, and expansion audio.
- Fast forward mode: Hold Tab to run at 8× speed, indicated by an on‑screen indicator.
- SDL2 GUI with controller support: Built‑in file browser, menu navigation, and native support for Xbox, PlayStation, and Switch controllers via SDL2’s GameController API.
- Compact codebase: Meta‑programming keeps the CPU and PPU implementations under 300 lines each while supporting full unofficial opcodes.
- VRC6 expansion audio: Optional audio channel support for games using the VRC6 mapper.
💡 Why it matters
LaiNES demonstrates that a fully functional NES emulator can be built with remarkably little code, making it an excellent reference for understanding console emulation internals. Its cycle‑accurate timing and extensive mapper coverage let it run a wide range of games faithfully, while the built‑in GUI and savestate features make it convenient for casual play.
The project’s focus on minimalism without sacrificing accuracy appeals to both developers who want to study emulation techniques and retro gaming enthusiasts who prefer a lightweight, self‑contained emulator.
#NES #Emulator #C++ #OpenSource #TiniX
Similar Projects
Discover other similar projects and AI models.
iOS & tvOS multi-emulator frontend, supporting various Atari, Bandai, NEC, Nintendo, Sega, SNK and Sony console systems… Get Started: https://wiki.provenance-emu.com |
Create your own games for the Nintendo Entertainment System! This "starter" game is easily extensible for your own projects. Includes references.
Transform your NES-game into a single executable targeting your favourite OS!
Qt-based Nintendo Entertaiment System emulator and NSF/NSF2/NSFe Music Player (Linux, FreeBSD, OpenBSD and Windows)