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

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

        public OpCodeT16Exception(InstDescriptor inst, ulong address, int opCode) : base(inst, address, opCode)
        {
            Id = opCode & 0xFF;
        }
    }
}