Пример #1
0
 /// <summary>
 /// Gets a register given its index number.
 /// </summary>
 /// <param name="i">Zero-based index of the register.</param>
 /// <returns>
 /// The register instance or null.
 /// </returns>
 public override RegisterStorage GetRegister(int i)
 => PICRegisters.PeekRegisterByIdx(i);
Пример #2
0
 /// <summary>
 /// Gets a register given its index number.
 /// </summary>
 /// <param name="i">Zero-based index of the register.</param>
 /// <returns>
 /// The register instance or null.
 /// </returns>
 public override RegisterStorage GetRegister(StorageDomain domain, BitRange range)
 => PICRegisters.PeekRegisterByIdx(domain - StorageDomain.Register);
Пример #3
0
 /// <summary>
 /// Gets a register given its index number.
 /// </summary>
 /// <param name="i">Zero-based index of the register.</param>
 /// <returns>
 /// The register instance or null.
 /// </returns>
 public override RegisterStorage GetRegister(StorageDomain domain, BitRange range)
 => PICRegisters.GetSubregister(
     PICRegisters.PeekRegisterByIdx(domain - StorageDomain.Register),
     range.Lsb,
     range.Extent) !;