[fpc-pascal] Invalid combination of opcode and operands

Adriaan van Os adriaan at adriaan.biz
Mon Feb 23 20:01:16 CET 2026


Marco van de Voort via fpc-pascal wrote:
> 
> Op 23-2-2026 om 17:40 schreef Adriaan van Os via fpc-pascal:
>>
>> I should add that SourceBuffer is an argument to a function, so I 
>> assume it to be a full address, not an offset.
>>
>> procedure MyProc( SourceBuffer: Pointer....);
>>
> Try adding the "rip+". Most 64-bit OSes don't use 64-bit immediate 
> values because they are huge to encode.
> 
> Most use RIP relative addressing,.

Same error:

      MOVSS xmm2,[rip+SourceBuffer]  <--- Asm: [movss xmmreg2,mem64] invalid combination of opcode 
and operands

Regards,

Adriaan van Os




More information about the fpc-pascal mailing list