mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-14 14:26:59 +00:00
22 lines
727 B
C#
22 lines
727 B
C#
|
namespace ARMeilleure.Decoders
|
||
|
{
|
||
|
class OpCodeSystem : OpCode
|
||
|
{
|
||
|
public int Rt { get; private set; }
|
||
|
public int Op2 { get; private set; }
|
||
|
public int CRm { get; private set; }
|
||
|
public int CRn { get; private set; }
|
||
|
public int Op1 { get; private set; }
|
||
|
public int Op0 { get; private set; }
|
||
|
|
||
|
public OpCodeSystem(InstDescriptor inst, ulong address, int opCode) : base(inst, address, opCode)
|
||
|
{
|
||
|
Rt = (opCode >> 0) & 0x1f;
|
||
|
Op2 = (opCode >> 5) & 0x7;
|
||
|
CRm = (opCode >> 8) & 0xf;
|
||
|
CRn = (opCode >> 12) & 0xf;
|
||
|
Op1 = (opCode >> 16) & 0x7;
|
||
|
Op0 = ((opCode >> 19) & 0x1) | 2;
|
||
|
}
|
||
|
}
|
||
|
}
|