[BITS 16]
org 256

section .text

start:
	push bp
	mov bp,sp
	sub sp,2
	mov [bp-2],word 0
.L1:
	push hello
	call print
	add sp,2
	inc word [bp-2]
	mov ax,[bp-2]
	cmp ax,3
	jl .L1
	call exit
	mov ax,0
	leave
	ret

exit:
	push bp
	mov bp,sp
	mov ah,76
	int 33
	leave
	ret

print:
	push bp
	mov bp,sp
	mov dx,[bp+4]
	mov ah,9
	int 33
	leave
	ret

section .data

hello: db 'Hello, world!',10,'$'

section .bss

