본문내용
bp; 나머지가 0보다 작다면 ebp를 팝한다
dec counter
cmp counter, 0; counter가 0이 될때까지
je L2; counter가 0이 되면 L2로 간다
jmp L3
L2 :
call writeint
call crlf
jmp L3
L3 :
ret 8; 함수를 호출할때마다 스택에서 데이터를 뺀다
Recur ENDP
main PROC
call readint; 32비트 정수를 받음
mov temp1, eax; 첫번째 정수 저장
call readint
mov temp2, eax; 두번째 정수 저장
push temp1
push temp2
call Iter
push temp1
push temp2
call Recur
quit :
exit
main ENDP
END main
● 실행화면
dec counter
cmp counter, 0; counter가 0이 될때까지
je L2; counter가 0이 되면 L2로 간다
jmp L3
L2 :
call writeint
call crlf
jmp L3
L3 :
ret 8; 함수를 호출할때마다 스택에서 데이터를 뺀다
Recur ENDP
main PROC
call readint; 32비트 정수를 받음
mov temp1, eax; 첫번째 정수 저장
call readint
mov temp2, eax; 두번째 정수 저장
push temp1
push temp2
call Iter
push temp1
push temp2
call Recur
quit :
exit
main ENDP
END main
● 실행화면
소개글