title: In x8086 Assembly Language, how do I read string from the console and store it into a variable?
body: <p>I am currently working on a project that requires the user to enter a password and then have that password checked under certain conditions. I am having trouble getting started with declaring a string variable and then populating that variable with char inputs. Here's my code that does this so far:</p>
  
  <pre><code>input    DB   20  DUP(?)
  
  pass_input: 
  mov ah, 08h ; no echo
  int 21h
  mov dx, OFFSET ast ; ast = * to keep password hidden
  mov ah, 09h
  int 21h
  loop pass_input
  </code></pre>