Mail Archives: djgpp/2001/06/15/03:13:08
> Date: Fri, 15 Jun 2001 09:44:47 +1000
> From: Katharina Siebke <siebke AT rsbs DOT anu DOT edu DOT au>
>
> who still knows DOS?
Why, everyone, of course ;-)
> static __dpmi_raddr dosside; /*dos address of buffer*/
> static __dpmi_paddr protectside; /*protect side of buffer*/
> int sel,
>
> dosside.offset16=0;
> dosside.segment = __dpmi_allocate_dos_memory((MEM_BLOCK+15)>>4, &sel);
> protectside.selector= (unsigned short) sel;
>
> My question is, are these both pointers:
> dosside.segment and protectside.segment really show to the same piece of
> memory.
You mean protectside.selector, yes? Yes, these two reference the same
chunk of memory.
> Or in other words how does an integer pointing to a piece of memory
> translated into the given structure.
Sorry, I don't understand the question.
> Who can help me with that?
As soon as we understand the problem...
The code above is correct. The question is, what do you need to do
with that memory, and where's your stumbling block.
- Raw text -