www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/11/29/08:32:05

Date: Sun, 29 Nov 1998 15:31:40 +0200 (IST)
From: Emmanuel Amitay <emmanuel AT zoot DOT tau DOT ac DOT il>
To: DJGPP Mailing List <djgpp AT delorie DOT com>
Subject: VESA and more generally using DPMI to access VIDEO Memory
Message-ID: <Pine.SGI.3.96-heb-2.07.981129152908.7543A-100000@zoot.tau.ac.il>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

Thibaut Murez (tmurez AT nospam DOT planete DOT net) wrote:
>  this doesn't work
> __dpmi_meminfo LFB;

> VideoSelector=__dpmi_allocate_ldt_descriptors(1);
> LFB.size=0xffff;
> LFB.address=0xa0000000l;

This should be: LFB.address=0xa0000l;
Remember 0xa000 is a REAL-ADDRESS-MODE segment so the logical address is
 0xa000 * 16 = 0xa0000.

> __dpmi_physical_address_mapping(&LFB);
> __dpmi_set_segment_base_address(VideoSelector, LFB.address);
> __dpmi_set_segment_limit(VideoSelector, LFB.size);

/Danny

- Raw text -


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