www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/11/29/06:39:55

Date: Sun, 29 Nov 1998 13:39:56 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Thibaut Murez <tmurez AT nospam DOT planete DOT net>
cc: djgpp AT delorie DOT com
Subject: Re: VESA and more generally using dpmi to access VIDEO Memory
In-Reply-To: <MPG.10c7c628d7c67f2898969b@news>
Message-ID: <Pine.SUN.3.91.981129133840.2340G-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

On Thu, 26 Nov 1998, Thibaut Murez wrote:

> VideoSelector=__dpmi_allocate_ldt_descriptors(1);
> LFB.size=0xffff;
> LFB.address=0xa0000000l;
> __dpmi_physical_address_mapping(&LFB);
> __dpmi_set_segment_base_address(VideoSelector, LFB.address);
> __dpmi_set_segment_limit(VideoSelector, LFB.size);

The limit should be SIZE - 1.  See section 18.7 of the DJGPP FAQ list for 
more gotchas.

- Raw text -


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