;; greet.asm ;;
global _start
extern putstr
extern getstr
extern quit

section .data
what	db "What is your name?",10,0
hello	db "Hello ",0
end	db ":)",10,0

section .bss
inp	resb 256
inplen	equ $-inp

section .text
_start:
	push what
	call putstr
	add esp, 4

	push inplen
	push inp
	call getstr
	add esp, 8

	push hello
	call putstr
	add esp, 4

	push inp
	call putstr
	add esp, 4

	push end
	call putstr
	add esp, 4

	jmp .quit

.quit:
	push dword 0
	call quit
