That number sequence lacks a pattern. I guess if you're trying to add even numbers (2+4+6+8+10...) you could maybe try something like this in your code:
xor eax, eax
xor ecx, ecx
.loop:
add eax, 2
inc ecx
cmp ecx, n ;replace n with the number of times you want thing to loop.
jne loop
;rest of your code here
The result will be stored in eax
I'm just learning assembly language, but hope this helps!
Answers & Comments
That number sequence lacks a pattern. I guess if you're trying to add even numbers (2+4+6+8+10...) you could maybe try something like this in your code:
xor eax, eax
xor ecx, ecx
.loop:
add eax, 2
inc ecx
cmp ecx, n ;replace n with the number of times you want thing to loop.
jne loop
;rest of your code here
The result will be stored in eax
I'm just learning assembly language, but hope this helps!