Are there any automated test suites for MOS 6520, 6522 and 6526 chips? I am looking for test suites aimed at making sure datasheet-based independent reimplementations of the above chips (e.g. FPGAs or emulators) work exactly as the real chips.

  • Ideally, the test suites would work with just connections from something like a 6502 to the IO chips' pins, instead of a full computer (e.g. a Commodore 64) – Cactus Apr 23 '16 at 13:51
  • 1
    Your question seems more related to IC implementation than to a specific retro usage. Could you add how your question relates to retro systems? Substitute repair parts? – user3169 Apr 23 '16 at 19:50
  • 1
    @user3169: the reason I'm looking for test suites like that is reimplementation/modeling of retro systems. My vote is for this topic, in general, to be considered on-topic here. – Cactus Apr 24 '16 at 6:58
  • 3
    These could also be great for validating emulators. I would love a solid automatic test suite for the 65816, for instance. :) – Eric Shepherd Apr 26 '16 at 2:00
  • 1
    @Eric and the Vampire II. – traal May 30 '16 at 3:26

Klaus Dorman's functional tests for the 6502 are fantastic: https://github.com/Klaus2m5/6502_65C02_functional_tests

  • They are! I've used them to test my own 6502 Kansas Lava core. However, I don't see anything there for peripheral chips. – Cactus May 10 '16 at 12:43
  • Definitely going to try this out to test the 8-bit parts of the 65816 core in Sweet16 sometime. – Eric Shepherd May 14 '16 at 21:24
  • ... but how does that help with a 6520, 6522 or 6526? – Tommy Jan 7 at 18:41

I'm looking to see if there exists code to exercise the functions of the 6522 chip to validate that it functions correctly after installation on a board for the Apple 2 series computer. The Mockingboard demo disks exercise the communications and some timer and interrupt functions but not everything. I have Rodnay Zaks book 6502 Applications (Isbn 0-89588-015-6) which walks through the functions available so I can write my own test code but I want to see if this wheel has already been invented first.

  • 1
    Welcome to Retrocomputing Stack Exchange. This isn't a full answer, which is OK as partial answers are allowed. Please edit this answer when you have more information, as opposed to adding a new answer. – wizzwizz4 Jan 7 at 14:57

I am unaware of any formalised test suite for either the 6520 or 6522.

The 6526 is at least partially covered by Wolfgang Lorenz's C64 test suite. Because of the applicability to other machines, you usually see it documented for its 6502 tests (and the outward link to the suite itself there is broken; instead try that listed here) but it includes a scattering of CIA (i.e. 6526) tests:

Programs CIA1TB123 and CIA2TB123 - CIA timer B 1-3 cycles after writing CRB

Programs CIA1TA to CIA2TB - CIA timers in sysclock mode

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.