OpCodeT32ShiftReg.cs 580 B

12345678910111213141516171819
  1. namespace ARMeilleure.Decoders
  2. {
  3. class OpCodeT32ShiftReg : OpCodeT32Alu, IOpCode32AluRsReg
  4. {
  5. public int Rm => Rn;
  6. public int Rs { get; }
  7. public ShiftType ShiftType { get; }
  8. public new static OpCode Create(InstDescriptor inst, ulong address, int opCode) => new OpCodeT32ShiftReg(inst, address, opCode);
  9. public OpCodeT32ShiftReg(InstDescriptor inst, ulong address, int opCode) : base(inst, address, opCode)
  10. {
  11. Rs = (opCode >> 0) & 0xf;
  12. ShiftType = (ShiftType)((opCode >> 21) & 3);
  13. }
  14. }
  15. }