mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-12-05 00:07:25 +00: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);
|
||
|
}
|
||
|
}
|
||
|
}
|