mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2024-12-23 16:15:47 +00:00
24 lines
No EOL
546 B
C#
24 lines
No EOL
546 B
C#
using ChocolArm64.Instruction;
|
|
|
|
namespace ChocolArm64.Decoder
|
|
{
|
|
class AOpCodeBReg : AOpCode
|
|
{
|
|
public int Rn { get; private set; }
|
|
|
|
public AOpCodeBReg(AInst 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 = AInstEmit.Und;
|
|
|
|
return;
|
|
}
|
|
|
|
Rn = (OpCode >> 5) & 0x1f;
|
|
}
|
|
}
|
|
} |