Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > FIFOgfx (with live C64 debugging)
2016-06-10 15:58
MagerValp

Registered: Dec 2001
Posts: 1078
FIFOgfx (with live C64 debugging)

A friend of mine built his own 6502 computer and he talked me into making a graphics card for it. I've connected my prototype via a cartridge to the C64, and a side effect of how I'm interfacing it means that the C64's memory is mirrored into a Raspberry Pi, making it possible to inspect its memory live. I realized that this might potentially be even more interesting than the main project, but I haven't had time to fully explore it as I'm focusing on finishing the gfxcore first. I've started releasing my project files on GitHub if anyone wants to play along:

https://github.com/MagerValp/fifogfx
2016-06-10 16:22
chatGPZ

Registered: Dec 2001
Posts: 11386
"mirrored" .... but read only, right?
2016-06-10 16:29
Oswald

Registered: Apr 2002
Posts: 5094
interesting how it is possible to mirror 64k "live" ?
2016-06-10 16:33
chatGPZ

Registered: Dec 2001
Posts: 11386
i havent looked - but what i would do is just looking for write accesses and then reproduce them locally (in the "mirrored" RAM). ie, you dont have to actually "mirror 64k"
2016-06-10 18:34
MagerValp

Registered: Dec 2001
Posts: 1078
Yes, read only mirror. Groepaz is spot on, I capture all writes on the bus and copy them to a 64k mirror buffer. I haven't verified that it actually works, but I implemented simple $01 logic as well, to capture I/O writes to a separate buffer.

But this was really just a happy accident while making the graphics card :)
2016-06-10 20:06
Skate

Registered: Jul 2003
Posts: 494
This could be very useful actually. There are similar realtime monitoring solutions for emulators but monitoring the real thing is completely a new level.

Thanks for sharing your project MagerValp.
2016-06-10 20:10
chatGPZ

Registered: Dec 2001
Posts: 11386
Quote:
I haven't verified that it actually works, but I implemented simple $01 logic as well, to capture I/O writes to a separate buffer.

i'd be surprised if that does anything useful :) writes to the CPU port can not be "seen" on the BUS (only the address, not the data IIRC) - which is the main reason for why the chameleon became what it is, the only way to know about the state of the CPU port is to "look into the CPU".
2016-06-10 20:19
JackAsser

Registered: Jun 2002
Posts: 2014
Quote: Quote:
I haven't verified that it actually works, but I implemented simple $01 logic as well, to capture I/O writes to a separate buffer.

i'd be surprised if that does anything useful :) writes to the CPU port can not be "seen" on the BUS (only the address, not the data IIRC) - which is the main reason for why the chameleon became what it is, the only way to know about the state of the CPU port is to "look into the CPU".


One could solder the unit directly on the inputs or the outputs of the PLA to know the state of $01 though, if you really wanna debug. Or on the various chip select signals for that matter. A bit intrusive, but possible.
2016-06-10 20:24
chatGPZ

Registered: Dec 2001
Posts: 11386
yes, thats the common solution (used by eg SCPU)
2016-06-10 20:34
JackAsser

Registered: Jun 2002
Posts: 2014
Quote: yes, thats the common solution (used by eg SCPU)

Aha, didn't know it jacked in that hard. :)
2016-06-10 20:38
chatGPZ

Registered: Dec 2001
Posts: 11386
for SCPU128 its even funkier.... it needs to "bypass" the MMU, so it comes with an adapter for that and plenty wires routed inside the computer...
 
... 19 posts hidden. Click here to view all posts....
 
Previous - 1 | 2 | 3 - Next
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
csabanw
El Jefe/Slackers^sidD
Dan
MWR/Visdom
Metal Maniac/Dual Crew
McGurk/Coma
Xiny6581/Dees Produc..
Morpheus/IPC+C64.COM
E$G/HF ⭐ 7
algorithm
Guests online: 118
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 Edge of Disgrace  (9.6)
6 What Is The Matrix 2  (9.6)
7 The Demo Coder  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 Layers  (9.6)
2 No Listen  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.6)
6 Dawnfall V1.1  (9.5)
7 Rainbow Connection  (9.5)
8 Onscreen 5k  (9.5)
9 Morph  (9.5)
10 Libertongo  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Triad  (9.3)
5 Censor Design  (9.3)
Top Diskmag Editors
1 Magic  (9.8)
2 hedning  (9.6)
3 Jazzcat  (9.5)
4 Elwix  (9.1)
5 Remix  (9.1)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.055 sec.