Ypsilon.Emulation.Processor.YCPU.BIT C# (CSharp) Method

BIT() private method

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