X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Date: Fri, 21 Apr 2006 08:44:02 +0300 From: alex bodnaru Subject: Re: dos buffer In-reply-to: To: djgpp AT delorie DOT com Message-id: <44487122.3010509@alex3> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT X-Accept-Language: en-us, he References: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20060205 Debian/1.7.12-1.1 Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk look fo "btrieve" in the mailing list alex Eric wrote: > Can anyone point me to some sample code that shows how to allocate a dos > buffer (below 1 meg). I want to understand how to do things this way and > not rely on tb. > For instance: > allocate buffer below 1 meg - size -32k > fill buffer with data and read it back > store actual buffer address in say regs.r.ax and regs.r.bx > free buffer > > I looked at __dpmi_allocate_dos_memory but it gets you a selector and I dont > know what to do to convert that to a pointer > > Thanks > Eric >