I
I
IvanEjik2020-10-15 00:47:56
Delphi
IvanEjik, 2020-10-15 00:47:56

Delphi 10.4.1 sees the XMM0-XMM7 register but complains about XMM8 and more, why?

asm
//  .NOFRAME

  movdqu XMM7, dqword ptr [CV]
  movdqu XMM8, dqword ptr [CV + 16]
  movdqu XMM9, dqword ptr [CV + 32]

  pxor XMM2, XMM2

  //bStep -> rdx
  cvtsd2ss XMM13, qword ptr [bStep]
  cvtsd2ss XMM0, qword ptr [bStep + 8]
  cvtsd2ss XMM1, qword ptr [bStep + 16]

5f877188b46d1804531777.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
acwartz, 2020-10-15
@IvanEjik

Everything after XMM7 is for x64. Wiki.
Switch the application to the assembly under x64, or better wrap the desired piece of code in acc. condition:

{$IFDEF CPUX86}
  asm
    // ...
  end;
  {$ENDIF CPUX86}
  {$IFDEF CPUX64}
  asm
    // ...
  end;
{$ENDIF CPUX64}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question