I am guessing your oscilloscope doesn't have any logic analyser capability?
What we need to do is to capture the writes to the CRTC registers and see what the data bus has on there at the time.
What I am thinking of is a simple program that lives in the EDIT ROM (replacing my PETTEST) that outputs the values $00 to $FF to the CRTC address register continuously.
This won't program the CRTC at all - but it will permit us to see the 'state' of the data bus.
This is just a thought at the moment - need to think how to trigger the oscilloscope so we only see the data bus during the CRTC WRITE cycle and not at any other time. Possibly when CRTC /CS (pin 25) is LOW. D7 should then indicate a 'slow' clock, with D6 being twice as fast and so forth down to D0 being the fastest.
The other possibility is to output $00 followed by $FF or $AA followed by $55.
Thoughts?
This would be my first attempt (will only work with BASIC 4 though).
Code:
A9 00 8D 80 E8 38 69 00 4C 00 E0
ORG $E000
LDA #0
STA $E880 ; CRTC
SEC
ADC #0
JMP $E000 ; LOOP
Dave
Bookmarks