6502TestPrograms

From VisualChips

(Difference between revisions)
Jump to: navigation, search
(fixup comment about Bruce's decimal tests)
(Acid800, ASAP tests)
Line 10: Line 10:
* [http://www.6502.org/tutorials/decimal_mode.html Decimal mode tests by Bruce Clark] ADC/SBC (exhaustive, tests all four affected flags.) Some specific [[6502DecimalMode|Decimal tests here]].
* [http://www.6502.org/tutorials/decimal_mode.html Decimal mode tests by Bruce Clark] ADC/SBC (exhaustive, tests all four affected flags.) Some specific [[6502DecimalMode|Decimal tests here]].
* Test code supplied with [http://web.archive.org/web/20070707064155/http://www.birdcomputer.ca/Projects/Prj6502/bc6502_page.html Rob Finch's 6502 core] (archive.org) (1500 bytes)
* Test code supplied with [http://web.archive.org/web/20070707064155/http://www.birdcomputer.ca/Projects/Prj6502/bc6502_page.html Rob Finch's 6502 core] (archive.org) (1500 bytes)
 +
* [http://www.virtualdub.org/beta/Acid800-0.81.7z Acid800] by Avery Lee for 8-bit Atari emulators includes some 6502 tests
 +
* [http://asap.git.sourceforge.net/git/gitweb.cgi?p=asap/asap;a=tree;f=test ASAP tests] by Piotr Fusik includes an exhaustive test for ADC, SBC and 0x6B as well as a few tests for other undocumented opcodes
Test harnesses:
Test harnesses:

Revision as of 00:20, 19 January 2011

There are a number of test suites for 6502, each with their own intentions and peculiarities.

For the most part they aim to test emulators, which are subject to different bugs than CPU implementations, and therefore the effective coverage may not be as good as expected. Such tests are generally self-checking - there is no golden results file of bus activity - and generally assume some specific platform's I/O facilities.

Self-testing (6502 ROMs and programs):

Test harnesses:

It can also be useful to run a monitor or BASIC interpreter, although the test coverage isn't very high and the run time is. Favourites are: Apple 1 monitor, Apple 1 integer BASIC, C64 BASIC, BBC OS and BASIC.

References:

Personal tools