The Australian AIP requires the use of standby when changing codes and explains why.
Standby is also required until entering the runway on departure and immediately after landing.
Wrong.
In the jet I fly the TCAS/transponder stops transmitting when a code is changed until last digit is set.
The transponder is turned on prior to taxi and turned off on the bay.