X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f NNTP-Posting-Date: Tue, 18 Apr 2006 21:31:15 -0500 From: Eric Subject: dos buffer Newsgroups: comp.os.msdos.djgpp Date: Tue, 18 Apr 2006 19:31:15 -0700 User-Agent: KNode/0.9.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit Message-ID: Lines: 14 NNTP-Posting-Host: 67.183.204.127 X-Trace: sv3-eiJBZ0HpnlRTzlArwJffCspZ+1zTpVae6DFjLXZawfSULaxdglK3kC2CXI/S9ehfs2gO5MxAB5+zOV+!66fUCPozCNbsz+C9XugB3rpJhhCyPySp0AawHVLAY5QP6qjJ8W7eDBAckuak0kfTCIeLAqO8MPMl!H/yhax+znq59SHA= X-Complaints-To: abuse AT comcast DOT net X-DMCA-Complaints-To: dmca AT comcast DOT net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com 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