mirror of
https://github.com/GreemDev/Ryujinx
synced 2024-11-26 19:52:31 +01:00
27 lines
717 B
C#
27 lines
717 B
C#
|
namespace ARMeilleure.Decoders
|
||
|
{
|
||
|
class OpCodeAluRs : OpCodeAlu, IOpCodeAluRs
|
||
|
{
|
||
|
public int Shift { get; private set; }
|
||
|
public int Rm { get; private set; }
|
||
|
|
||
|
public ShiftType ShiftType { get; private set; }
|
||
|
|
||
|
public OpCodeAluRs(InstDescriptor inst, ulong address, int opCode) : base(inst, address, opCode)
|
||
|
{
|
||
|
int shift = (opCode >> 10) & 0x3f;
|
||
|
|
||
|
if (shift >= GetBitsCount())
|
||
|
{
|
||
|
Instruction = InstDescriptor.Undefined;
|
||
|
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
Shift = shift;
|
||
|
|
||
|
Rm = (opCode >> 16) & 0x1f;
|
||
|
ShiftType = (ShiftType)((opCode >> 22) & 0x3);
|
||
|
}
|
||
|
}
|
||
|
}
|