www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/07/31/00:19:23

From: "A. Sinan Unur" <asu1 AT cornell DOT edu>
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
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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

- Raw text -


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