aboutsummaryrefslogtreecommitdiff
path: root/ChocolArm64/Decoders/OpCodeSimdShImm64.cs
blob: d4cd88d13b1e535dd9aab40318ef1135c222a7d6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
using ChocolArm64.Instructions;

namespace ChocolArm64.Decoders
{
    class OpCodeSimdShImm64 : OpCodeSimd64
    {
        public int Imm { get; private set; }

        public OpCodeSimdShImm64(Inst inst, long position, int opCode) : base(inst, position, opCode)
        {
            Imm = (opCode >> 16) & 0x7f;

            Size = BitUtils.HighestBitSetNibble(Imm >> 3);
        }
    }
}