OpCode32SimdRegS.cs 543 B

1234567891011121314151617181920
  1. namespace ARMeilleure.Decoders
  2. {
  3. class OpCode32SimdRegS : OpCode32SimdS
  4. {
  5. public int Vn { get; private set; }
  6. public OpCode32SimdRegS(InstDescriptor inst, ulong address, int opCode) : base(inst, address, opCode)
  7. {
  8. bool single = Size != 3;
  9. if (single)
  10. {
  11. Vn = ((opCode >> 7) & 0x1) | ((opCode >> 15) & 0x1e);
  12. }
  13. else
  14. {
  15. Vn = ((opCode >> 3) & 0x10) | ((opCode >> 16) & 0xf);
  16. }
  17. }
  18. }
  19. }