Mail Archives: djgpp/1996/06/17/01:15:55
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 -