Date: Thu, 2 Dec 1999 09:51:08 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Prashant TR cc: Gareth Williams , djgpp AT delorie DOT com Subject: Re: Setting a variable's selector? In-Reply-To: <00de01bf3c6e$0f6f8860$2ef838ca@home-computer> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Thu, 2 Dec 1999, Prashant TR wrote: > >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. This is not necessarily true: in protected mode, at least in principle, you can set up a selector to span any range of addresses in the 4GB address space. The code in ROM does have an address, so it can be inluded. > 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. Not entirely true: protected mode doesn't disable memory segmentation. You do have segments in a DJGPP program, and a selector is an index into the table of segment descriptors. So a selector does specify a segment, albeit indirectly.