aboutsummaryrefslogtreecommitdiff
path: root/ARMeilleure/Decoders/OpCodeT16AluUx.cs
blob: 11d3a8fe89c883043d3d568b403294833d1a5ebb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
namespace ARMeilleure.Decoders
{
    class OpCodeT16AluUx : OpCodeT16, IOpCode32AluUx
    {
        public int Rm { get; }
        public int Rd { get; }
        public int Rn { get; }

        public bool? SetFlags => false;

        public int RotateBits => 0;
        public bool Add => false;

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

        public OpCodeT16AluUx(InstDescriptor inst, ulong address, int opCode) : base(inst, address, opCode)
        {
            Rd = (opCode >> 0) & 0x7;
            Rm = (opCode >> 3) & 0x7;
        }
    }
}