Skip to content

Consider using nestest for testing all instructions #1

@DanTup

Description

@DanTup

There's a test rom called nestest listed on the NES Wiki Emulator Tests page. It's a sets of tests that can be run automatically (great for when you have no PPU) but also interactively once you have controller/PPU support.

You basically load the ROM and put the PC at 0xC000 and then execute, logging your PC (and registers) on every cycle and compare to a sample log. Docs are here.

I found it quite a quick way to verify/implement my instructions (I implemented it all in an automated test so Visual Studio key executing it every time I hit build; it only takes a few milliseconds).

Note: It does include all illegal opcodes too, so they seem to go on forever =D

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions