어셈블리 언어를 처음 사용합니다. 그래서 작은 프로그램을 작성하기 시작했다. "*"피라미드를 인쇄하기위한 기본 루프 프로그램을 작성했습니다. 그러나 프로그램은 무한 루프로 진행됩니다. 아래 코드를 붙여 넣습니다. 누군가 도와 주실 수 있습니까? 시작 : 루프가 무한 루프로 반복됩니다.
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
끝
당신은 아마 매크로 혼란 조립 설명서입니다
피라미드보다 조금 더 필요합니다. 여기 - http://www.dreamincode.net/forums/topic/302352-nasmwindows-lets-create-a-pyramid-of-characters/ 피라미드를 만드는 방법을 단계별로 설명합니다. – Gunner