mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-11-23 02:25:12 +00:00
2f16491712
* Get rid of Reflection.Emit dependency on CPU and Shader projects * Remove useless private sets * Missed those due to the alignment
24 lines
No EOL
653 B
C#
24 lines
No EOL
653 B
C#
namespace ARMeilleure.Decoders
|
|
{
|
|
class OpCodeBReg : OpCode
|
|
{
|
|
public int Rn { get; }
|
|
|
|
public new static OpCode Create(InstDescriptor inst, ulong address, int opCode) => new OpCodeBReg(inst, address, opCode);
|
|
|
|
public OpCodeBReg(InstDescriptor inst, ulong address, int opCode) : base(inst, address, opCode)
|
|
{
|
|
int op4 = (opCode >> 0) & 0x1f;
|
|
int op2 = (opCode >> 16) & 0x1f;
|
|
|
|
if (op2 != 0b11111 || op4 != 0b00000)
|
|
{
|
|
Instruction = InstDescriptor.Undefined;
|
|
|
|
return;
|
|
}
|
|
|
|
Rn = (opCode >> 5) & 0x1f;
|
|
}
|
|
}
|
|
} |