Date: Tue, 13 Aug 1996 14:57:19 +0200 (MET DST) From: Mark Habersack Reply-To: grendel AT ananke DOT amu DOT edu DOT pl To: John Luebs cc: djgpp AT delorie DOT com Subject: Re: Using allocated memory In-Reply-To: <320F6EF3.54D@sprynet.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Mon, 12 Aug 1996, John Luebs wrote: >After you use the __dpmi_allocate_memory function, how do you use the >memory? You have to: 1. allocate a descriptor, 2. take its selector and a) set its base segment to the value returned in __dpmi_meminfo.address b) set its segment limit to the size of the allocated block (or better to the value returned in __dpmi_meminfo.size) 3. use it with the far* family of functions. Greetings, Mark /************************************************************/ /** Maybe it was infatuation or the thrill of a chase? **/ /** Maybe you were always beyond my reach and my heart **/ /** was playing safe? ***********/ /** But was that love in your eyes I saw, **/ /** or the reflection of mine? **/ /** I'll never really know for sure, **/ /** You never really gave me time! **/ /** Won't you give me that time? **/ /** "Cindirella Search" **/ /********************************/ Visit my homepage: http://ananke.amu.edu.pl/~grendel