title: How to take in multiple inputs from user in assembly
body: <p>I'm pretty new to assembly. I know how to take in 1 value from a user, but what if I want the user to input 3 numbers separated by spaces.</p>
  
  <p>I'm trying to store each of them into a separate register, so something like this.</p>
  
  <pre><code>push qword 0                        ;make space for 8-byte number
  push qword 0                        ;make space for 8-byte number
  push qword 0                        ;make space for 8-byte number                                            
  mov qword  rdi, formatfloatinput                            
  mov qword  rsi, rsp                                         
  mov qword  rax, 0                                           
  call       scanf                                            
  
  
  pop qword r15                   ;pop value from stack into r15                            
  pop qword r14                   ;pop next value in stack into r14?
  pop qword r13                   ;pop next value in stack into r13?
  </code></pre>
  
  <p>sample input: <code>13 15 36</code></p>
  
  <p>Now <code>r15</code> should contain 13, <code>r14</code> contains 15 and <code>r13</code> contains 36.</p>