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

namespace ChocolArm64.Decoders
{
    class OpCode32MemImm8 : OpCode32Mem
    {
        public OpCode32MemImm8(Inst inst, long position, int opCode) : base(inst, position, opCode)
        {
            int imm4L = (opCode >> 0) & 0xf;
            int imm4H = (opCode >> 8) & 0xf;

            Imm = imm4L | (imm4H << 4);
        }
    }
}