mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-12-27 13:31:21 -08: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);
|
||
|
}
|
||
|
}
|
||
|
}
|