[fpc-devel] Help with inline assembler code
Paul Renaud
prenaud167 at yahoo.com
Wed Mar 29 15:47:53 CEST 2023
Hello, I've been having a problem getting some code to compile. I've gone through the documentation, butthere isn't any specific info for the arm version. This is a simplified version
Program Test;
Function HiInteger( Value: LongInt ): LongInt;
Begin
Asm
LdR R0, Value
Mov R1, R0, ASR #16
StR R1, @Result (* This line generates an error *)
End [ 'R0', 'R1' ];
End;
Begin
End.
Free Pascal version 3.2.2 for arm
Thanks for any help in advance.Paul.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20230329/7e8955d9/attachment.htm>
More information about the fpc-devel
mailing list