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 > Facts about CIA and... question.
2015-02-12 17:04
Flavioweb

Registered: Nov 2011
Posts: 463
Facts about CIA and... question.

Obviously, correct me if i'm wrong.
- I know that CIA's counters $DC04..07, $DD04..07 never reach the value $00 during countdown, but $01 is repeated twice (EDIT: not $01, but the reset value is repeated twice).
- After that, i know that CIA's TOD alarm 1/10 seconds register, can't be set at value $00 otherwise the alarm does not work.
- Then i know that, if ICR is readed 1 or 2 cycles just before an IRQ generated by Timer B occur, then IRQ don't occur at all..
But... what are "the differences" between CIA revisions?
Not all of these bugs occur on all revisions or there are other differences?
 
... 10 posts hidden. Click here to view all posts....
 
2015-03-05 13:24
enthusi

Registered: May 2004
Posts: 677
I remember this being a pain for Hawkeye2 at X-Party ;-)
(there still is some bug-fixed-smile pic of yours somewhere)
2015-03-05 18:33
White Flame

Registered: Sep 2002
Posts: 136
That pain was that the demo machine ended up having 1 cycle of jitter more in its initial interrupt than I supported, or had seen before in VICE. It was a pain to figure out what was going on, but fortunately relatively easy to fix.

Inside my interrupt handler, I used the jitter value as an offset to INC some unused area and was able to build up a histogram of actual jitter observed. Using timer interrupts for cycle-accurate effects is nice because you can directly read the jitter amount from the CIA timer registers.

If I remember correctly, it's not that it had a 1-cycle phase offset to what I was expecting, but had a legitimately larger range of jitter possibilities for whatever reason.
2015-03-09 10:02
enthusi

Registered: May 2004
Posts: 677
That very moment:
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
X-Raffi/X-Rated
LordCrass
USID/The Guards; Tra..
Guests online: 106
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 Diskmag Editors
1 Magic  (9.8)
2 hedning  (9.6)
3 Jazzcat  (9.5)
4 Elwix  (9.1)
5 Remix  (9.1)

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