OpCodeSimdMemLit64.cs 783 B

12345678910111213141516171819202122232425262728293031
  1. using ChocolArm64.Instructions;
  2. namespace ChocolArm64.Decoders
  3. {
  4. class OpCodeSimdMemLit64 : OpCode64, IOpCodeSimd64, IOpCodeLit64
  5. {
  6. public int Rt { get; private set; }
  7. public long Imm { get; private set; }
  8. public int Size { get; private set; }
  9. public bool Signed => false;
  10. public bool Prefetch => false;
  11. public OpCodeSimdMemLit64(Inst inst, long position, int opCode) : base(inst, position, opCode)
  12. {
  13. int opc = (opCode >> 30) & 3;
  14. if (opc == 3)
  15. {
  16. Emitter = InstEmit.Und;
  17. return;
  18. }
  19. Rt = opCode & 0x1f;
  20. Imm = position + DecoderHelper.DecodeImmS19_2(opCode);
  21. Size = opc + 2;
  22. }
  23. }
  24. }