mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-03-16 07:40:19 +00:00
27 lines
893 B
C#
27 lines
893 B
C#
|
namespace ARMeilleure.Decoders
|
|||
|
{
|
|||
|
class OpCodeT16MemReg : OpCodeT16, IOpCode32MemReg
|
|||
|
{
|
|||
|
public int Rm { get; }
|
|||
|
public int Rt { get; }
|
|||
|
public int Rn { get; }
|
|||
|
|
|||
|
public bool WBack => false;
|
|||
|
public bool IsLoad { get; }
|
|||
|
public bool Index => true;
|
|||
|
public bool Add => true;
|
|||
|
|
|||
|
public int Immediate => throw new System.InvalidOperationException();
|
|||
|
|
|||
|
public new static OpCode Create(InstDescriptor inst, ulong address, int opCode, bool inITBlock) => new OpCodeT16MemReg(inst, address, opCode, inITBlock);
|
|||
|
|
|||
|
public OpCodeT16MemReg(InstDescriptor inst, ulong address, int opCode, bool inITBlock) : base(inst, address, opCode, inITBlock)
|
|||
|
{
|
|||
|
Rt = (opCode >> 0) & 7;
|
|||
|
Rn = (opCode >> 3) & 7;
|
|||
|
Rm = (opCode >> 6) & 7;
|
|||
|
|
|||
|
IsLoad = ((opCode >> 9) & 7) >= 3;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|