01-21-2014, 12:57 AM
Okay, next part of "Timewasting" for a "dead project":
This function converts RGB (0-3 for each channel) to SPECTRA's 64 colour mode colour:
And this routine will calculate the memory offset for Quad mode (8x4 Attributes)
In Double byte colour mode it will return the address of ink byte, for paper byte just add 2048.
Currently I'm writing a small demo to test some SPECTRA abilitys.
This function converts RGB (0-3 for each channel) to SPECTRA's 64 colour mode colour:
Code:
function RGBto64Col(r as ubyte,g as ubyte,b as ubyte) as ubyte
return b|(r<<2)|(g<<4)
end function
Code:
function CalcAdrQuadOffset(x as ubyte,y as ubyte)
dim y1 as uinteger
y1=(y&48)+((y&14)>>1)+((y&1)<<3)
return $6000+x+(y1<<5)
end function
Currently I'm writing a small demo to test some SPECTRA abilitys.
------------------------------------------------------------
http://lcd-one.da.ru redirector is dead
Visit my http://members.inode.at/838331/index.html home page!
http://lcd-one.da.ru redirector is dead
Visit my http://members.inode.at/838331/index.html home page!