From: "ppr. P. V Prok" Newsgroups: comp.os.msdos.djgpp Subject: Re: vesa 2.0. protected mode interface?! Date: Thu, 18 Dec 1997 13:55:02 +0200 Organization: NSI Ltd. Lines: 38 Message-ID: <34990F16.25DEB0CA@nsi.co.il> References: <3492B3CA DOT 6248D49 AT mailto DOT de> <34951818 DOT 2E80 AT trash DOT lip6 DOT fr> <3498354d DOT 6315164 AT news DOT wxs DOT nl> <3498FE69 DOT 6324 AT trash DOT lip6 DOT fr> NNTP-Posting-Host: 194.90.156.130 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Fabrice ILPONSE wrote: > Xerxes wrote: > > > > On Mon, 15 Dec 1997 12:44:24 +0100, Fabrice ILPONSE > > wrote: > > > > >> i've set vesa mode 101h with linear frame buffer. know i want > > >> to change the palette! it seem that i must use the protected > > >> mode interface. how do i set and use it under djgpp? > > > > > >In which mode are you 8bits or 15bits and up ? > > In VESA mode 101 is 8 bit... > > Ok. sorry i didn't notice the mode number. > > You can use the common vga fonctions. no need of interrupts. > > use: > outportb(X,color number); > outportb(Y,red level); > outportb(Y,green level); > outportb(Y,blue level); > > i think X=0x3c7 and Y=0x3c9 or 0x3c8. can someone correct me if i'm > wrong!! :) > > -- > ^ ^ ^ > | | | > +-+-+ Fabrice ILPONSE > | > | > | > - X=0x3c8 and Y=0x3c9.