OpCodeSimdReg.cs 596 B

123456789101112131415161718
  1. namespace ARMeilleure.Decoders
  2. {
  3. class OpCodeSimdReg : OpCodeSimd
  4. {
  5. public bool Bit3 { get; }
  6. public int Ra { get; }
  7. public int Rm { get; protected set; }
  8. public new static OpCode Create(InstDescriptor inst, ulong address, int opCode) => new OpCodeSimdReg(inst, address, opCode);
  9. public OpCodeSimdReg(InstDescriptor inst, ulong address, int opCode) : base(inst, address, opCode)
  10. {
  11. Bit3 = ((opCode >> 3) & 0x1) != 0;
  12. Ra = (opCode >> 10) & 0x1f;
  13. Rm = (opCode >> 16) & 0x1f;
  14. }
  15. }
  16. }