[Lazarus] RE : RE : RE : Convert assembler to Pascal

Ludo Brands ludo.brands at free.fr
Tue Sep 13 17:42:48 CEST 2011


> > Should have told it was for delphi also:
> > 
> Well, no, it won't work on Delphi. I just wanted to compare 
> the results between Lazarus and Delphi.
> 
You are forgiven ;)

You could have compared also with fpc on i386. Change 

	procedure XorMemPrim(var Mem1;  const Mem2;  Count : Cardinal);
register;

into

	{$asmmode intel}
	procedure XorMemPrim(var Mem1;  const Mem2;  Count : Cardinal);
register;assembler;

and the assembler routine works also in fpc.

Ludo





More information about the Lazarus mailing list