include 'if.inc'
; fasm example of writing 16-bit COM program

	org	100h			; code starts at offset 100h
	use16				; use 16-bit code

display_text = 9
	.for	cx,0 to 100
	mov	ah,display_text
	mov	dx,hello
	int	21h
	.endfor
	int	20h

hello db 'Hello world!',0Dh,0Ah,24h
