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

namespace ChocolArm64.Decoders
{
    class OpCodeSimdMemImm64 : OpCodeMemImm64, IOpCodeSimd64
    {
        public OpCodeSimdMemImm64(Inst inst, long position, int opCode) : base(inst, position, opCode)
        {
            Size |= (opCode >> 21) & 4;

            if (!WBack && !Unscaled && Size >= 4)
            {
                Imm <<= 4;
            }

            Extend64 = false;
        }
    }
}