Read N from keybord. Double even numbers. Using LOOP instruction
- From: "aeter" <A.eleter@xxxxxxxxx>
- Date: 25 Feb 2007 14:35:47 -0800
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
.
- Follow-Ups:
- Re: Read N from keybord. Double even numbers. Using LOOP instruction
- From: //\\\\o//\\\\annabee
- Re: Read N from keybord. Double even numbers. Using LOOP instruction
- From: Frank Kotler
- Re: Read N from keybord. Double even numbers. Using LOOP instruction
- From: SpooK
- Re: Read N from keybord. Double even numbers. Using LOOP instruction
- From: Wolfgang Kern
- Re: Read N from keybord. Double even numbers. Using LOOP instruction
- Prev by Date: Re: Help me about this question.
- Next by Date: Re: Universal Kernel Debugger
- Previous by thread: Yasm 0.6.0 (Default)
- Next by thread: Re: Read N from keybord. Double even numbers. Using LOOP instruction
- Index(es):
Relevant Pages
|