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 > $DC08 / TOD issue in Vice?
2015-09-13 23:41
mhindsbo

Registered: Dec 2014
Posts: 51
$DC08 / TOD issue in Vice?

I am using $DC08 as the seed value for a random function and in Vice it always reads as 0 whereas when I run it on real hardware it has the expected behavior.

I do "unlatch" the TOD in my initialization code and when I use the monitor in Vice it shows values != 0 in $DC08 - $DC0B (as you would expect), but lda $DC08 always returns 0 in AR.

Is this a known Vice issue or am I doing something wrong?
 
... 10 posts hidden. Click here to view all posts....
 
2015-09-15 10:35
chatGPZ

Registered: Dec 2001
Posts: 11386
- yes, the monitor _should_ not have side-effects when accessing I/O. however, that part of the code apparently wasn't implemented properly in all cases (i have fixed a bunch of things related to that since 2.4, but i still would'nt guarantee it works 100%)
- the random autostart delay is 5 frames maximum (by default anyway), you'd have to make that value quite a bit larger to see values other than 0 in dc08 often enough (iirc the TOD cant expected to be running after plain reset/kernal init though)
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
LordCrass
Guests online: 83
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 No Listen  (9.6)
2 Layers  (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 Logo Graphicians
1 t0m3000  (10)
2 Sander  (9.8)
3 Mermaid  (9.5)
4 Facet  (9.4)
5 Shine  (9.4)

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