I am new to assembly language. so started writing small programs. I have written a basic loop program to print "*" pyramid. but the program goes into infinite loop. I am pasting the code below. can someone please help? start:
mov ecx,2
invoke StdOut, addr startProg
label_1:
.while ecx > 0
push ecx
pop aInt
.while aInt > 0
invoke StdOut, addr star
sub aInt, 1
.endw
dec ecx
.endw
;invoke StdOut, addr newline
jmp out_
out_:
invoke ExitProcess, 0
end start