Simplify ALU Z-flag calculation