From: "A. Sinan Unur" Newsgroups: comp.os.msdos.djgpp Subject: Re: real-mode pointers Date: Wed, 30 Jul 1997 15:53:23 -0400 Organization: Cornell University Lines: 20 Sender: asu1 AT cornell DOT edu (Verified) Message-ID: <33DF9BB3.4B73@cornell.edu> References: <33DF967A DOT 2A6C AT indy DOT net> Reply-To: asu1 AT cornell DOT edu NNTP-Posting-Host: 128 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Chris Frolik wrote: > > Is there ANY way to get the real-mode segment:offset of a variable (or > block of allocated memory) in DJGPP? I am assuming there is, because: > > 1) Every variable must have an address somewhere in memory > 2) Every address in memory can be accessed using the segment:offset > notation wrong. the address space that djgpp has access to is far larger than the 1 Mb that can be addressed in real mode. in protected mode, addresses consist of a 16-bit selector and a 32-bit offset. there might be a spurflous similarity between the names, but they are quite different than real mode seg:off. you might be better off going to yahoo and searching for info on protected mode programming pages. i have found quite interesting sites in the past but i do not have the url's any more. -- Sinan