From: "Balial" Newsgroups: comp.os.msdos.djgpp Subject: Re: Setting VESA palette in DJGPP Date: 2 Dec 1996 06:31:22 GMT Organization: Customer of Access One Pty Ltd, Melbourne, Australia Lines: 54 Message-ID: <01bbdfb6$18ac2f40$794f12cb@osborne-1> References: <57p1np$dtq AT the-fly DOT zip DOT com DOT au> NNTP-Posting-Host: pppc21.nectar.com.au DJ-Gateway: from newsgroup comp.os.msdos.djgpp Apparently-To: djgpp AT delorie DOT com Dean wrote in article <57p1np$dtq AT the-fly DOT zip DOT com DOT au>... > How do you set the palette in VESA mode under DJGPP? > > I read the VESA function to do it is 09h, but since VESA is real mode, you > need to pass a pointer you your palette in the ES:DI resgisteer pair, so, how > do you do? > > Please help me, I've completely run out of ideas on how it could be done > > Thanks in advance... > > ------------------------------------ > Dean Harding > deanh AT zip DOT com DOT au > http://www.zip.com.au/~deanh > ------------------------------------ > > Bugger that off, Be a real man. Write a little function and use the ports. port 0x3C8 is used to set the pallette number U are updating, port 0x3C9 is used to output 3 valued RGB to tell it the colours. This then incriments 0x3C8 and will wrap it back from 255 to 0. For more info.. check out "Ryan Riley Robinson's" home page. Use a search engine but it contains lots of info, including the port to get the current values from. (I think they are 0x3C7 followed by inputting 3 values from 0x3C9. It also describes 0x3C6 if you want to know.) Balial =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- =-=- "Mmmmm.... Urinal Fresh" -Homer From the BaLiAl! balial AT mailhost DOT net balial AT resrocket DOT com balial AT nectar DOT com DOT au balial AT ozemail DOT com DOT au http://www.ozemail.com.au/~balial =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- =-=-