News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

problems using SSE instructions

Started by RuiLoureiro, July 03, 2014, 09:24:47 PM

Previous topic - Next topic

jj2007

Hi Rui,

Perhaps you could construct a little test piece with the order as shown above, and post the full code here?

MichaelW

With ML 6.15 even this will work:

;==============================================================================
include \masm32\include\masm32rt.inc
.xmm
;==============================================================================
.data
    junk db 16 dup(0)
.code
;==============================================================================
start:
;==============================================================================
    lea esi, junk
    xor edx, edx
    movups xmm1, [esi+edx*8]
    inkey
    exit
;==============================================================================
end start

Well Microsoft, here's another nice mess you've gotten us into.

Gunther

Hi Rui,

Quote from: RuiLoureiro on July 04, 2014, 08:01:51 PM
                The problem is this:
                I am not able to assemble this instruction
               movups      xmm1, [esi+edx*8]                              
               I GET: instruction or register not accepted in current CPU mode.
                I dont know why.
:icon14:

That won't work. Please check Daves links in the other thread.

Gunther
You have to know the facts before you can distort them.

RuiLoureiro

#18
I find out the problem   

The file where i have the macros
START_COUNTER_CYCLE_HIGH_PRIORITY_CLASS
(written by MichaelW) and some data
and some procedures etc.
starts with .686 (i don't know why i put it there!).

So i have

   include \masm32\include\masm32rt.inc
   .xmm
   include macros.mac (starts with .686)

The result is what we know !
Now, my junk works fine (it seems).

Thank you Jochen
thank you also MichaelW
:icon14:

RuiLoureiro

Hi MichaelW,
                    Now i know why i put .686 in that file.
                    If i use
                     START_COUNTER_CYCLE_HIGH_PRIORITY_CLASS
                     i am not able to assemble it.
                     If i use .686 it assembles.