www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/13/13:03:57

Date: Wed, 13 May 1998 12:02:44 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Dark Angel <mop45440 AT mail DOT telepac DOT pt>
cc: djgpp AT delorie DOT com
Subject: Re: SELECTORS PROBLEM!!
In-Reply-To: <01bd7dd7$7088dc20$LocalHost@default>
Message-ID: <Pine.SUN.3.91.980513120224.26082N-100000@is>
MIME-Version: 1.0

On 12 May 1998, Dark Angel wrote:

> But shoudn't the selector returned by _dpmi_segment_to_descriptor give me
> only access to the first 64k of the video memory

Yes, the DPMI spec clearly says that the segment limit is set to 64K.
For more than that, you need to use the `__dpmi_set_descriptor'
function (see the libc reference and section 18.4 of the DJGPP FAQ
list).

> I was expecting some sort of memory write error when i tried to write way
> past the first page. But the function still worked!

This depends on your DPMI host.  Which one did you use?  Also, can you
post a short test program that would allow to see how did you do that,
and let others try this?

- Raw text -


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