mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-03-15 10:40:18 +00:00
24 lines
No EOL
844 B
C#
24 lines
No EOL
844 B
C#
namespace ARMeilleure.Decoders
|
|
{
|
|
class OpCodeSimd : OpCode, IOpCodeSimd
|
|
{
|
|
public int Rd { get; }
|
|
public int Rn { get; }
|
|
public int Opc { get; }
|
|
public int Size { get; protected set; }
|
|
|
|
public new static OpCode Create(InstDescriptor inst, ulong address, int opCode, bool inITBlock) => new OpCodeSimd(inst, address, opCode, inITBlock);
|
|
|
|
public OpCodeSimd(InstDescriptor inst, ulong address, int opCode, bool inITBlock) : base(inst, address, opCode, inITBlock)
|
|
{
|
|
Rd = (opCode >> 0) & 0x1f;
|
|
Rn = (opCode >> 5) & 0x1f;
|
|
Opc = (opCode >> 15) & 0x3;
|
|
Size = (opCode >> 22) & 0x3;
|
|
|
|
RegisterSize = ((opCode >> 30) & 1) != 0
|
|
? RegisterSize.Simd128
|
|
: RegisterSize.Simd64;
|
|
}
|
|
}
|
|
} |