mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-18 17:46:40 +00:00
28 lines
814 B
C#
28 lines
814 B
C#
|
namespace ARMeilleure.Decoders
|
|||
|
{
|
|||
|
class OpCodeT16ShiftReg : OpCodeT16, IOpCode32AluRsReg
|
|||
|
{
|
|||
|
public int Rm { get; }
|
|||
|
public int Rs { get; }
|
|||
|
public int Rd { get; }
|
|||
|
|
|||
|
public int Rn { get; }
|
|||
|
|
|||
|
public ShiftType ShiftType { get; }
|
|||
|
|
|||
|
public bool? SetFlags => null;
|
|||
|
|
|||
|
public new static OpCode Create(InstDescriptor inst, ulong address, int opCode) => new OpCodeT16ShiftReg(inst, address, opCode);
|
|||
|
|
|||
|
public OpCodeT16ShiftReg(InstDescriptor inst, ulong address, int opCode) : base(inst, address, opCode)
|
|||
|
{
|
|||
|
Rd = (opCode >> 0) & 7;
|
|||
|
Rm = (opCode >> 0) & 7;
|
|||
|
Rn = (opCode >> 3) & 7;
|
|||
|
Rs = (opCode >> 3) & 7;
|
|||
|
|
|||
|
ShiftType = (ShiftType)(((opCode >> 6) & 1) | ((opCode >> 7) & 2));
|
|||
|
}
|
|||
|
}
|
|||
|
}
|