2018-02-04 23:08:20 +00:00
|
|
|
using ChocolArm64.Instruction;
|
|
|
|
|
|
|
|
namespace ChocolArm64.Decoder
|
|
|
|
{
|
2018-02-09 20:14:47 +00:00
|
|
|
class AOpCodeSimdShImm : AOpCodeSimd
|
2018-02-04 23:08:20 +00:00
|
|
|
{
|
2018-02-09 20:14:47 +00:00
|
|
|
public int Imm { get; private set; }
|
2018-02-04 23:08:20 +00:00
|
|
|
|
2018-02-09 20:14:47 +00:00
|
|
|
public AOpCodeSimdShImm(AInst Inst, long Position, int OpCode) : base(Inst, Position, OpCode)
|
2018-02-04 23:08:20 +00:00
|
|
|
{
|
|
|
|
Imm = (OpCode >> 16) & 0x7f;
|
|
|
|
|
2018-09-08 18:24:29 +01:00
|
|
|
Size = ABitUtils.HighestBitSetNibble(Imm >> 3);
|
2018-02-04 23:08:20 +00:00
|
|
|
}
|
|
|
|
}
|
2018-09-08 18:24:29 +01:00
|
|
|
}
|