Gets the 8-bit condition code as used by the instruction set.

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

Syntax

C#
public static int GetConditionCode(
	this InstructionCondition condition
)
Visual Basic
<ExtensionAttribute> _
Public Shared Function GetConditionCode ( _
	condition As InstructionCondition _
) As Integer
Visual C++
[ExtensionAttribute]
public:
static int GetConditionCode(
	InstructionCondition condition
)

Return Value

The condition code.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type InstructionCondition. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

Exceptions

ExceptionCondition
System.ComponentModel..::..InvalidEnumArgumentException!(Enum.IsDefined(typeof(InstructionCondition), condition))

Contracts

Requires
Enum.IsDefined(typeof(InstructionCondition), condition)
Ensures
Contract.Result<int>() >= 0x00
Contract.Result<int>() <= 0xFF

See Also