NO

Author Topic: undefined Symbol and Invalid combination of opcode and operands  (Read 4285 times)

skirby

  • Guest
undefined Symbol and Invalid combination of opcode and operands
« on: September 30, 2010, 03:26:46 PM »
Hello,

Is there any way that Pelles C 6.00.4 support the code below:
wordarray dw 1,2,3,4
movq mm0, OWORD PTR wordarray

I get the following error: error: Symbol 'oword' is undefined.

Also, the code below give me the error:
movdqa  oword ptr [edi], xmm0
error: Invalid combination of opcode and operands (or wrong CPU setting).


Thanks in advance and have a nice day.

skirby.

Offline frankie

  • Global Moderator
  • Member
  • *****
  • Posts: 2096
Re: undefined Symbol and Invalid combination of opcode and operands
« Reply #1 on: September 30, 2010, 07:53:19 PM »
Try using XMMWORD to define a 128bits/8 words variable instead of OWORD (not implemented in POASM).
It is better to be hated for what you are than to be loved for what you are not. - Andre Gide

skirby

  • Guest
Re: undefined Symbol and Invalid combination of opcode and operands
« Reply #2 on: October 01, 2010, 01:55:48 PM »
Hello frankie and thanks for your answer,

In order to replace my opcode oword, I have done this : oword equ xmmword

But, now, I have the following error "error: Invalid combination of opcode and operands (or wrong CPU setting)." on the code below:
pxor    xmm0, xmm0
and
movdqa  xmmword ptr [edi], xmm0

I don't know why.
Thanks in advance if you have any idea.

I continue to search on the Web.

Have a nice day.