本文整理汇总了C#中SharpAssembler.Architectures.X86.Operands.RegisterOperand类的典型用法代码示例。如果您正苦于以下问题:C# RegisterOperand类的具体用法?C# RegisterOperand怎么用?C# RegisterOperand使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
RegisterOperand类属于SharpAssembler.Architectures.X86.Operands命名空间,在下文中一共展示了RegisterOperand类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Inc
/// <summary>
/// Initializes a new instance of the <see cref="Inc"/> class.
/// </summary>
/// <param name="subject">The subject register operand.</param>
public Inc(RegisterOperand subject)
: this((Operand)subject)
{
#region Contract
Contract.Requires<ArgumentNullException>(subject != null);
#endregion
}
示例2: JmpNear
/// <summary>
/// Initializes a new instance of the <see cref="JmpNear"/> class.
/// </summary>
/// <param name="target">The register containing the new near jump target address.</param>
public JmpNear(RegisterOperand target)
: this((Operand)target)
{
#region Contract
Contract.Requires<ArgumentNullException>(target != null);
#endregion
}
示例3: Mul
/// <summary>
/// Initializes a new instance of the <see cref="Mul"/> class.
/// </summary>
/// <param name="multiplier">The multiplier.</param>
public Mul(RegisterOperand multiplier)
: this((Operand)multiplier)
{
#region Contract
Contract.Requires<ArgumentNullException>(multiplier != null);
#endregion
}
示例4: Pop
/// <summary>
/// Initializes a new instance of the <see cref="Pop"/> class.
/// </summary>
/// <param name="destination">The destination memory operand.</param>
public Pop(RegisterOperand destination)
: this((Operand)destination)
{
#region Contract
Contract.Requires<ArgumentNullException>(destination != null);
#endregion
}
示例5: In
/// <summary>
/// Initializes a new instance of the <see cref="In"/> class.
/// </summary>
/// <param name="port">The port.</param>
public In(RegisterOperand port)
: this((Operand)port)
{
#region Contract
Contract.Requires<ArgumentNullException>(port != null);
#endregion
}
示例6: Not
/// <summary>
/// Initializes a new instance of the <see cref="Not"/> class.
/// </summary>
/// <param name="value">The value.</param>
public Not(RegisterOperand value)
: this((Operand)value)
{
#region Contract
Contract.Requires<ArgumentNullException>(value != null);
#endregion
}
示例7: Bsf
/// <summary>
/// Initializes a new instance of the <see cref="Bsf"/> class.
/// </summary>
/// <param name="destination">The register in which the bit's index will be stored.</param>
/// <param name="subject">The register operand which is checked.</param>
public Bsf(RegisterOperand destination, RegisterOperand subject)
: this(destination, (Operand)subject)
{
#region Contract
Contract.Requires<ArgumentNullException>(destination != null);
Contract.Requires<ArgumentNullException>(subject != null);
#endregion
}
示例8: Popcnt
/// <summary>
/// Initializes a new instance of the <see cref="Popcnt"/> class.
/// </summary>
/// <param name="destination">The register in which the bit's index will be stored.</param>
/// <param name="subject">The memory operand which is checked.</param>
public Popcnt(RegisterOperand destination, EffectiveAddress subject)
: this(destination, (Operand)subject)
{
#region Contract
Contract.Requires<ArgumentNullException>(destination != null);
Contract.Requires<ArgumentNullException>(subject != null);
#endregion
}
示例9: Xadd
/// <summary>
/// Initializes a new instance of the <see cref="Xadd"/> class.
/// </summary>
/// <param name="destination">The destination register operand.</param>
/// <param name="source">The source immediate register operand.</param>
public Xadd(RegisterOperand destination, RegisterOperand source)
: this((Operand)destination, source)
{
#region Contract
Contract.Requires<ArgumentNullException>(destination != null);
Contract.Requires<ArgumentNullException>(source != null);
#endregion
}
示例10: Cmpxchg
/// <summary>
/// Initializes a new instance of the <see cref="Cmpxchg"/> class.
/// </summary>
/// <param name="compared">The memory operand being compared.</param>
/// <param name="source">The source operand.</param>
public Cmpxchg(EffectiveAddress compared, RegisterOperand source)
: this((Operand)compared, source)
{
#region Contract
Contract.Requires<ArgumentNullException>(compared != null);
Contract.Requires<ArgumentNullException>(source != null);
#endregion
}
示例11: Movsxd
/// <summary>
/// Initializes a new instance of the <see cref="Movsxd"/> class.
/// </summary>
/// <param name="destination">The destination register.</param>
/// <param name="source">The source memory operand.</param>
public Movsxd(RegisterOperand destination, EffectiveAddress source)
: this(destination, (Operand)source)
{
#region Contract
Contract.Requires<ArgumentNullException>(destination != null);
Contract.Requires<ArgumentNullException>(source != null);
#endregion
}
示例12: Bswap
/// <summary>
/// Initializes a new instance of the <see cref="Bswap"/> class.
/// </summary>
/// <param name="subject">The register whose bytes will be swapped.</param>
public Bswap(RegisterOperand subject)
{
#region Contract
Contract.Requires<ArgumentNullException>(subject != null);
#endregion
this.subject = subject;
}
示例13: Btc
/// <summary>
/// Initializes a new instance of the <see cref="Btc"/> class.
/// </summary>
/// <param name="subject">The memory operand whose bit is copied and toggled.</param>
/// <param name="bitIndex">The index of the bit to copy.</param>
public Btc(EffectiveAddress subject, RegisterOperand bitIndex)
: this((Operand)subject, (Operand)bitIndex)
{
#region Contract
Contract.Requires<ArgumentNullException>(subject != null);
Contract.Requires<ArgumentNullException>(bitIndex != null);
#endregion
}
示例14: ArithmeticInstruction
/// <summary>
/// Initializes a new instance of the <see cref="ArithmeticInstruction"/> class.
/// </summary>
/// <param name="destination">The destination register operand.</param>
/// <param name="source">The source immediate operand.</param>
protected ArithmeticInstruction(RegisterOperand destination, Immediate source)
: this((IRegisterOrMemoryOperand)destination, (ISourceOperand)source)
{
#region Contract
Contract.Requires<ArgumentNullException>(destination != null);
Contract.Requires<ArgumentException>(destination.Register.IsGeneralPurposeRegister());
Contract.Requires<ArgumentNullException>(source != null);
#endregion
}
示例15: Shrd
/// <summary>
/// Initializes a new instance of the <see cref="Shrd"/> class.
/// </summary>
/// <param name="value">The value to shift.</param>
/// <param name="source">The bits to shift in.</param>
/// <param name="positions">The number of positions to adjust.</param>
public Shrd(RegisterOperand value, RegisterOperand source, Immediate positions)
: this((Operand)positions, source, (Operand)positions)
{
#region Contract
Contract.Requires<ArgumentNullException>(value != null);
Contract.Requires<ArgumentNullException>(source != null);
Contract.Requires<ArgumentNullException>(positions != null);
#endregion
}