[fpc-devel] Bitset assembler

Tomas Hajny XHajT03 at hajny.biz
Sun Sep 11 10:36:45 CEST 2016


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





More information about the fpc-devel mailing list