LaiNES
LaiNES copied to clipboard
Add some tests
At least check if it compiles correctly.
I would be super interested in tiny unit tests for each mapper. They'd have to be 6502, and the unit test suite would load each up. Then they would run their tests, and write the result to a special memory address to let the test suite know.
Does this even make sense?
Yes it does. Good stuff.
I found a fairly exhaustive set of tests called "Holy Diver Batman" It covers SxROM (1), UxROM (2), TxROM (4), AxROM (7), PNROM (9), FxROM (10), INL-ROM Action 53 (28), BNROM (34), NROM/CNROM/GNROM (66), JxROM (69), IF-12 (78.3), TxSROM (118), UxROM (180)
Binaries: http://pineight.com/nes/holydiverbatman-bin-0.01.7z Source: http://pineight.com/nes/holydiverbatman-0.01.zip
Note: seems MMC1 and MMC3 fails the holy diver tests
More on testing here: https://wiki.nesdev.com/w/index.php/Emulator_tests
Also good targets for testing: http://wiki.nesdev.com/w/index.php/Tricky-to-emulate_games