The following warnings occurred:
Warning [2] Undefined array key 0 - Line: 1677 - File: showthread.php PHP 8.2.31 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/showthread.php 1677 errorHandler->error_callback
/showthread.php 916 buildtree




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SPECTRA Advanced Graphics
#6
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:
Code:
function RGBto64Col(r as ubyte,g as ubyte,b as ubyte) as ubyte return b|(r<<2)|(g<<4) end function
And this routine will calculate the memory offset for Quad mode (8x4 Attributes)

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
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.
------------------------------------------------------------
http://lcd-one.da.ru redirector is dead
Visit my http://members.inode.at/838331/index.html home page!
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)