aboutsummaryrefslogtreecommitdiff
path: root/ARMeilleure/Decoders/OpCodeException.cs
blob: 6b72138ee6ce3d35b495adb1bf528249abcf10c2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
namespace ARMeilleure.Decoders
{
    class OpCodeException : OpCode
    {
        public int Id { get; }

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

        public OpCodeException(InstDescriptor inst, ulong address, int opCode) : base(inst, address, opCode)
        {
            Id = (opCode >> 5) & 0xffff;
        }
    }
}