Ypsilon.Emulation.Processor.YCPU.BIT C# (CSharp) Méthode

BIT() private méthode

private BIT ( ushort operand ) : void
operand ushort
Résultat void
        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;
            }
        }