title: NASM MOV from register to buffer
body: <p>I'm really lost here, because I'm getting invalid combination of opcode and operand errors no matter how I try this piece of code. I've declared a buffer in .bss, but I can't move a value to that location from a register, and I can't figure out why.</p>
  
  <pre><code>    numArgs:     resb 4
      mov dword    numArgs, [esp+4]
  </code></pre>
  
  <p>Obviously I'm just trying to retrieve the number of command line arguments given. If there's an easier way to do this, I'm all ears, but I'm particularly concerned with why I can't mov a value into a memory buffer.</p>