AH = 02h: Receive One Character

This function returns the character received by the serial port. The sequence of operations performed is

Either of the above loops can result in a timeout error.