It might be worth mentioning that, if you squawk 7600 for what turns out to be only a transmitter failure, ATC will probably use small changes to the squawk code in order to establish that you are hearing them. They may well request further adjustments to the code in order to learn more about you, e.g. whether you have any other problems or not.