Answer the question
In order to leave comments, you need to log in
The sum of a sequence of numbers in assembler. Where is the mistake?
I wrote a program that was supposed to find the sum of a sequence of numbers, but it does not work correctly.
Can you tell me where is the mistake?
section .text
main:
xor eax, eax
xor ecx, ecx
push 20
call ssn
ssn:
pop ecx
L1:
add eax, ecx
loop L1
ret
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question