OpCodeSimdShImm.cs 512 B

123456789101112131415161718
  1. using ARMeilleure.Common;
  2. namespace ARMeilleure.Decoders
  3. {
  4. class OpCodeSimdShImm : OpCodeSimd
  5. {
  6. public int Imm { get; }
  7. public new static OpCode Create(InstDescriptor inst, ulong address, int opCode) => new OpCodeSimdShImm(inst, address, opCode);
  8. public OpCodeSimdShImm(InstDescriptor inst, ulong address, int opCode) : base(inst, address, opCode)
  9. {
  10. Imm = (opCode >> 16) & 0x7f;
  11. Size = BitUtils.HighestBitSetNibble(Imm >> 3);
  12. }
  13. }
  14. }