title: How do I use ReadString in Assembly?
body: <pre><code>mov  edx,offset Prompt1     
  call WriteString
  
  mov  ecx,32     
  mov  edx,offset String1     
  call ReadString
  </code></pre>
  
  <p>Now, how do I go about accessing <code>String1</code>? How do I move it into a register so I can do shifting operations on it?</p>
  
  <p>For example,</p>
  
  <pre><code>mov eax, edx
  shr eax, 1
  </code></pre>
  
  <p>The problem that I'm having is that I can't figure out how to access <code>String1</code>. It doesn't seem to be going into the eax register, but if I call <code>WriteString</code> it will appear, so I believe it is in EDX.</p>