delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/25/05:33:40

Date: Tue, 25 Mar 1997 13:18:15 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Peter Berdeklis <peter AT atmosp DOT physics DOT utoronto DOT ca>
cc: djgpp AT delorie DOT com
Subject: Re: Assembler Help!!
In-Reply-To: <Pine.SGI.3.91.970324100231.4148A-100000@atmosp.physics.utoronto.ca>
Message-ID: <Pine.SUN.3.91.970325131750.3988E-100000@is>
MIME-Version: 1.0

On Mon, 24 Mar 1997, Peter Berdeklis wrote:

> > The problem is NOT how to use segment prefixes.  The problem is how do
> > you make, say, GS have the value that will point to a certain section.
> 
> If this is the problem (I didn't read the original post), then I don't
> understand why there is a problem.
> 
> You simply load GS with the appropriate selector and use a byte prefix 
> whenever you want to reference that part of memory.  How you get the 
> selector has nothing to do with ASM.

I could miss something very obvious here, but I think the problems is
how do you know the selector value which you should load into GS.  The
.section directive, AFAIK, doesn't generate any selector that, when
used, will result in offsets being relative to that section.  As a
matter of fact, I think .section doesn't create a descriptor at all,
so there's no selector to begin with.  This is, AFAIK, the problem
behind the lack of support for multi-section programs in Gas.

- Raw text -


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