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

BitPatternBTI() private method

private BitPatternBTI ( ushort operand, ushort &value, RegGeneral &destination ) : void
operand ushort
value ushort
destination RegGeneral
return void
        private void BitPatternBTI(ushort operand, out ushort value, out RegGeneral destination)
        {
            destination = (RegGeneral)((operand & 0xE000) >> 13);
            RegGeneral source = (RegGeneral)((operand & 0x1C00) >> 10);
            bool asRegister = (operand & 0x0100) != 0;
            value = asRegister ?
                (ushort)(R[(int)source] & 0x000F) :
                (ushort)((operand & 0x1E00) >> 9);
        }