The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: Farabi on November 17, 2010, 05:03:33 AM

Title: "Immediate" value for SSE
Post by: Farabi on November 17, 2010, 05:03:33 AM
I can put a value to FPU by using method like this

FLD CFLT(2.0)


How to do something like that for SSE?
Title: Re: "Immediate" value for SSE
Post by: jj2007 on November 17, 2010, 07:52:49 AM
   movlps xmm1, FP8(123.456)
Title: Re: "Immediate" value for SSE
Post by: Farabi on November 27, 2010, 05:34:40 PM
Thanks JJ, what about a packed integer value?
Title: Re: "Immediate" value for SSE
Post by: jj2007 on November 27, 2010, 05:44:17 PM
Quote from: Farabi on November 27, 2010, 05:34:40 PM
Thanks JJ, what about a packed integer value?

Have a look with Olly.
include \masm32\include\masm32rt.inc
.xmm

.code
start: push 11111111
push 22222222
push 33333333
push 44444444
movdqu xmm0, [esp]
add esp, 4*4
exit
end start