o
odin.langpkg.dev
packages / library / nes-emulator-claude

nes-emulator-claude

9e941b9library

nes emulator created with claude

No license · updated 8 months ago

NES Emulator in Odin

A Nintendo Entertainment System (NES) emulator written in Odin with raylib for rendering.

Project Structure

  • src/ - Core emulator components
    • cpu/ - 6502 CPU emulation
    • ppu/ - Picture Processing Unit
    • memory/ - Memory management
    • cartridge/ - ROM loading and mappers
  • tests/ - Unit and integration tests
  • main.odin - Application entry point

Components

The emulator is built incrementally with thorough testing at each stage:

  1. CPU (6502) - Core processor emulation
  2. Memory - Memory management and mapping
  3. PPU - Graphics rendering
  4. Cartridge - ROM loading and mapper support
  5. Input - Controller handling
  6. APU - Audio (future)

Building

odin build . -out:nes_emulator

Running Tests

odin test tests

Dependencies

  • Odin compiler
  • raylib