OpCodeT16AluImm8.cs 510 B

12345678910111213141516171819202122
  1. using ChocolArm64.Instructions;
  2. namespace ChocolArm64.Decoders
  3. {
  4. class OpCodeT16AluImm8 : OpCodeT16, IOpCode32Alu
  5. {
  6. private int _rdn;
  7. public int Rd => _rdn;
  8. public int Rn => _rdn;
  9. public bool SetFlags => false;
  10. public int Imm { get; private set; }
  11. public OpCodeT16AluImm8(Inst inst, long position, int opCode) : base(inst, position, opCode)
  12. {
  13. Imm = (opCode >> 0) & 0xff;
  14. _rdn = (opCode >> 8) & 0x7;
  15. }
  16. }
  17. }