OpCode32AluBf.cs 649 B

12345678910111213141516171819202122
  1. namespace ARMeilleure.Decoders
  2. {
  3. class OpCode32AluBf : OpCode32, IOpCode32AluBf
  4. {
  5. public int Rd { get; }
  6. public int Rn { get; }
  7. public int Msb { get; }
  8. public int Lsb { get; }
  9. public new static OpCode Create(InstDescriptor inst, ulong address, int opCode) => new OpCode32AluBf(inst, address, opCode);
  10. public OpCode32AluBf(InstDescriptor inst, ulong address, int opCode) : base(inst, address, opCode)
  11. {
  12. Rd = (opCode >> 12) & 0xf;
  13. Rn = (opCode >> 0) & 0xf;
  14. Msb = (opCode >> 16) & 0x1f;
  15. Lsb = (opCode >> 7) & 0x1f;
  16. }
  17. }
  18. }