delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/12/01/23:16:03

X-Apparently-From: <prashant?news AT yahoo DOT com>
Message-ID: <00de01bf3c6e$0f6f8860$2ef838ca@home-computer>
From: "Prashant TR" <prashant_news AT yahoo DOT com>
To: "Gareth Williams" <ghw2002tii AT hotmail DOT com>
Cc: <djgpp AT delorie DOT com>
Subject: Re: Setting a variable's selector?
Date: Thu, 2 Dec 1999 08:02:49 +0530
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.72.3110.5
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Reply-To: djgpp AT delorie DOT com

>In order to get information from the PnP BIOS I need the data structure to
>reside in the same selector/segment as the BIOS entry point.

What exactly do you mean by this? The PnP BIOS obviously
resides in the ROM which is read-only and so you *cannot*
have your data sturctures in the same segment as the entry
point.

But if you mean that you need to read the PnP header
structure, you can use nearptrs. (__djgpp_nearptr_enable).
It's in the FAQ.

> Is there way
>with DJGPP to specify the segment or selector of a variable or structure
>when you are allocating memory for it?

Don't think so. But you're mixing up segments and selectors. The
name "selector" is when you're refering to prot. mode and "segment"
when you're using real mode.



Prashant

------------------------------------------
One pound of knowlegde requires ten pounds of
common sense to apply it.




__________________________________________________
Do You Yahoo!?
Thousands of Stores.  Millions of Products.  All in one place.
Yahoo! Shopping: http://shopping.yahoo.com

- Raw text -


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