[fpc-devel] Bitset assembler

Jy V jyv110 at gmail.com
Sun Sep 11 14:51:13 CEST 2016


Thank you Thomas, I will experiment with {$ASMMODE INTEL}

On Sunday, September 11, 2016, Tomas Hajny <XHajT03 at hajny.biz> wrote:
> On Sun, September 11, 2016 09:43, Jy V wrote:
>> Thank you Jonas,
>> so back to my original question,
>> is there an asm expert out there who knows if the syntax is invalid, or
>> simply the compiler does not implement bt, bts, btr instructions
>  .
>  .
>
> In general, GNU assembler syntax requires you to specify the operand size
> in the instruction name. You can use the Intel syntax (i.e. the working
> code you tried with DCC) when adding {$ASMMODE INTEL} at the top. You can
> also have a look at the translated GNU assembler syntax version by
> compiling with command line parameter -a and looking at the generated file
> with prefix .s.
>
> Hope this helps
>
> Tomas
>
>
> _______________________________________________
> fpc-devel maillist  -  fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20160911/0a564fa6/attachment.html>


More information about the fpc-devel mailing list