Digital Signal Analyzer suggestions needed

For discussing the 65xx hardware itself or electronics projects.
Post Reply
User avatar
8BIT
Posts: 1787
Joined: 30 Aug 2002
Location: Sacramento, CA
Contact:

Digital Signal Analyzer suggestions needed

Post by 8BIT »

My friend is trying to fix an old arcade game and is looking for the following:
Quote:
Hey, Daryl, do you know of any boards, kits or projects that will monitor the data, address and control lines of a 6502? By itself or connected to a PC. I bought a 1983 Battlezone arcade machine and am getting close to all the troubleshooting I can do with a 4 chan scope and multimeter. Kinda like the ROMULATOR kit.
Can anyone recommend a solution at a reasonable cost? My friend has good electronic skills so a kit or DIY reference would be ok.

thanks!

Daryl
Please visit my website -> https://sbc.rictor.org/
User avatar
barrym95838
Posts: 2056
Joined: 30 Jun 2013
Location: Sacramento, CA, USA

Re: Digital Signal Analyzer suggestions needed

Post by barrym95838 »

I think hoglet made a nice kit that would fit the bill, but I'm link-challenged at the moment.
Got a kilobyte lying fallow in your 65xx's memory map? Sprinkle some VTL02C on it and see how it grows on you!

Mike B. (about me) (learning how to github)
hoglet
Posts: 367
Joined: 29 Jun 2014

Re: Digital Signal Analyzer suggestions needed

Post by hoglet »

barrym95838 wrote:
I think hoglet made a nice kit that would fit the bill, but I'm link-challenged at the moment.
Was this the project you were thinging about?
https://github.com/hoglet67/6502Decoder/wiki

It's a post processor for logic analyzer capture files that reconstructs the processor state (for a 6502, 65C02, 65816). It's written in vanilla C, so should be compilable on most systems. There is also a Z80 version in a seperate project.

It works with any 16-bit logic analyzer, but one that can do synchronous capture (on the falling clock edge) is preferred. It needs a connection to the data bus, plus a few control signals(Phi2, RnW, Sync, Rdy, nRST). No address bus connection is used; all addresses are inferred from what's seen on the data bus.

It produces instruction traces like this:

Code: Select all

???? :          : RESET !!      A=?? X=?? Y=?? SP=?? N=? V=? D=? I=1 Z=? C=?
D9CD : A9 40    : LDA #40       A=40 X=?? Y=?? SP=?? N=0 V=? D=? I=1 Z=0 C=?
D9CF : 8D 00 0D : STA 0D00      A=40 X=?? Y=?? SP=?? N=0 V=? D=? I=1 Z=0 C=?
D9D2 : 78       : SEI           A=40 X=?? Y=?? SP=?? N=0 V=? D=? I=1 Z=0 C=?
D9D3 : D8       : CLD           A=40 X=?? Y=?? SP=?? N=0 V=? D=0 I=1 Z=0 C=?
D9D4 : A2 FF    : LDX #FF       A=40 X=FF Y=?? SP=?? N=1 V=? D=0 I=1 Z=0 C=?
D9D6 : 9A       : TXS           A=40 X=FF Y=?? SP=FF N=1 V=? D=0 I=1 Z=0 C=?
D9D7 : AD 4E FE : LDA FE4E      A=80 X=FF Y=?? SP=FF N=1 V=? D=0 I=1 Z=0 C=?
D9DA : 0A       : ASL A         A=00 X=FF Y=?? SP=FF N=0 V=? D=0 I=1 Z=1 C=1
D9DB : 48       : PHA           A=00 X=FF Y=?? SP=FE N=0 V=? D=0 I=1 Z=1 C=1
D9DC : F0 09    : BEQ D9E7      A=00 X=FF Y=?? SP=FE N=0 V=? D=0 I=1 Z=1 C=1
D9E7 : A2 04    : LDX #04       A=00 X=04 Y=?? SP=FE N=0 V=? D=0 I=1 Z=0 C=1
D9E9 : 86 01    : STX 01        A=00 X=04 Y=?? SP=FE N=0 V=? D=0 I=1 Z=0 C=1
D9EB : 85 00    : STA 00        A=00 X=04 Y=?? SP=FE N=0 V=? D=0 I=1 Z=0 C=1
D9ED : A8       : TAY           A=00 X=04 Y=00 SP=FE N=0 V=? D=0 I=1 Z=1 C=1
D9EE : 91 00    : STA (00),Y    A=00 X=04 Y=00 SP=FE N=0 V=? D=0 I=1 Z=1 C=1
D9F0 : C5 01    : CMP 01        A=00 X=04 Y=00 SP=FE N=1 V=? D=0 I=1 Z=0 C=0
D9F2 : F0 09    : BEQ D9FD      A=00 X=04 Y=00 SP=FE N=1 V=? D=0 I=1 Z=0 C=0
D9F4 : C8       : INY           A=00 X=04 Y=01 SP=FE N=0 V=? D=0 I=1 Z=0 C=0
D9F5 : D0 F7    : BNE D9EE      A=00 X=04 Y=01 SP=FE N=0 V=? D=0 I=1 Z=0 C=0
Dave
User avatar
BigEd
Posts: 11463
Joined: 11 Dec 2008
Location: England
Contact:

Re: Digital Signal Analyzer suggestions needed

Post by BigEd »

Dave has made a marvellous thing there, very much recommended for everyone with a 6502 diagnosis challenge.
plasmo
Posts: 1273
Joined: 21 Dec 2018
Location: Albuquerque NM USA

Re: Digital Signal Analyzer suggestions needed

Post by plasmo »

I like the idea of inferring instructions from data because it reduces the amount of data collected significantly. I have a simple logic analyzer for RC2014, a re-purposed CPLD prototype board, that snoops the processor bus and sent data out on serial port at high rate. How fast the processor can ran is constrained by how much data and how fast the serial port operates. Dave's tool is helpful, thank you.
Bill
User avatar
BigDumbDinosaur
Posts: 9425
Joined: 28 May 2009
Location: Midwestern USA (JB Pritzker’s dystopia)
Contact:

Re: Digital Signal Analyzer suggestions needed

Post by BigDumbDinosaur »

8BIT wrote:
My friend is trying to fix an old arcade game...Can anyone recommend a solution at a reasonable cost?

What might be “reasonable cost?”
x86?  We ain't got no x86.  We don't NEED no stinking x86!
Martin A
Posts: 197
Joined: 02 Jan 2016

Re: Digital Signal Analyzer suggestions needed

Post by Martin A »

Another Hoglet project : https://github.com/hoglet67/AtomBusMon/wiki

using a GODIL to replace the CPU entirely
User avatar
BigEd
Posts: 11463
Joined: 11 Dec 2008
Location: England
Contact:

Re: Digital Signal Analyzer suggestions needed

Post by BigEd »

That's also splendid, but GODIL are not available any more, I think, so you will probably need some other FPGA board and a level shifter board. One remarkably excellent feature is that the 6502 is assisted by a second CPU which runs a nicely featured monitor with breakpoints, watchpoints, disassembler.
User avatar
8BIT
Posts: 1787
Joined: 30 Aug 2002
Location: Sacramento, CA
Contact:

Re: Digital Signal Analyzer suggestions needed

Post by 8BIT »

Thank you everyone for your responses. Much appreciated!

Daryl
Please visit my website -> https://sbc.rictor.org/
Post Reply