From Learn @ Cemetech
NEG negates the accumulator.
N flag is set, all other flags modified by definition.
This command literally subtracts A from 0. This explains what "modified by definition" means in the Effects section above.