From: "Sérgio Vale e Pace" Newsgroups: comp.os.msdos.djgpp Subject: Re: Vesa question... ? Date: Fri, 13 Mar 1998 16:34:27 -0300 Organization: All USENET -- http://www.Supernews.com Lines: 26 Message-ID: <35098A42.8C32E9F1@gold.com.br> References: NNTP-Posting-Host: 2185 AT 200 DOT 215 DOT 160 DOT 248 Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Alex wrote: > Hi guys, > > I am new to DJGPP. I want to make a program which use the VESA. > My question is how to switch into Vesa mode ? > How to Use the Vesa calls ? > Thanks in advice, > Alex. If you intend to write VESA 2.0 code you have a set of functions to use with protected mode, you can access this by function 0x4F0A (try to find a VBE 2.0 spec on the vesa site), in VESA 1.x and 2.0, to switch to a vesa mode you call the bios function, the same way you do in real mode (simply load the registers and call it) this is valid for every VBE function that don't use any kind of buffers in first mega. For functions like 0x4F00, or 0x4F01, that require a buffer you can use the DPMI calls to allocate DOS memory, free DOS memory, and Call real mode interrupt, you can found about then in the on line docs of DJGPP (try INFO LIBC FUNC DPMI). If you have other questions I will be glad to try to answer. Sérgio Vale e Pace