OpCodeAluRx.cs 625 B

12345678910111213141516171819
  1. namespace ARMeilleure.Decoders
  2. {
  3. class OpCodeAluRx : OpCodeAlu, IOpCodeAluRx
  4. {
  5. public int Shift { get; }
  6. public int Rm { get; }
  7. public IntType IntType { get; }
  8. public new static OpCode Create(InstDescriptor inst, ulong address, int opCode) => new OpCodeAluRx(inst, address, opCode);
  9. public OpCodeAluRx(InstDescriptor inst, ulong address, int opCode) : base(inst, address, opCode)
  10. {
  11. Shift = (opCode >> 10) & 0x7;
  12. IntType = (IntType)((opCode >> 13) & 0x7);
  13. Rm = (opCode >> 16) & 0x1f;
  14. }
  15. }
  16. }