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


Forums > C64 Coding > What is going on with those ghost bytes in the Ghost demo?
2024-02-11 21:07
chriz74

Registered: Apr 2009
Posts: 33
What is going on with those ghost bytes in the Ghost demo?

Can anyone explain what’s the catch?
 
... 29 posts hidden. Click here to view all posts....
 
2024-02-12 17:48
Oswald

Registered: Apr 2002
Posts: 5031
Quote: "read from precharged address byte" :)

dont think its precharged in c64 if address line or data line (fli!) is not driven it goes to high level, VICII probably doesnt drive the address bus for the ghost byte, tho that would defeat some of the hardwrited behaviour.
2024-02-12 17:54
Oswald

Registered: Apr 2002
Posts: 5031
@trident ah, then its the article by you I have thought of, never really wrapped around my head this but getting to finally understand it. great write up.
2024-02-12 17:54
chatGPZ

Registered: Dec 2001
Posts: 11154
If it didn't drive the address bus, it'd either always fetch $3fff - or whatever address was on the bus in the previous access (more likely).

The $ff pattern in the FLI bug is also due to precharging, btw.
2024-02-12 18:43
Oswald

Registered: Apr 2002
Posts: 5031
Quote: If it didn't drive the address bus, it'd either always fetch $3fff - or whatever address was on the bus in the previous access (more likely).

The $ff pattern in the FLI bug is also due to precharging, btw.


good points
2024-02-12 18:47
chatGPZ

Registered: Dec 2001
Posts: 11154
What happens when the address bus is not driven you can see in the color of the FLI bug (well one of them) - its the value of the instruction that was fetched in the previous access.
2024-02-12 19:20
Oswald

Registered: Apr 2002
Posts: 5031
Quote: What happens when the address bus is not driven you can see in the color of the FLI bug (well one of them) - its the value of the instruction that was fetched in the previous access.

but what explains that, hence VICII data bus being 12 bit wide, and 4 of those connected to d800 (color ram) directly afaik and not to memry where instr was read from? whats going on here?
2024-02-12 19:37
chatGPZ

Registered: Dec 2001
Posts: 11154
When the bus is floating (ie not driven by anything) then whatever was on the bus before stays there for a small time, because of the parasitic capacitance of the bus itself.

In case of the FLI bug color what happens is basically:

1a) CPU puts address on the address bus
1b) RAM "answers" by butting data on the data bus
1c) CPU reads data from data bus
1d) bus goes inactive ("floating")
2a) VICII does NOT put an address on the address bus
2b) RAM does NOT answer anything either
2c) VICII DOES read data from the data bus, and sees the value from the CPU cycle

Oh and as for that "direct" connection - it's still a bus, the CPU can read/write to colorram by default, and thats why the value ends up there.
2024-02-12 20:23
Oswald

Registered: Apr 2002
Posts: 5031
yeah but VIC reads 12 bits every cycle it steals from the cpu afaik on a badline, how come the color read comes from the instruction and not the "$ff"
2024-02-12 20:30
chatGPZ

Registered: Dec 2001
Posts: 11154
That value is not even read from the databus, its the precharged value from the internal bus on the chip (Its in the 3 DMA setup cycles).
2024-02-12 20:38
Oswald

Registered: Apr 2002
Posts: 5031
Quote: That value is not even read from the databus, its the precharged value from the internal bus on the chip (Its in the 3 DMA setup cycles).

VICII has 12 bit databus, why is 8 bits $ff and 4 bits from an opcode at the fli bug ? why dont it reads all 8 bits of opcode instead of $ff, and $0f for color ram ?
Previous - 1 | 2 | 3 | 4 - 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
psych
www.gb64.com
Gordian
TheRyk/MYD!
Korodny
JackAsser/Booze Design
Airwolf/F4CG
tomz/TIDE
Guests online: 145
Top Demos
1 Next Level  (9.7)
2 Mojo  (9.7)
3 13:37  (9.7)
4 Coma Light 13  (9.7)
5 Edge of Disgrace  (9.7)
6 Aliens in Wonderland  (9.6)
7 Comaland 100%  (9.6)
8 Uncensored  (9.6)
9 No Bounds  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 Layers  (9.6)
2 Cubic Dream  (9.6)
3 Party Elk 2  (9.6)
4 Copper Booze  (9.6)
5 TRSAC, Gabber & Pebe..  (9.5)
6 Rainbow Connection  (9.5)
7 Dawnfall V1.1  (9.5)
8 It's More Fun to Com..  (9.5)
9 Daah, Those Acid Pil..  (9.5)
10 Birth of a Flower  (9.5)
Top Groups
1 Nostalgia  (9.4)
2 Oxyron  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 SHAPE  (9.3)
Top Logo Graphicians
1 Sander  (9.9)
2 Facet  (9.5)
3 Mermaid  (9.4)
4 Pal  (9.4)
5 Shine  (9.3)

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