in/out port numbers[solved]

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
eddyb

Post 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?
eddyb

Post by eddyb »

ok, i got what i need. can be close
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Post 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.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
eddyb

Post 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
Post Reply