mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-10-01 12:30:00 +02: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);
|
||
|
}
|
||
|
}
|
||
|
}
|