private void BIT(ushort operand) { ushort value; RegGeneral destination; BitPatternBTI(operand, out value, out destination); ushort bit = (ushort)Math.Pow(2, value); if ((R[(int)destination] & bit) != 0) { FL_Z = false; } else { FL_Z = true; } }