aboutsummaryrefslogtreecommitdiff
path: root/src/ARMeilleure/Decoders/OpCodeMemEx.cs
blob: 1dc73140fa7e81e63d818dc619dbbbc22b5bf776 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
namespace ARMeilleure.Decoders
{
    class OpCodeMemEx : OpCodeMem
    {
        public int Rt2 { get; }
        public int Rs { get; }

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

        public OpCodeMemEx(InstDescriptor inst, ulong address, int opCode) : base(inst, address, opCode)
        {
            Rt2 = (opCode >> 10) & 0x1f;
            Rs = (opCode >> 16) & 0x1f;
        }
    }
}