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 > unknown Register $D7FF
2023-11-19 21:50
GI-Joe

Registered: Sep 2015
Posts: 15
unknown Register $D7FF

Hi,

i have found this code in a source:
ldy #$00
sty $d7ff

The D7FF bytes are not changed by the code.
Can someone explain this to me?

Thanxx
GI-Joe
 
... 2 posts hidden. Click here to view all posts....
 
2023-11-19 22:46
GI-Joe

Registered: Sep 2015
Posts: 15
normal #$37
2023-11-20 02:25
chatGPZ

Registered: Dec 2001
Posts: 11116
We use $d7ff for the debug register in VICE :)
2023-11-21 17:16
GI-Joe

Registered: Sep 2015
Posts: 15
Quote: We use $d7ff for the debug register in VICE :)

ok. Does this address give the value I wrote in it earlier ?
If so, I could use this for detection (vice)emulation ?
2023-11-21 17:52
iAN CooG

Registered: May 2002
Posts: 3132
x64sc doesn't keep the value, but you get 0 and not 255 ($ff) as expected from an unconnected address and as written in Mapping the C64.
2023-11-21 19:06
chatGPZ

Registered: Dec 2001
Posts: 11116
Quote:
ok. Does this address give the value I wrote in it earlier ?
If so, I could use this for detection (vice)emulation ?

no and no. it's also disabled by default. if enabled, when something is written to $d7ff, the emulator quits with the value written as exitcode
2023-11-21 19:11
TheRyk

Registered: Mar 2009
Posts: 2071
wasn't there something with SID registers/Mirror RAM (IO banked) being "WOM" (write only memory) by the book but in fact you _can_ read those at least for a frame or am I confusing stuff now?
2023-11-21 19:42
iAN CooG

Registered: May 2002
Posts: 3132
Sid registers, $d400-1c, maybe true, but those 3 leftovers are unconnected, so whatever you write doesn't get stored anywhere even for a fraction of a second.
2023-11-21 20:11
tlr

Registered: Sep 2003
Posts: 1714
Quote: Sid registers, $d400-1c, maybe true, but those 3 leftovers are unconnected, so whatever you write doesn't get stored anywhere even for a fraction of a second.

I believe it’s the last write you may read back for a while after it has been written. The adress, at least within the write only regs, should not matter.

I presume this behavior is due to the value being retained for a while on the SID’s floating internal data bus.

It might be that these retained values may also read back on the “unconnected” registers.
2023-11-21 20:42
CyberBrain
Administrator

Posts: 392
Quote: wasn't there something with SID registers/Mirror RAM (IO banked) being "WOM" (write only memory) by the book but in fact you _can_ read those at least for a frame or am I confusing stuff now?

You might be thinking about the SID-posts in thread: https://csdb.dk/forums/?roomid=11&topicid=141335&showallposts=1
So yeah, a SID-write can be read back, but with lots of caveats :) (aka. not working like normal mem - see the thread for info)

(Of course, it was only speculated in that thread what would happen when reading/writing $D41D-$D41F (=$D7FD-$D7FF). Should be tested...)
2023-11-21 21:10
ws

Registered: Apr 2012
Posts: 228
OMG. I just read that thread... i think my head exploded a little bit.
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
HCL/Booze Design
wil
GI-Joe/MYD!
Oswald/Resource
Menace/Spaceballs
Mike
Dymo/G★P
Soya/Fairlight
Viti/Hokuto Force
The Human Co../Maste..
Guests online: 126
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 Memento Mori  (9.6)
10 Bromance  (9.5)
Top onefile Demos
1 It's More Fun to Com..  (9.7)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.5)
5 TRSAC, Gabber & Pebe..  (9.5)
6 Rainbow Connection  (9.5)
7 Wafer Demo  (9.5)
8 Dawnfall V1.1  (9.5)
9 Quadrants  (9.5)
10 Daah, Those Acid Pil..  (9.5)
Top Groups
1 Nostalgia  (9.3)
2 Oxyron  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top Fullscreen Graphicians
1 Carrion  (9.8)
2 Joe  (9.8)
3 Duce  (9.8)
4 Mirage  (9.7)
5 Facet  (9.7)

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