[fpc-devel]problem in AT&T syntax assembler :(

Michail A.Baikov xakep at gamedot.ru
Thu Jul 25 13:38:58 CEST 2002


Thanks. Jonas, you guru in AT&T syntax =)

Thanks you!

----- Original Message ----- 
From: "Jonas Maebe" <jonas at zeus.rug.ac.be>
To: <fpc-devel at deadlock.et.tudelft.nl>
Sent: Thursday, July 25, 2002 3:08 PM
Subject: Re: [fpc-devel]problem in AT&T syntax assembler :(


> 
> 
> On Thu, 25 Jul 2002, Michail A.Baikov wrote:
> 
> > I have INTEL variant of my code:
> >
> > {$ASMMODE INTEL}
> > begin
> > asm
> >     add ecx, offset @@k
> > @@k:
> > end
> > end.
> >
> > in disasm i get next code: add ecx, 00418440
> >
> > But, i need this code in AT&T syntax.
> >
> > I try write next code:
> >
> >  addl .Lk,%ecx
> >
> > but disasm get: add ecx, dword ptr [00418440]
> 
> You need
> 
> addl $.Lk,%ecx
> 
> The $ tells the assembler that you want the value OF the address and not
> the value AT the address.
> 
> 
> Jonas
> 
> 
> _______________________________________________
> fpc-devel maillist  -  fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel
> 





More information about the fpc-devel mailing list