| | |
Two loops
![]() |
•
•
Join Date: Feb 2007
Posts: 46
Reputation:
Solved Threads: 0
I have a problem, and it's starts with doing two loops. I do not know how to do it. Could anyone just show me how to use 2 loops. Could you show me how to use a nested loop that will add numbers.
Title COLOR MATRIX
include Irvine32.inc
.code
main PROC
mov eax, 0
mov ecx,3
OUTER:
inc eax
call Writeint
INNER:
inc eax
call Writeint
loop INNER
loop OUTER;
exit
main ENDP
END main asm Syntax (Toggle Plain Text)
Outer: inc eax call Writeint push ecx mov ecx, 3 Inner: inc eax call Writeint loop Inner pop ecx loop Outer
![]() |
Similar Threads
- Program Help Using For Nested Loops (C++)
- Need Advice on for loops with vowels (Java)
- Loops (C++)
- Need some help with my do-while and while loops (Java)
- Help with loops (Java)
- merged:nesting loops (C++)
- help for program involving switch loops and file (C++)
Other Threads in the Assembly Forum
- Previous Thread: Question about Proper Code
- Next Thread: NAND functions
| Thread Tools | Search this Thread |





