Pelles C forum

Assembly language => Assembly discussions => Topic started by: skirby on September 30, 2010, 03:26:46 PM

Title: undefined Symbol and Invalid combination of opcode and operands
Post by: skirby 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.
Title: Re: undefined Symbol and Invalid combination of opcode and operands
Post by: frankie 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).
Title: Re: undefined Symbol and Invalid combination of opcode and operands
Post by: skirby 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.