OpCodeSimdCvt64.cs 779 B

12345678910111213141516171819202122232425262728293031
  1. using ChocolArm64.Instructions;
  2. using ChocolArm64.State;
  3. namespace ChocolArm64.Decoders
  4. {
  5. class OpCodeSimdCvt64 : OpCodeSimd64
  6. {
  7. public int FBits { get; private set; }
  8. public OpCodeSimdCvt64(Inst inst, long position, int opCode) : base(inst, position, opCode)
  9. {
  10. //TODO:
  11. //Und of Fixed Point variants.
  12. int scale = (opCode >> 10) & 0x3f;
  13. int sf = (opCode >> 31) & 0x1;
  14. /*if (Type != SF && !(Type == 2 && SF == 1))
  15. {
  16. Emitter = AInstEmit.Und;
  17. return;
  18. }*/
  19. FBits = 64 - scale;
  20. RegisterSize = sf != 0
  21. ? State.RegisterSize.Int64
  22. : State.RegisterSize.Int32;
  23. }
  24. }
  25. }