#nes #emulator #6502

bin+lib nes6502

An emulated NES version of the 6502

5 releases

new 0.1.4 Jul 11, 2024
0.1.3 Jul 11, 2024
0.1.2 Jul 8, 2024
0.1.1 Jul 7, 2024
0.1.0 Jul 6, 2024

#53 in Emulators

Download history 88/week @ 2024-06-30 498/week @ 2024-07-07

586 downloads per month

MIT license



An emulated NES version of the 6502 (which is a 6502 with the BCD (Binary Coded Decimal) functionality removed).

This was originally part of my NES emulator. It is being moved to its own repository to force better decoupling from the rest of the NES code, as well as making it easier to integrate Tom Harte's 6502 Tests which take up a lot of storage space and is only used for testing the CPU.

This cpu is now complete and verified to be correct according to all 256k of Tom Harte's 6502 Tests. These can be ran by running the default binary ($ cargo run).

Running Tests

  1. After cloning the repository, download the json test files by running $ git clone https://github.com/SingleStepTests/65x02 inside the repository.
  2. Run $ cargo run --release to run the tests.


~62K SLoC