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 > VSP bug with DEN manipulation
2017-10-04 09:24
Senbei

Registered: Dec 2014
Posts: 1
VSP bug with DEN manipulation

Ciriciao,
the whole VSP bug detection/fixing/avoiding is extremely catching, but there's one thing I'm not sure of and can't find it in the discussions so far: the VIC-II article mentions that VSP (or DMA delay) can also be achieved by manipulating DEN in line #30 (display enable, bit 4 of D011) instead of YSCROLL.
With this technique YSCROLL stays at 000 the whole time and the bad line is triggered at the right cycle by another means.
Does the VSP bug happens also in this case?

SNB
2017-10-04 09:44
lft

Registered: Jul 2007
Posts: 369
Yes it does. The timing is different from when you change YSCROLL, so it may or may not trigger the crash on any particular machine. It's not tested by VSP Lab.
2017-10-04 10:13
knue

Registered: Dec 2012
Posts: 37
oh, didn't know that. Are there advantages of using DEN instead of y-scroll?
2017-10-05 11:48
Monte Carlos

Registered: Jun 2004
Posts: 351
With changing y scroll you have to cover 64 minus 8 = 56 cases (for equal src and dest y scroll) to test.
Using only DEN you have to cover 8, only. This would simplify testing enourmously.
Also, the number of possible VSP bugs would be limited by less possibilities to trigger badline condition.
2017-10-05 11:56
Krill

Registered: Apr 2002
Posts: 2839
But using DEN limits VSP to the top of the screen, while regular YSCROLL can be applied before every char row, right?
2017-10-05 12:51
chatGPZ

Registered: Dec 2001
Posts: 11114
of course :)
2017-10-05 12:56
Monte Carlos

Registered: Jun 2004
Posts: 351
Ok, you're right. However, full screen VSP is a very important special case, i think.
Just meant as a suggestion to start with this simpler case and then proceed to the more complicated, later on.
Don't know if it would prove worthy the effort.
2017-10-05 15:37
JackAsser

Registered: Jun 2002
Posts: 1989
Quote: With changing y scroll you have to cover 64 minus 8 = 56 cases (for equal src and dest y scroll) to test.
Using only DEN you have to cover 8, only. This would simplify testing enourmously.
Also, the number of possible VSP bugs would be limited by less possibilities to trigger badline condition.


This comment is like... I dunno... really really weird. :)

Using y-scroll requires no special cases either. Just have d011 to something static. Then VSP by making sure d011=d012&7 then line crunch (by trigger another badline) to hide the visible DMA-FLI bug under the top border THEN yscroll to whatever you like (essentially FLD).
2017-10-05 15:57
Oswald

Registered: Apr 2002
Posts: 5017
iirc you can do vsp anywhere outside of the display area so no need to jump trough hoops to hide fli dma shit ? but even when I did it mid screen by "tearing" an idle line with FLD to do it there (hence otherwise wont work) I dont remember having to linecrunch.
2017-10-05 17:32
Krill

Registered: Apr 2002
Posts: 2839
Quoting Oswald
no need to jump trough hoops [...] I dont remember having to linecrunch.
That's because you probably used a black background! :D
2017-10-05 18:14
Oswald

Registered: Apr 2002
Posts: 5017
Quote: Quoting Oswald
no need to jump trough hoops [...] I dont remember having to linecrunch.
That's because you probably used a black background! :D


probably, but if one doesnt vsp mid screen this problem shouldnt arise.

btw I always just did dec d011 inc d011, is that den bit or yscroll? I saw it somewhere and just went with it :)
 
... 7 posts hidden. Click here to view all posts....
 
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
The MeatBall
Guests online: 125
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 Bromance  (9.6)
10 Memento Mori  (9.6)
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 Onscreen 5k  (9.5)
8 Wafer Demo  (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 Original Suppliers
1 Black Beard  (9.5)
2 Derbyshire Ram  (9.5)
3 hedning  (9.2)
4 Baracuda  (9.1)
5 Irata  (8.5)

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