www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/11/15/17:42:08

Date: Sat, 16 Nov 1996 11:17:30 +0000
From: Bill Currie <billc AT blackmagic DOT tait DOT co DOT nz>
Subject: Re: at&t assembler LDS and LES
To: "LUCIANO BARBOSA TAROUCO(leic)" <lbta AT camoes DOT rnl DOT ist DOT utl DOT pt>
Cc: djgpp AT delorie DOT com
Reply-to: billc AT blackmagic DOT tait DOT co DOT nz
Message-id: <328DA2CA.7DE9@blackmagic.tait.co.nz>
Organization: Tait Electronics NZ
MIME-version: 1.0
References: <56feda$qal AT ci DOT ist DOT utl DOT pt>

LUCIANO BARBOSA TAROUCO(leic) wrote:
> 
> I have a little problem with the at&t assembly under DJGPP
> 
> I try to use the operations LDS and LES which are suposed to
> load the segment part of a pointer to DS and ES respectively
> but when I compile the program, GCC says something like this:
> 
> "the operands dont match any 386 operation"
> 
> I am sure that these operations exist because they are documented
> in various assembly books.
> 
> Please Help Me...............
> 
> 

try (eg)
	lesl	dpointer,%edi
	ldsl	spointer,%esi

which register you use does'nt realy matter, I'm just assuming you want
this for the
string instructions.

BTW rep is used one of two ways is gas
eg
	rep
	movs
or
	rep; movs

note the semi colon

Hope this helps
Bill
-- 
Leave others their otherness.

- Raw text -


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