cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1998/04/27/14:17:10

From: "Lennart Marien" <lennartm AT metronet DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: VBE 2.0 ..can't use under 32bit !
Date: Mon, 27 Apr 1998 19:55:09 +0200
Organization: Metronet
Lines: 37
Message-ID: <6i2grf$673$1@news.metronet.de>
References: <6i2b2f$87d$1 AT news DOT crihan DOT fr>
NNTP-Posting-Host: hamburg1.pop.metronet.de
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

pautrot alexis schrieb in Nachricht <6i2b2f$87d$1 AT news DOT crihan DOT fr>...
>I'm trying to use a simple VESA function (VBE 1.0 and above) to fill an
array
>with some informations about the graphic card possibilities..
>I'm using function 0x00 to fill an array located by it's adress ES:DI,
>which is not a problem in real mode but don't work in protected mode !!
>The VESA function doesn't return any error ( return error code 0x00 )
>but the adress doesn't seems to be correct, because the array doesn't
contain
>any information !! Please help me.. I used ES:EDI without any exception, it
>only doesn't work !
>
>Alexis.

The firts thing is what do you mean with "Return Error
Code".To determine if Function call was successfull
you have to check AX:
AL==0x4f Function supported
AL!=0x4f Function is not supported
AH==0x00 Function call sucessfull
AH==0x01 Function call failed
AH==0x02 Function is not supported in the current
hardware configuration
AH==0x03 Function call invalid in current video Mode

The second is:
Why do you use ES:EDI?The VBE BIOS requires the
Address in ES:DI in Real mode form, since it´s a real
mode function.AFAIK it doesn´t even know the 32Bit
registers.You need to write the Real Mode Segment
in ES and the Offset in DI(Or vice versa).

Hope this helps!
cu


- Raw text -


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