aboutsummaryrefslogtreecommitdiff
path: root/ARMeilleure/Decoders/OpCodeT32MemLdEx.cs
blob: c8eb36b3ee69eb4462929f93b9f964ddcf9e1756 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
namespace ARMeilleure.Decoders
{
    class OpCodeT32MemLdEx : OpCodeT32, IOpCode32MemEx
    {
        public int Rd => 0;
        public int Rt { get; }
        public int Rt2 { get; }
        public int Rn { get; }

        public bool WBack => false;
        public bool IsLoad => true;
        public bool Index => false;
        public bool Add => false;

        public int Immediate => 0;

        public new static OpCode Create(InstDescriptor inst, ulong address, int opCode) => new OpCodeT32MemLdEx(inst, address, opCode);

        public OpCodeT32MemLdEx(InstDescriptor inst, ulong address, int opCode) : base(inst, address, opCode)
        {
            Rt2 = (opCode >> 8) & 0xf;
            Rt = (opCode >> 12) & 0xf;
            Rn = (opCode >> 16) & 0xf;
        }
    }
}