Date: Mon, 17 Jun 1996 08:01:26 +0200 (IST) From: Eli Zaretskii To: "A. Sinan Unur" Cc: djgpp AT delorie DOT com Subject: Re: Maintaining buffers in DOS memory In-Reply-To: <31C3510A.7889@cornell.edu> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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).