Date: Wed, 13 May 1998 12:02:44 +0300 (IDT) From: Eli Zaretskii To: Dark Angel cc: djgpp AT delorie DOT com Subject: Re: SELECTORS PROBLEM!! In-Reply-To: <01bd7dd7$7088dc20$LocalHost@default> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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?