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


Forums > C64 Coding > Bus Noise
2017-07-25 00:46
ws

Registered: Apr 2012
Posts: 228
Bus Noise

Abstract:
D800/Color Ram Hi-Bits (xxxx0000) are allegedly not connected. Thus: fuzz.

Well but actually why then this:
https://ibb.co/fqQkEk
https://ibb.co/k4g30Q

(one is C64 with reloaded board, other one is vice, just to make sure (sadly vice returns what? some prerecorded signals?))

This is anything but random. So then what is it? Any clues?

WS
2017-07-25 01:01
chatGPZ

Registered: Dec 2001
Posts: 11100
what you read from unconnected i/o is the last value that was on the bus, usually what the VIC fetched in the previous cycle. it IS indeed anything but random, it is 100% predictable. VICE (x64sc) in fact emulates this correctly :)

tests are here: https://sourceforge.net/p/vice-emu/code/HEAD/tree/testprogs/C64..
2017-07-25 14:42
chatGPZ

Registered: Dec 2001
Posts: 11100
mmmh now i think about it again... i am not entirely sure if that applies to the color ram under all conditions. a test program would be needed to verify this :) a simple loop like you used doesnt really give useful results however, what you need to do is testing this with a stable raster irq, so that the reads always happen at the same well defined cycles.
2017-07-25 18:54
ws

Registered: Apr 2012
Posts: 228
Ah! Good idea. I had been trying to read stuff as fast as i could, but i had always thought about syncing, too. Will now do that. The other possibility i imagined would be reading out tons of data to an external target and then checking for patterns but to do that, i am waiting for a certain hardware add-on that currently unpublicly is being developed (i hope, still).
2017-10-19 02:35
Mindcooler

Registered: Nov 2006
Posts: 28
Is this the same effect the VIC gets trying to read ZP location 01?
2017-10-19 04:39
Flavioweb

Registered: Nov 2011
Posts: 442
Is the same... but when cpu write to 00/01...
Vic always read ram adresses 00/01.
If you make a 00/01 write during vb, idle byte ($3FFF or so...) value is stored to ram 00/01.
2017-10-19 06:46
Krill

Registered: Apr 2002
Posts: 2825
Iirc, $01 (and $00) access is not at all the same. Writes always go through to the RAM, and VIC reads a stable value from there, it's just that these RAM cells happen to be shadowed by the CPU's processor port registers which intercept reads.
2017-10-19 07:02
Krill

Registered: Apr 2002
Posts: 2825
Ah, my bad. Confirmed with the Q&A section of C=hacking #8 that writes to $00/$01 indeed don't go through directly, but the write signal goes to RAM regardless, picking up whatever is left on the bus. VIC reads from $00/$01 are stable, though.
2017-10-19 12:19
Oswald

Registered: Apr 2002
Posts: 5017
according to some C= hacking article (iirc) d800 upper 4 bits does not always come from what the VIC left on the bus.
2017-10-19 12:32
chatGPZ

Registered: Dec 2001
Posts: 11100
according to older articles the illegal opcodes do all sort of funky things.....

a lot of those conclusions come from incomplete testing and misunderstanding of how certain things really work. we are 20 years further now :)
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
Dymo/G★P
E$G/hOKUtO fOrcE
theK/ATL
hedning/G★P
niallquinn
Airwolf/F4CG
Hagar/The Supply Team
Guests online: 141
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Comaland 100%  (9.6)
6 No Bounds  (9.6)
7 Uncensored  (9.6)
8 Wonderland XIV  (9.6)
9 The Ghost  (9.6)
10 Bromance  (9.6)
Top onefile Demos
1 It's More Fun to Com..  (9.8)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.5)
5 Rainbow Connection  (9.5)
6 Wafer Demo  (9.5)
7 TRSAC, Gabber & Pebe..  (9.5)
8 Onscreen 5k  (9.5)
9 Dawnfall V1.1  (9.5)
10 Quadrants  (9.5)
Top Groups
1 Oxyron  (9.3)
2 Nostalgia  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top NTSC-Fixers
1 Pudwerx  (10)
2 Booze  (9.7)
3 Stormbringer  (9.7)
4 Fungus  (9.6)
5 Grim Reaper  (9.3)

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