Setting the Accumulator to 0
When dealing with loading 0 into the Accumulator, there's several ways to do it.
The downside to the above options is that they also affect the flags. However, they are only 1 byte long not 2 and are both 3 T-states faster.
If inverting A, i.e. swapping each bit from 1 to 0 and vis-versa then instead of
XOR 0xFF use
CPL instead. It's both faster, 1 byte and that's all that instruction does.
The downside is that
CPL does not affect the flags whilst