Skip to content

pusscat/refNes

Repository files navigation

refNes: NES reference implementation in python2

To run:

python debugger.py <rom path>

then type 'g'

'?' will show you debugger commands

Todo:

  • finish instructions
  • unit tests
  • abstract out memory from cpu
  • abstract out mappers from memory
  • create the cartridge rom parser/loader
  • [] create the PPU
  • [] create the APU
  • [] speed up cpu and ppu
  • [] sort out instruction timing

Supported Platforms

Tested with:

  • Python 2.7.10 on macOS 10.13.2
  • Python 2.7.14 on macOS 10.13.2

Installing Dependencies

On macOS:

brew install sdl2
sudo python -m pip install pysdl2

Getting refNes

git clone https://github.com/pusscat/refNes

How to Run refNes

cd refNes
python debugger.py /path/to/rom.nes

How to Run refNes Tests

# First, place a valid smb1.nes file in the refNes directory.
cd refNes/tests
python instruction_tests.py
python cart_tests.py

About

NES reference implementation in python2

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages