OpCode32AluRsReg.cs 618 B

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