Re: Invalid combination of opcode and operands
Adriaan van Os via fpc-pascal <[email protected]> Mon, 23 Feb 2026 19:01:16 +0000 (UTC)
| Newsgroups | gmane.comp.compilers.free-pascal.general |
|---|---|
| Message-ID | <[email protected]> |
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
_______________________________________________
fpc-pascal maillist - [email protected]
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal