Date: Sun, 16 Mar 1997 16:21:33 +0300 (IDT) From: Eli Zaretskii To: Tamito Kajiyama cc: djgpp AT delorie DOT com Subject: Re: how to allocate the DOS conventional memory In-Reply-To: <1997Mar14.141806.2818@chkygw.sccs.chukyo-u.ac.jp> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Fri, 14 Mar 1997, Tamito Kajiyama wrote: > I've used DJGPP version 1.12 in the VCPI environment (yes, I know the > compiler is old, but my computer is a NEC PC-9801, not an AT compatible, > so I cannot use the newest compiler due to the architectural > differences). I'm now writing a Python wrapper module of a graphic > library, and I need to allocate/free the DOS conventional memory. > > Question: How do I allocate/free the conventional memory in DJGPP 1.12 > in the VCPI environment? > > I have a program that someone wrote, and the program allocates the > conventional memories by calling _go32_dpmi_allocate_dos_memory() and > frees them with invoking _go32_dpmi_free_dos_memory(). Why do you need this at all? Just use these two library functions `_go32_dpmi_allocate_dos_memory' and `_go32_dpmi_free_dos_memory'. The memory they allocate is coming from conventional memory (where else could DOS memory come from?).