[BITS 32]

[section .bss]

[section .text]

global main
extern printf

main:
	push ebp
	mov ebp,esp
	sub esp,4
	mov [ebp-4],dword 0
.TOP:
	mov eax,[ebp-4]
	cmp eax,3
	je .END
	push msg 
	mov ecx,printf
	call ecx
	add esp,4
	inc dword [ebp-4]
	jmp .TOP
.END:
	mov eax,0
	mov esp,ebp
	pop ebp
	ret

[section .data]

msg: db 'Hello, world!',10,0

