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 explained, please...
2009-05-03 20:40
Dragnet

Registered: Nov 2006
Posts: 16
FLI explained, please...

Hola,

I'm looking for an easy-understandable-for-a-novice description, preferably with a *documented* example to go along with it, of how FLI actually works, including a description of how the colordata is stored (so i'll know how to manipulate it). My C64 skills are very novice/rusty indeed, so the more documentation, the better...

I have already been searching this forum and the C64 codebase for the sorts, but found what seems like a trillion different FLI formats (FLI, AFLI, XFLI, IFLI, MUFLI, etc) with different resolutions... But, I'm merely thinking of "normal fli" (if there is such a thing) capable of handling a width of 40 chars (and at least a height of 10 chars), no sprites involved, and 16 colours per char, running as part of the normal IRQ. Make sense?

Furthermore, a reference to a drawing-program that can save in the explained format, or at least in a format that can be converted into it, would be very nice!

That's not much to ask for, is it? :)

Any help will be greatly appreciated...!

Regards /Dragnet
2009-05-03 21:22
MagerValp

Registered: Dec 2001
Posts: 1078
http://www.ffd2.com/fridge/chacking/c=hacking4.txt
2009-05-04 13:58
Mace

Registered: May 2002
Posts: 1799
FLI with a width of 40 chars is only possible if you allow for some chars to the left to only have light grey or background colour.
This is know as the 'FLI bug' and it's ALWAYS there.
2009-05-04 14:17
chatGPZ

Registered: Dec 2001
Posts: 11386
technically FLI _is_ possible in all 40 chars... you just have to stretch the videoram and use a fpp like routine.
2009-05-04 16:11
Krill

Registered: Apr 2002
Posts: 2980
I always considered FLI a forced DMA with VIC line pointer _advance_ though, not a forced DMA with VIC line pointer _reset_ (= forced bad line). That difference is exactly why both are 3 cycles apart and one has this 3-chars bug to the left.. :)

Anyways, yes, you can emulate FLI by using forced bad lines, but you'll quickly run out of unique lines..
2009-05-04 16:45
Graham
Account closed

Registered: Dec 2002
Posts: 990
8 rasterlines to be exact.
2009-05-04 17:17
Krill

Registered: Apr 2002
Posts: 2980
Well, yes, FLI also updates the $d800 colours every 8 lines, while forced bad lines (FPP) doesn't.
2009-05-04 18:35
Mace

Registered: May 2002
Posts: 1799
Stretch videoram, FPP routine, forced bad lines... this is why FLI never has been my thing.
I've never been a 'hardware' coder.
2009-05-04 22:22
MagerValp

Registered: Dec 2001
Posts: 1078
I'd just like to point out that in the FLI bug area you have background color, light gray, and one color that depends on the CPU instruction following the FLI code. Using illegals you can select any of the 16 colors. The next version of Executable Image supports changing the FLI bug color to any color on every line, but unfortunately I don't think there are any tools that let you save an image with that information. FLI Profi is the only editor that lets you edit the area, but it saves an executable program...
2009-05-05 05:14
JackAsser

Registered: Jun 2002
Posts: 2014
Quote: I'd just like to point out that in the FLI bug area you have background color, light gray, and one color that depends on the CPU instruction following the FLI code. Using illegals you can select any of the 16 colors. The next version of Executable Image supports changing the FLI bug color to any color on every line, but unfortunately I don't think there are any tools that let you save an image with that information. FLI Profi is the only editor that lets you edit the area, but it saves an executable program...


Timanthes has that option, or at least hidden.
2009-05-05 05:46
Mace

Registered: May 2002
Posts: 1799
Quote:
one color that depends on the CPU instruction following the FLI code
Cool, didn't know that :)
 
... 40 posts hidden. Click here to view all posts....
 
Previous - 1 | 2 | 3 | 4 | 5 - 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
St0rmfr0nt/Quantum
katon/Lepsi De
The Syndrom/TIA/Pret..
Youth
LKP/CFN
Mike
Lazycow
Alakran_64
TheRyk/MYD!
mutetus/Ald ^ Ons
megasoftargentina
Guests online: 137
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 Censor Design  (9.3)
5 Triad  (9.3)
Top Original Suppliers
1 Derbyshire Ram  (9.7)
2 Fungus  (9.3)
3 Black Beard  (9.2)
4 Baracuda  (9.2)
5 hedning  (9.1)

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