Date: Tue, 25 Mar 1997 13:18:15 +0300 (IDT) From: Eli Zaretskii To: Peter Berdeklis cc: djgpp AT delorie DOT com Subject: Re: Assembler Help!! In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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.