www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/06/17/01:15:55

Date: Mon, 17 Jun 1996 08:01:26 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: "A. Sinan Unur" <asu1 AT cornell DOT edu>
Cc: djgpp AT delorie DOT com
Subject: Re: Maintaining buffers in DOS memory
In-Reply-To: <31C3510A.7889@cornell.edu>
Message-Id: <Pine.SUN.3.91.960617075529.13778B-100000@is>
Mime-Version: 1.0

On Sat, 15 Jun 1996, A. Sinan Unur wrote:

> silly games in Z-80 assembly 10 years ago. So, I really don't know if 
> this an extremely stupid way of doing things (keeping two copies of the 
> NCB and the IO buffer (which is between 2 to 8K). I would appreciate any 
> feedback on this.

You can allocate any (reasonable) amount of DOS memory with a call to 
`_go32_dpmi_allocate_dos_memory' library function, fill it with any 
content and use it without shuffling data back and forth (unless you need 
to change the content).  The only inconvenience is that you cannot 
reference the buffers in DOS memory with pointers, arrays and structs as 
you would with memory buffers in your program's address space without 
special tricks that effectively disable memory protection (and are only 
available under DJGPP v2).

- Raw text -


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