www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/06/15/03:13:08

Date: Fri, 15 Jun 2001 10:09:02 +0300
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: Katharina Siebke <siebke AT rsbs DOT anu DOT edu DOT au>
Message-Id: <1190-Fri15Jun2001100902+0300-eliz@is.elta.co.il>
X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.9
CC: djgpp AT delorie DOT com
In-reply-to: <5.0.2.1.1.20010615092912.00a8ca10@rsbsgpo.anu.edu.au> (message
from Katharina Siebke on Fri, 15 Jun 2001 09:44:47 +1000)
Subject: Re: still fighting with DOS, here memory allocation
References: <20010614133028 DOT EFDE DOT H DOT M DOT BRAND AT hccnet DOT nl> <5 DOT 0 DOT 2 DOT 1 DOT 1 DOT 20010615092912 DOT 00a8ca10 AT rsbsgpo DOT anu DOT edu DOT au>
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> 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 -


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