mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-10-01 12:30:00 +02:00
2f16491712
* Get rid of Reflection.Emit dependency on CPU and Shader projects * Remove useless private sets * Missed those due to the alignment
37 lines
1 KiB
C#
37 lines
1 KiB
C#
namespace ARMeilleure.Decoders
|
|
{
|
|
class OpCode32SimdMemImm : OpCode32, IOpCode32Simd
|
|
{
|
|
public int Vd { get; }
|
|
public int Rn { get; }
|
|
public int Size { get; }
|
|
public bool Add { get; }
|
|
public int Immediate { get; }
|
|
|
|
public new static OpCode Create(InstDescriptor inst, ulong address, int opCode) => new OpCode32SimdMemImm(inst, address, opCode);
|
|
|
|
public OpCode32SimdMemImm(InstDescriptor inst, ulong address, int opCode) : base(inst, address, opCode)
|
|
{
|
|
Immediate = opCode & 0xff;
|
|
|
|
Rn = (opCode >> 16) & 0xf;
|
|
Size = (opCode >> 8) & 0x3;
|
|
|
|
Immediate <<= (Size == 1) ? 1 : 2;
|
|
|
|
bool u = (opCode & (1 << 23)) != 0;
|
|
Add = u;
|
|
|
|
bool single = Size != 3;
|
|
|
|
if (single)
|
|
{
|
|
Vd = ((opCode >> 22) & 0x1) | ((opCode >> 11) & 0x1e);
|
|
}
|
|
else
|
|
{
|
|
Vd = ((opCode >> 18) & 0x10) | ((opCode >> 12) & 0xf);
|
|
}
|
|
}
|
|
}
|
|
}
|