Changes
/* ADDRESS:&FF07 IN/OUT UART REG2 */ formatting...
</pre>
If you want to transmit a character in a full duplex or a half duplex communication then you just send the character to the address &FF08 and the flags are automatically checked by the program of the microcontroller!
<pre>
BASIC: A A=X X OUT &FF08,A
</pre>
<pre>
ASSEMBLY: LD LD BC,&FF08 LD LD A,X OUT OUT(C),A
</pre>
To select the type of communication you want to have (full duplex, half duplex or 485 halfduplex), you can use UART REG3.
=== ADDRESS:&FF09 IN RX – WAIT UDR CHARACTER ===