From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: Allocating memory Date: Mon, 25 May 1998 16:13:32 -0400 Organization: Two pounds of chaos and a pinch of salt. Lines: 17 Message-ID: <3569D0EC.7E65@cs.com> References: <35697735 DOT 49F4 AT dcs DOT ed DOT ac DOT uk> NNTP-Posting-Host: ppp107.cs.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Joshua Hale wrote: > > Can anyone tell me how to allocate some memory in the bottom 1M of > memory, and how to get a page, segment, offset address for it and > a pointer. -I'm trying to play samples using DMA to the soundcard. See chapters 17 and 18 of the DJGPP Frequently Asked Questions list (v2/faq210b.zip from SimTel or http://www.delorie.com/djgpp/v2faq/) for specific instructions on accessing conventional memory. -- --------------------------------------------------------------------- | John M. Aldrich |"A competent and self-confident person| | aka Fighteer I | is incapable of jealousy in anything.| | mailto:fighteer AT cs DOT com | Jealousy is invariably a symptom of | | http://www.cs.com/fighteer | neurotic insecurity." - Lazarus Long| ---------------------------------------------------------------------