Closed tomcw closed 1 year ago
I sent a pre-release v1.4A .dsk to @roughana, and he reported these failures with his MEGA Audio card:
mb-audit v1.4B used with MEGA Audio (from @roughana):
"Mockingboard failed test 6522: / Test 11:0B:00 / Expected:FF Actual:6C"
The test "T6522_B" sets TIMER1's counter (and latch) to $0000 and does a WAIT for $9301 cycles. So the only valid values for TIMER1's counter are $0000, $FFFF (and $FFFE for MegaAudio).
It looks like (for MegaAudio) setting TIMER1 counter to $0000, actually uses a counter value of $10000 (or $FFFF), and the final counter value is $6Cnn. (NB. $FFFF - $9301 = $6CFE)
mb-audit v1.4C used with MEGA Audio (from @roughana):
mb-audit v1.4D now fully working with MEGA Audio (from @roughana):
MEGA Audio supported in mb-audit v1.42. Closing.
MEGA Audio configured just for slot 4: NB. Register $E (IER) reads back with b7=0 (Also: Timer1-Latch is $0000, but the Timer1 count isn't constrained & Timer2 seems to always read as $00FF!)
After patching
Detect6522()
to ignore the check for IER.b7==1 and use Timer1 (not Timer2):Test: 10:02:00
Expected:E0 Actual:60
The test is failing, as again, register $E reads back with b7=0