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 > FLI and stable raster
2008-10-27 21:47
Radiant

Registered: Sep 2004
Posts: 639
FLI and stable raster

Ok, now I'm starting to tire of this. :-)

Several people claim, and I have no reason to doubt them, that you don't need a stable raster to do FLI, because, "FLI is self-stabilizing". What does this mean, exactly? I've coded FLI routines, but I've always utilized an already stable raster (since you need to time the $d011 write to cycle 14 of each FLI raster line). I can't for the life of me figure out another way of doing FLI than actually writing to $d011 at cycle 14, and in order to do so you need a stable, predictable raster.

I guess my question is; where am I thinking wrong?
2008-10-27 21:57
Cruzer

Registered: Dec 2001
Posts: 1048
I think it stabilizes after the first line or something. Typically you'll have the FLI bug jittering a few cycles at the first line and after that it's stable. There are also cases when the whole thing jitters, but that can quickly be fixed by inserting some nops before the first d011 sta. Haven't wondered too much about this, since it always works, but I guess FLI's self-stabilizing feature is caused by the DMA delay being reduced by the number of cycles that the first d011 sta is "too late" compared to normally. E.g. if you store it 10 cycles too late, the FLI bug will be 10 char bigger, and 10 chars less will be fetched, causing the delay to be 10 cycles less.

2008-10-27 22:02
Radiant

Registered: Sep 2004
Posts: 639
Cruzer: Wouldn't delaying it into cycle 15 or more cause normal VSP?
2008-10-27 22:37
Danzig

Registered: Jun 2002
Posts: 429
some people even used writing to $d011 based on the actual rasterline and then back to $?b afterwards to GET stable raster :P quite a "single pixel fld"
2008-10-28 07:15
HCL

Registered: Feb 2003
Posts: 716
Yeah, that's how i always made it in 1992 :). trigger a badline with sta $d011 with #$7x, then back to #$1x or whatever visible.
2008-10-28 08:16
Radiant

Registered: Sep 2004
Posts: 639
But you lose height that way! OMG! OMG! :-)

Please disregard my previous post; of course you won't trigger VSP unless the VIC is in idle state. I blame teh tired.
2008-10-28 11:00
cavey

Registered: Jul 2002
Posts: 68
something like:

ldx #$7x
lda $d011
stx $d011
sta $d011
?
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
cba
Alakran_64
O'Dog
Mibri/ATL^MSL^PRX
Apollyon/ALD
Board Rider/Commodor..
Medicus
deetsay
t0m3000/ibex-crew
Knight Rider/TREX
The Syndrom/TIA/Pret..
Bob/Censor Design
Guests online: 144
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 Dawnfall V1.1  (9.5)
8 Quadrants  (9.5)
9 Daah, Those Acid Pil..  (9.5)
10 Birth of a Flower  (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 Swappers
1 Derbyshire Ram  (10)
2 Jerry  (9.8)
3 Violator  (9.8)
4 Acidchild  (9.7)
5 Starlight  (9.6)

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