http://pelrun.github.io/dtvwiki
This project is maintained by pelrun
FRED Mode, as named after Six’s turtle testing program, is a C64 FLI-like mode. It features :
FRED mode is really more of a “retro” c64-ish mode and a kind of like a CPU-less FLI mode with a re-definable palette.
It gives the programmer a normal MCBM style cells.
Each 4x8 cell can contain any of 16 colors, the downside being that those 16 colors have to have the same high nibble, which is determined by the ColorRam for that cell.
Since this is based on a standard c64 multicolor mode, each “pixel” is two normal pixels wide, giving you a resolution of 160 pixels across. So in 160x200, you’ll have 1000 cells of 4x8, the size of the ColorRam.
Thus, the core will fetch two bits from plane A, two bits from plane B, and 4 bits from color ram to generate each pixel. This allows 16 colors per “cell” where :
“C
” is
ColorRam
for this cell
“B
” is plane B
“A
” is plane A
A pixel color value will be %CCCCBBAA
So for example :
if %CCCC = $0 then the pixels for this cell will come from the 0-15 entries in the palette
$1 16-31
$2 32-47
.. ...
$F 240-255
so if : ColorRam is $4 (=> colors will be taken between palette entries $40 and $4F (64 and 79))
byte in Plane B is %10 10 11 00
byte in Plane A is %00 01 10 10
%CCCC BB AA
then the pixel colors will be %0100 10 00 = $48,
%0100 10 01 = $49,
%0100 11 10 = $4e,
%0100 00 10 = $42.
So, how can this be useful?
To set the FRED Mode :
ECM = 1
BMM = 1
MCM = 1
LINEAR ADDRESSING = 1
HIGHCOLOR = 1
[TO DO : add example from Six]