delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/07/12/05:51:07

From: Andy Cooper <englbert AT email DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: How to change Executable format to my own?
Date: Mon, 12 Jul 1999 08:57:03 GMT
Organization: Deja.com - Share what you know. Learn what you don't.
Lines: 17
Message-ID: <7mcakt$iam$1@nnrp1.deja.com>
References: <01bec8e6$ccdcac80$LocalHost AT thendren> <7m5rhs$see$2 AT news DOT luth DOT se>
NNTP-Posting-Host: 195.195.244.98
X-Article-Creation-Date: Mon Jul 12 08:57:03 1999 GMT
X-Http-User-Agent: Mozilla/2.0 (compatible; MSIE 3.02; Win32)
X-Http-Proxy: 1.0 ZEBEDEE, 1.0 x23.deja.com:80 (Squid/1.1.22) for client 195.195.244.98
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

In article <7m5rhs$see$2 AT news DOT luth DOT se>,
  ams AT ludd DOT luth DOT se (Martin Str|mberg)
wrote:

> But it's run in protected mode so the segments are selectors. Now
>
different selectors can point to diffent places, but if you point them
> both
at base=0, and expect code at address 0 not interfere with data
> at address
0, I think you're misstaken. But I'm not an assembly guy,
> so I could be
wrong. Please correct me if so.
> 
> Skunk Anansie, Paranoid & Sunburnt,
>   
							 MartinS
> 

When a
program is in protected mode, it is possible to set the program up so that
there are two _entirely_ seperate segments in two different places in memory.
The segment registers would be used to select the segment for the code (CS
register) and data (DS &  ES registers). The segments, even though they are
not at address 0 in physical memory, the pointers in the segmens refer to the
data from address 0.

Hopefully, this helps to clarify things.

Yours

Andy


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.

- Raw text -


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