Added ZERO and NEGATIVE flag setting