www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/11/28/07:52:38

Date: Sun, 28 Nov 1999 11:57:14 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Alan Illeman <illeman AT interlog DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: VBE links in djgppfaq ??
In-Reply-To: <383F3F37.A9AA4946@interlog.com>
Message-ID: <Pine.SUN.3.91.991128115642.6867Z-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Fri, 26 Nov 1999, Alan Illeman wrote:

> Can someone help with converting this code for djgpp ??
> 
> BOOL GetVgaInfo(VGAINFO *vgainfo)
> {
>     union REGS ir, or;
>     struct SREGS sr;
> 
>     ir.x.ax = GET_VESA_VGA_INFO;
>     ir.x.di = FP_OFF(vgainfo);
>     sr.es   = FP_SEG(vgainfo);
>     int86x(0x10, &ir, &or, &sr);
>     if(or.h.ah == 1 || or.h.al != 0x4F)
>         return FALSE;
> 
>     return TRUE;
> }

See section 18.5 of the FAQ, it discusses this.

- Raw text -


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