title: How to Copy a Value - x86 NASM Assembly
body: <p>I am trying to figure out how to copy a value I am holding in a register for use immediately, and for use later in the program. I will be looping through code, and this value will need to be copied to another register for pushing it onto the stack, and then removal, copying, and repeating.</p>
  
  <p>I know that the <em>mov</em> instruction moves a value into another register, but does the register from which the value is moved from able to retain the value?</p>
  
  <p>For example:</p>
  
  <pre><code>mov eax, ebx
  </code></pre>
  
  <p>This would move ebx's value into eax, but would ebx still hold a value?</p>
  
  <p>Any instruction that could help me do this is greatly appreciated.</p>