Read N from keybord. Double even numbers. Using LOOP instruction



Hello im new to this group and new to assembly langage.
i have a simple question how can i double even number?
my code so far:
INCLUDE Irvine32.inc
..code
main PROC ; Label for the start of the main program
mov edx, 0
mov ebx, 1
mov ecx, 10 ;loop can be excuted 10 times
label1:
add edx, ebx
add ebx, 1
inc ebx
jmp label1
loop label1

exit
main ENDP
END main
thanks

.



Relevant Pages