Page 1 of 1

Are there test cases for 6502 or NES emulators in general?

Posted: Sun Oct 23, 2011 11:19 am
by Petruza
I'm applying unit automated testing to the 6502 instructions of my NES emu.
I ended up replicating in the tests the same logic that's being tested, so I could be making the same mistake twice, the tests pass and I don't notice it.
So are there already test cases compiled for this from a known working emulator?
Thanks!

Posted: Sun Oct 23, 2011 12:09 pm
by Dwedit
Blargg's 6502 tests do a CRC32 checksum of what the results should be after an exhaustive all-possible-inputs test, so it's highly unlikely that they will give a false report.
But finding out what's wrong is the hard part.