The CMPXCHG (Compare and Exchange) instruction.

Namespace: SharpAssembler.x86.Instructions
Assembly: SharpAssembler x86-64 (in SharpAssembler x86-64.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public class Cmpxchg : Instruction, ILockInstruction
Visual Basic
Public Class Cmpxchg _
	Inherits Instruction _
	Implements ILockInstruction
Visual C++
public ref class Cmpxchg : public Instruction, 
	ILockInstruction

Contracts

Invariants
this.compared != null
					this.compared is EffectiveAddress ||
					this.compared is RegisterOperand
this.source != null

Inheritance Hierarchy

System..::..Object
  SharpAssembler.Core..::..Constructable
    SharpAssembler.x86..::..Instruction
      SharpAssembler.x86.Instructions..::..Cmpxchg

See Also