Page 2 of 2

Posted: Sun Mar 02, 2008 9:42 am
by eddyb
thanks for links :wink:

only something i don't understand:

Code: Select all

3C0h index 0-Fh  (R/W):  Attribute: Palette
bit 0-5  Index into the 256 color DAC table. May be modified by 3C0h index
          10h and 14h. 
so, the firsts 16 index entries are reserved for the palette?
there are only 16 colors?
if that, what mode is it?

Posted: Mon Mar 03, 2008 4:11 am
by eddyb
ok, i got what i need. can be close

Posted: Mon Mar 03, 2008 1:49 pm
by Combuster
eddyb wrote:After long searches, i've found this:

(snip)

Sounds interesting...
But i don't know how is with these indexes. Can anyone explain how i can set the index?
Wouldn't that be the next thing to ask google then? VGA Hardware FreeVGA

The 16-color lookup table mentioned is an poorly documented and a hardly used thing. If you keep out of it, colors 0-255 will always map to the corresponding DAC entry. If you're serious about it, read "Graphics Programming Black Book", which documents this feature properly. If you want the default values, send 0 to index 0, 1 to index 1, 2 to index 2 etc.

EDIT: removed the code you quoted because of license violations.

Posted: Tue Mar 04, 2008 2:23 am
by eddyb
Combuster wrote:
EDIT: removed the code you quoted because of license violations.
yah, u ar good as detective:wink: ... exacly from the i get the info