
uart_rx_loop:
    mov   dptr,#LSR
    movx  a,@dptr
    jnb   acc.1,uart_rx_loop   
uart_rx_avail:
    mov   dptr,#RHR
    movx  a,@dptr
