mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-10-01 12:30:00 +02:00
24 lines
549 B
C#
24 lines
549 B
C#
|
using ChocolArm64.Instructions;
|
||
|
|
||
|
namespace ChocolArm64.Decoders
|
||
|
{
|
||
|
class OpCodeBReg64 : OpCode64
|
||
|
{
|
||
|
public int Rn { get; private set; }
|
||
|
|
||
|
public OpCodeBReg64(Inst inst, long position, int opCode) : base(inst, position, opCode)
|
||
|
{
|
||
|
int op4 = (opCode >> 0) & 0x1f;
|
||
|
int op2 = (opCode >> 16) & 0x1f;
|
||
|
|
||
|
if (op2 != 0b11111 || op4 != 0b00000)
|
||
|
{
|
||
|
Emitter = InstEmit.Und;
|
||
|
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
Rn = (opCode >> 5) & 0x1f;
|
||
|
}
|
||
|
}
|
||
|
}
|