www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/13/14:31:23

From: "Sérgio Vale e Pace" <space AT gold DOT com DOT br>
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: <Pine DOT GSO DOT 3 DOT 96 DOT 980311133533 DOT 12377A-100000 AT Gandalf DOT gamf DOT hu>
NNTP-Posting-Host: 2185 AT 200 DOT 215 DOT 160 DOT 248
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp


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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019