6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Fri May 10, 2024 7:53 pm

All times are UTC




Post new topic Reply to topic  [ 9 posts ] 
Author Message
PostPosted: Mon Jan 10, 2022 5:29 am 
Offline
User avatar

Joined: Fri Aug 30, 2002 9:02 pm
Posts: 1685
Location: Sacramento, CA
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/


Top
 Profile  
Reply with quote  
PostPosted: Mon Jan 10, 2022 5:33 am 
Offline
User avatar

Joined: Sun Jun 30, 2013 10:26 pm
Posts: 1928
Location: Sacramento, CA, USA
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)


Top
 Profile  
Reply with quote  
PostPosted: Mon Jan 10, 2022 7:49 am 
Offline

Joined: Sun Jun 29, 2014 5:42 am
Posts: 337
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:
???? :          : 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


Top
 Profile  
Reply with quote  
PostPosted: Mon Jan 10, 2022 9:28 am 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10800
Location: England
Dave has made a marvellous thing there, very much recommended for everyone with a 6502 diagnosis challenge.


Top
 Profile  
Reply with quote  
PostPosted: Mon Jan 10, 2022 3:35 pm 
Offline

Joined: Fri Dec 21, 2018 1:05 am
Posts: 1076
Location: Albuquerque NM USA
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


Top
 Profile  
Reply with quote  
PostPosted: Mon Jan 10, 2022 5:18 pm 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8178
Location: Midwestern USA
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!


Top
 Profile  
Reply with quote  
PostPosted: Mon Jan 10, 2022 5:52 pm 
Offline

Joined: Sat Jan 02, 2016 10:22 am
Posts: 197
Another Hoglet project : https://github.com/hoglet67/AtomBusMon/wiki

using a GODIL to replace the CPU entirely


Top
 Profile  
Reply with quote  
PostPosted: Mon Jan 10, 2022 6:29 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10800
Location: England
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.


Top
 Profile  
Reply with quote  
PostPosted: Wed Jan 12, 2022 12:45 pm 
Offline
User avatar

Joined: Fri Aug 30, 2002 9:02 pm
Posts: 1685
Location: Sacramento, CA
Thank you everyone for your responses. Much appreciated!

Daryl

_________________
Please visit my website -> https://sbc.rictor.org/


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron