Re: Loading single word to a xmm register



\~o/~///annabee wrote:
All these 8
words are stored in different memory location.

//
(just wanted to repeat that for Wannabee's benefit :) Bummer!

Frank //

Not to be pedantic, but the 8 words I am moving are also in diffrent
memory locations. In fact, 2 bytes a part :D :D

True enough.

He didnt spesicfy what the nRastOffset was.
If it was 2 ......

That would be convenient. Almost "too good to be true".

I thought it was some schoolassignment :D

Yeah... I think they get into that xmm sh^Htuff about Junior year of assembly :)

But I guess you may be right that this was too easy.

Maybe, maybe not. No harm investigating whether the "easy way" would work! If it's going to be a "hassle" to get 8 words into an xmm reg, maybe it's not worth doing at all. I suppose Amal knows where he's going with it... (?)

Anyways. I stepped his code in RosAsm,

If you're into fooling with it, see if that "PINSRW" would do anything useful. Looks like it might... but I'll bet it's slow :(

Best,
Frank
.



Relevant Pages

  • Re: How to load a single word(16 bit) to xmm register in Intel P4?
    ... words are stored in different memory location. ... low 16 bits of one xmm reg (any technique will do, ... movapd xmm2,xmm1 ... punpcklwd xmm1,xmm2 ...
    (comp.lang.asm.x86)
  • Re: Please explain DIV
    ... the contents of memory location num into ax. ... memory location that holds your value 0500h) whilst others treat ... MASM as your assembler that is to be expected because MASM ... Frank answered) but it's good to start off on the right foot. ...
    (comp.lang.asm.x86)