.model small
.stack 100h
.data
	base equ 3f8h
	count2 equ 3f9h
	control equ 3fbh
	status equ 3fdh
	fifo equ 3fah
.code
	;initialize the UART
	mov al,80h
	mov dx,control
	out dx,al
	mov al,0ch
	mov dx,base
	out dx,al
	mov al,0
	mov dx,count2
	out dx,al
	mov al,03h
	mov dx,control
	out dx,al
	mov al,07h
	mov dx,fifo
	out dx,al
l1:
	mov ah,1
	int 21h
	mov ah,al
t:
	mov dx,status
	in al,dx
	test al,20h
	jz t
	mov al,ah
	mov dx,base
	out dx,al
	jmp l1
	
	mov ah,4ch
	int 21h
end
	
	
	
	
	