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

BitPatternSHF() private method

private BitPatternSHF ( ushort operand, ushort &value, RegGeneral &destination ) : void
operand ushort
value ushort
destination RegGeneral
return void
        private void BitPatternSHF(ushort operand, out ushort value, out RegGeneral destination)
        {
            destination = (RegGeneral)((operand & 0xE000) >> 13);
            if ((operand & 0x1000) == 0) {
                value = (ushort)(((operand & 0x0F00) >> 8) + 1);
            }
            else {
                value = R[(operand & 0x0700) >> 8];
            }
        }