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: 359
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: 2980
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: 11386
of course :)
2017-10-05 12:56
Monte Carlos

Registered: Jun 2004
Posts: 359
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: 2014
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: 5094
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: 2980
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: 5094
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
Airwolf/F4CG
Unlock/Padua/Albion
Case/Padua
cadaver/covertbitops
DJ Gruby/TRiAD
Mike
Didi/Laxity
MWR/Visdom
WVL/Xenon
Trap/Bonzai
Steffan/BOOM!
REBEL 1/HF
Freeze/Blazon
Guests online: 133
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 Layers  (9.6)
2 No Listen  (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 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.048 sec.