run	jnb	RI,	$	; Wait for the 8051 to set the RI flag
	mov	A,	SBUF	; Read the character from the serial port
	clr	RI		; set for next character
SEND	clr	TI		; Be sure the bit is initially clear
	mov	SBUF,	A	; send character
	jnb	TI,	$	; Pause until the TI bit is set. 
	acall	WRITE_LCD
	sjmp run