Re: [fpc-pascal] FPC ARM inline Assembler

2023-04-06 Thread Sven Barth via fpc-pascal
Vern via fpc-pascal schrieb am Do., 6. Apr. 2023, 19:06: > After reading the FPC manual more closely , the correct compiler command > is {$ASMMODE default} where* default *is the native system ... in this > case Orange Pi arm64 and the compiler now allows accepting ARM assembler > instructions >

Re: [fpc-pascal] FPC ARM inline Assembler

2023-04-06 Thread Vern via fpc-pascal
Works now! Many Thanks Vern On 06/04/2023 1:43 p.m., Jonas Maebe via fpc-pascal wrote: On 06/04/2023 19:06, Vern via fpc-pascal wrote: .. the ARM version fails (similar code : ignore the fact it is the reverse of BSR) ... what am I missing ? procedure MSBitTest ( DataIn : longword);

Re: [fpc-pascal] FPC ARM inline Assembler

2023-04-06 Thread Jonas Maebe via fpc-pascal
On 06/04/2023 19:06, Vern via fpc-pascal wrote: .. the ARM version fails (similar code : ignore the fact it is the reverse of BSR) ... what am I missing ? procedure MSBitTest ( DataIn : longword); var  MSBit : longword; begin  asm   clz w4 , DataIn   mov MsBit , w4  end; end; AR

Re: [fpc-pascal] FPC ARM inline Assembler

2023-04-06 Thread Vern via fpc-pascal
After reading the FPC manual more closely , the correct compiler command is {$ASMMODE default} where/default /is the native system ... in this case Orange Pi arm64 and the compiler now allows accepting ARM assembler instructions. However it won't allow referencing a Pascal variable. Here is a

Re: [fpc-pascal] FPC ARM inline Assembler

2023-04-06 Thread Sven Barth via fpc-pascal
Vern via fpc-pascal schrieb am Do., 6. Apr. 2023, 17:32: > Does the current FPC compiler support ARM inline assembler ? > Yes. > If so what is the equivalent ARM command for {$ASMMODE intel} > There is none, because only one syntax is supported. Regards, Sven >

[fpc-pascal] FPC ARM inline Assembler

2023-04-06 Thread Vern via fpc-pascal
Does the current FPC compiler support  ARM inline assembler ? If so what is the equivalent ARM command for {$ASMMODE intel} Thanks Brian ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/f