Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
 Welcome to our latest new user Nicron ! (Registered 2024-05-21) You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > REU and Color Memory
2023-10-06 07:57
Fungus

Registered: Sep 2002
Posts: 629
REU and Color Memory

Can the REU access color memory or is it a quirk that it cannot?

I've not been able to get color memory scrolling to work with an REU and don't know if it's just a VICE bug or if this is intended.
2023-10-06 08:14
tlr

Registered: Sep 2003
Posts: 1726
Quote: Can the REU access color memory or is it a quirk that it cannot?

I've not been able to get color memory scrolling to work with an REU and don't know if it's just a VICE bug or if this is intended.


Interesting question. The color memory is connected in a special fashion due to it being a separate bus on the VIC-II. The data bus to it depends on AEC for instance. I think it looks in the schematic like it should be accessable, but this should be tested on HW of course.

Do you have a small test program that someone with a REU could run?

Preferably a read/write color ram test with go/no-go if possible.
2023-10-06 08:22
6R6

Registered: Feb 2002
Posts: 244
Correct zp 01 value when transfer?
2023-10-06 10:54
Fungus

Registered: Sep 2002
Posts: 629
I don't have a test program atm, I was trying to fix a game with it but it didn't work so reverted the code in frustration. I just figured the REU can't access the color memory, but then I am using an older vice so thought it might be a bug in it (3.2).

I thought Sonic used it, so it was possible, but I can't get it work. I'll try again, maybe I just didn't code it correctly. Although I have been using the same code in my tape transfers without issue.
2023-10-06 11:25
Mr. SID

Registered: Jan 2003
Posts: 423
Sonic only writes to Screen and Color RAM, it never reads. Maybe reading doesn't work, I've never tried that...
2023-10-06 12:48
tlr

Registered: Sep 2003
Posts: 1726
No point in speculating here. I'll ask on #vice-dev if someone knows if this is tested, otherwise we need to see what it does on a real machine.
2023-10-06 13:57
chatGPZ

Registered: Dec 2001
Posts: 11147
it should work (ignoring that transfers from/to I/O are glitchy on some setups)

https://sourceforge.net/p/vice-emu/code/HEAD/tree/testprogs/REU..

And yes, for REU things use recent VICE :)

PS: make sure REU transfers do not start or end at the same cycle as VICII DMA, that causes weird behaviour/glitches. VICE does NOT emulate this correctly atm.

https://sourceforge.net/p/vice-emu/code/HEAD/tree/testprogs/REU..
https://sourceforge.net/p/vice-emu/code/HEAD/tree/testprogs/REU..
2023-10-06 20:03
Fungus

Registered: Sep 2002
Posts: 629
What do you mean by "some setups" ?
2023-10-06 21:31
chatGPZ

Registered: Dec 2001
Posts: 11147
Random C64s, reason unknown. It may or may not be related to the (known) glitches that happen when REU DMA starts (or stops) at the same time as a VICII DMA. In some of those demos that show 1 pixel wide color splits using REU, you can see glitches - on some C64s.
2023-10-06 22:22
Fungus

Registered: Sep 2002
Posts: 629
Okidoki, I'll check that REU is not dmaing at the same time then.
2023-10-08 05:01
Martin Piper

Registered: Nov 2007
Posts: 645
Do you need to avoid bad lines?
 
... 3 posts hidden. Click here to view all posts....
 
Previous - 1 | 2 - 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
CentralperK/Patagonia
Kruthers
Guests online: 68
Top Demos
1 Next Level  (9.8)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.7)
5 Edge of Disgrace  (9.6)
6 Comaland 100%  (9.6)
7 Uncensored  (9.6)
8 No Bounds  (9.6)
9 Bromance  (9.5)
10 Lunatico  (9.5)
Top onefile Demos
1 Layers  (9.6)
2 It's More Fun to Com..  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.6)
6 TRSAC, Gabber & Pebe..  (9.5)
7 Rainbow Connection  (9.5)
8 Dawnfall V1.1  (9.5)
9 Quadrants  (9.5)
10 Daah, Those Acid Pil..  (9.5)
Top Groups
1 Oxyron  (9.3)
2 Booze Design  (9.3)
3 Censor Design  (9.3)
4 Crest  (9.3)
5 Performers  (9.3)
Top Original Suppliers
1 Black Beard  (9.7)
2 Derbyshire Ram  (9.5)
3 hedning  (9.2)
4 Baracuda  (9.1)
5 Jazzcat  (8.6)

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