Fixing a hardware bug in software (65C51 UART)