I'm a complete newbie to Lazarus and the FPC although I've been a Delphi developer for 15 years.
I'm porting an application to Lazarus from Delphi in order to compile a 64 bit version.
I've converted the files and I'm trying to compile the application.
The compiler reports an error in the pastoc unit (part of the fpc as far as I can see), as follows.
"pastoc.pas (64,5) Error: Unrecognized opcode MOVE"
This is the code:
FUNCTION fpcAllocRemember(VAR rememberKey : pRemember; size : ULONG; flags : ULONG) : POINTER;
BEGIN
{$ASMMODE intel}
ASM
MOVE.L A6,-(A7) // This is the line it stops on.
MOVEA.L rememberKey,A0
MOVE.L size,D0
MOVE.L flags,D1
MOVEA.L _IntuitionBase,A6
JSR -396(A6)
MOVEA.L (A7)+,A6
MOVE.L D0,@RESULT
END;
END;
I'm using Lazarus v0.9.28.2
FPC Version 2.2.4
SVN #22279
On an x86_64 Windows 7 Home machine.
I can't find anything on the web that gives me a clue.
Rodney