title: What am I doing wrong? (Simple Assembly Loop)
body: <p><img src="https://imgur.com/gjUbV.jpg" alt="http://imgur.com/gjUbV.jpg"></p>
  
  <p>It won't let me post the picture. Btw, Someone from Reddit.programming sent me over here. So thanks!</p>
  
  <pre><code>TITLE MASM Template
  
  ; Description
  ;
  ; Revision date:
  
  INCLUDE Irvine32.inc
  .data
  myArray BYTE 10, 20, 30, 40, 50, 60, 70, 80, 90, 100
  
  .code
  main PROC
      call Clrscr
      mov esi, OFFSET myArray
      mov ecx, LENGTHOF myArray
      mov eax, 0
  L1:
      add eax, [esi]
      inc esi
      loop L1
      call WriteInt
      exit
  main ENDP
  END main
  </code></pre>
  
  <p>Results in:</p>
  
  <pre>-334881242</pre>