وو

وحید آنلاین . آرشیو وبلاگ وحیدمی دات آی آر . شرکت بیان. vahidmy.blog.ir

وو

وحید آنلاین . آرشیو وبلاگ وحیدمی دات آی آر . شرکت بیان. vahidmy.blog.ir

PINSRW

PINSRW 

Usage:  PINSRW    dest,src,count                Modifies flags: None

Copies a word from the 'src' (second operand) and inserts it in the 'dest' (first operand) at the location specified with the 'count' operand (third operand). (The other words in the 'dest'  register are left untouched.)

Insert Word


PINSRW mm,r16/r32/m16,imm8    ;0F C4 /r ib      [KATMAI,MMX]

PINSRW xmm,r16/r32/m16,imm8   ;66 0F C4 /r ib   [WILLAMETTE,SSE2]


PINSRW loads a word from a 16-bit register (or the low half of a 32-bit register), or from memory, and loads it to the word position in the destination register, pointed at by the count operand (third operand). If the destination is an MMX register, the low two bits of the count byte are used, if it is an XMM register the low 3 bits are used. The insertion is done in such a way that the other words from the destination register are left untouched.


The 'src' operand can be a general-purpose register or a 16-bit memory location. (When the 'src' operand is a general-purpose register, the low word of the register is copied.) The 'dest'  operand can be an MMX technology register or an XMM register. 

The 'count' operand is an 8-bit immediate. When specifying a word location in an MMX technology register, the 2 least-significant bits of the count operand specify the location; for an XMM register, the 3 least-significant bits specify the location.


EXAMPLE:

pinsrw xmm1 ecx 4