OpCode32SimdSpecial.cs 706 B

12345678910111213141516171819
  1. namespace ARMeilleure.Decoders
  2. {
  3. class OpCode32SimdSpecial : OpCode32
  4. {
  5. public int Rt { get; }
  6. public int Sreg { get; }
  7. public new static OpCode Create(InstDescriptor inst, ulong address, int opCode) => new OpCode32SimdSpecial(inst, address, opCode, false);
  8. public static OpCode CreateT32(InstDescriptor inst, ulong address, int opCode) => new OpCode32SimdSpecial(inst, address, opCode, true);
  9. public OpCode32SimdSpecial(InstDescriptor inst, ulong address, int opCode, bool isThumb) : base(inst, address, opCode)
  10. {
  11. IsThumb = isThumb;
  12. Rt = (opCode >> 12) & 0xf;
  13. Sreg = (opCode >> 16) & 0xf;
  14. }
  15. }
  16. }