OpCodeSimdCvt64.cs 537 B

123456789101112131415161718192021
  1. using ChocolArm64.Instructions;
  2. namespace ChocolArm64.Decoders
  3. {
  4. class OpCodeSimdCvt64 : OpCodeSimd64
  5. {
  6. public int FBits { get; private set; }
  7. public OpCodeSimdCvt64(Inst inst, long position, int opCode) : base(inst, position, opCode)
  8. {
  9. int scale = (opCode >> 10) & 0x3f;
  10. int sf = (opCode >> 31) & 0x1;
  11. FBits = 64 - scale;
  12. RegisterSize = sf != 0
  13. ? State.RegisterSize.Int64
  14. : State.RegisterSize.Int32;
  15. }
  16. }
  17. }