How can I setup an RT with valid and illegal subaddresses using BusTools/1553-API?

This is a basic example program that sets up a simple RT Simulation. Simulates RT1 with two subaddresses, SA1 RECEIVE and SA2 TRANSMIT.

All other subaddresses are illegal. For commands to illegal subaddresses, the RT will respond with the MESSAGE ERROR bit set in the status word, and if it was a TRANSMIT command, the RT will not send any data words.