title: how to copy bytes into xmm0 register
body: <p>I have the following code which works fine but seems inefficient given the end result only requiring the data in xmm0</p>
  
  <pre><code>         mov rcx, 16                       ; get first word, up to 16 bytes
           mov rdi, CMD                      ; ...and put it in CMD
           mov rsi, CMD_BLOCK
   @@:     lodsb
           cmp al, 0x20
           je @f
           stosb
           loop @b
  
   @@:     mov rsi, CMD                      ;
           movdqa xmm0, [rsi]                ; mov cmd into xmm0
  </code></pre>
  
  <p>I'm sure using SSE2, SSE4 etc, there's a better way that doesn't require the use of the CMD buffer but I'm struggling to work out how to do it.  </p>