Move solution and projects to src
This commit is contained in:
21
src/ARMeilleure/Decoders/OpCodeSimdCvt.cs
Normal file
21
src/ARMeilleure/Decoders/OpCodeSimdCvt.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
namespace ARMeilleure.Decoders
|
||||
{
|
||||
class OpCodeSimdCvt : OpCodeSimd
|
||||
{
|
||||
public int FBits { get; }
|
||||
|
||||
public new static OpCode Create(InstDescriptor inst, ulong address, int opCode) => new OpCodeSimdCvt(inst, address, opCode);
|
||||
|
||||
public OpCodeSimdCvt(InstDescriptor inst, ulong address, int opCode) : base(inst, address, opCode)
|
||||
{
|
||||
int scale = (opCode >> 10) & 0x3f;
|
||||
int sf = (opCode >> 31) & 0x1;
|
||||
|
||||
FBits = 64 - scale;
|
||||
|
||||
RegisterSize = sf != 0
|
||||
? RegisterSize.Int64
|
||||
: RegisterSize.Int32;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user