OpCodeT32MemStEx.cs 830 B

123456789101112131415161718192021222324252627
  1. namespace ARMeilleure.Decoders
  2. {
  3. class OpCodeT32MemStEx : OpCodeT32, IOpCode32MemEx
  4. {
  5. public int Rd { get; }
  6. public int Rt { get; }
  7. public int Rt2 { get; }
  8. public int Rn { get; }
  9. public bool WBack => false;
  10. public bool IsLoad => false;
  11. public bool Index => false;
  12. public bool Add => false;
  13. public int Immediate => 0;
  14. public new static OpCode Create(InstDescriptor inst, ulong address, int opCode) => new OpCodeT32MemStEx(inst, address, opCode);
  15. public OpCodeT32MemStEx(InstDescriptor inst, ulong address, int opCode) : base(inst, address, opCode)
  16. {
  17. Rd = (opCode >> 0) & 0xf;
  18. Rt2 = (opCode >> 8) & 0xf;
  19. Rt = (opCode >> 12) & 0xf;
  20. Rn = (opCode >> 16) & 0xf;
  21. }
  22. }
  23. }