Mail Archives: djgpp/1999/04/25/04:57:07
On Fri, 23 Apr 1999, Tim Updegrove wrote:
> 1. How do I get the physical address from the selector and/or
> segment that is returned by __dpmi_allocate_dos_memory? Is it just
> (segment*16)+offset?
Yes.
> 2. I assume this area of memory doesn't have to be locked. Correct?
Correct. All DOS memory is locked by default by all DPMI servers I've
heard of.
> 3. If more than 64k bytes are allocated (like I did), must
> __dpmi_get_selector_increment_value or something be called to get a
> new selector when crossing a 64k boundary?
I don't understand why would you need this at all. You don't need the
selector to access the DOS block; simply use the farptr functions with
_dos_ds as the selector and the linear address (seg*16+offs) as the
offset. If you do that, you can stop worrying about crossing 64KB
boundaries.
- Raw text -