OpCode32AluRsImm.cs 526 B

1234567891011121314151617181920
  1. using ChocolArm64.Instructions;
  2. namespace ChocolArm64.Decoders
  3. {
  4. class OpCode32AluRsImm : OpCode32Alu
  5. {
  6. public int Rm { get; private set; }
  7. public int Imm { get; private set; }
  8. public ShiftType ShiftType { get; private set; }
  9. public OpCode32AluRsImm(Inst inst, long position, int opCode) : base(inst, position, opCode)
  10. {
  11. Rm = (opCode >> 0) & 0xf;
  12. Imm = (opCode >> 7) & 0x1f;
  13. ShiftType = (ShiftType)((opCode >> 5) & 3);
  14. }
  15. }
  16. }