It won't let me post the picture. Btw, Someone from Reddit.programming sent me over here. So thanks!
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
Results in:
-334881242