aboutsummaryrefslogtreecommitdiff
path: root/ChocolArm64/Decoder/AOpCodeSimdShImm.cs
blob: 6c8398817cbb10bdb7e9778b2739b96c16f9b7e3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
using ChocolArm64.Instruction;

namespace ChocolArm64.Decoder
{
    class AOpCodeSimdShImm : AOpCodeSimd
    {
        public int Imm { get; private set; }

        public AOpCodeSimdShImm(AInst Inst, long Position, int OpCode) : base(Inst, Position, OpCode)
        {
            Imm = (OpCode >> 16) & 0x7f;

            Size = ABitUtils.HighestBitSet32(Imm >> 3);
        }
    }
}