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

BitPatternSET() private method

private BitPatternSET ( ushort operand, ushort &value, RegGeneral &destination ) : void
operand ushort
value ushort
destination RegGeneral
return void
        private void BitPatternSET(ushort operand, out ushort value, out RegGeneral destination)
        {
            destination = (RegGeneral)((operand & 0xE000) >> 13);
            value = (ushort)((operand & 0x1F00) >> 8);
            if ((operand & 0x0001) == 1) {
                if (value <= 0x0A)
                    value = (ushort)(0x0001 << (value + 0x05));
                else
                    value = (ushort)(0xFFE0 + value);
            }
        }