Date: Wed, 12 Nov 1997 12:30:04 +0000 ( ) From: "Gurunandan R. Bhat" To: Johan Levin Cc: djgpp AT delorie DOT com Subject: Re: GAS segment override In-Reply-To: <3468BBBC.1220@technologist.com> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Tue, 11 Nov 1997, Johan Levin wrote: > Hi! > > I'm making a simple ISR that will hook IRQ 0. > To set the ds to the correct value I read > ___djgpp_ds_alias. This variable is relative to > the cs-segment. > > How do I do something like: > mov ax, cs:[___djgpp_ds_alias] > I've tried: > cs: ^ I am not very sure of this but I suspect that the trailing : is the culprit. In gas you give a segment override by just writing a cs, for example: cs movw ___djgpp_ds_alias, %ds I hope that helps.