www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/16/08:48:00

Date: Sun, 16 Mar 1997 16:21:33 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Tamito Kajiyama <kajiyama AT grad DOT sccs DOT chukyo-u DOT ac DOT jp>
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: <Pine.SUN.3.91.970316162103.12150i-100000@is>
MIME-Version: 1.0

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?).

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019