title: Setting loop counter in Nasm assembly language
body: <p>How do i tell the loop to loop x amount of times. For example loop 10 times. At the moment it loops only twice.</p>
  
  <pre><code>loop: 
      mov eax, 4
      mov ebx, 1
      mov ecx, ask
      mov edx, askLength
      int 0x80
  
      mov eax, 3
      mov ebx, 1
      mov ecx, edi
      mov edx, 3
      int 0x80
  
      add edi, 3; Loop change
  
      cmp edi, input+6 ;
      jl loop  ; Loop again
  </code></pre>