aboutsummaryrefslogtreecommitdiff
path: root/ARMeilleure/Decoders/OpCode32AluRsImm.cs
blob: 779d6cecf8b12c92503751810982af5791df1d7f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
namespace ARMeilleure.Decoders
{
    class OpCode32AluRsImm : OpCode32Alu
    {
        public int Rm  { get; private set; }
        public int Imm { get; private set; }

        public ShiftType ShiftType { get; private set; }

        public OpCode32AluRsImm(InstDescriptor inst, ulong address, int opCode) : base(inst, address, opCode)
        {
            Rm  = (opCode >> 0) & 0xf;
            Imm = (opCode >> 7) & 0x1f;

            ShiftType = (ShiftType)((opCode >> 5) & 3);
        }
    }
}