Specifies the type of condition on which the instruction executes.

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

Syntax

C#
public enum InstructionCondition
Visual Basic
Public Enumeration InstructionCondition
Visual C++
public enum class InstructionCondition

Members

Member nameValueDescription
None0 No condition or unconditional.
Overflow256 The overflow flag (OF) equals 1.
NotOverflow4353 The overflow flag (OF) equals 0.
Below514 The carry flag (CF) equals 1.
Carry258 The carry flag (CF) equals 1.
NotAboveOrEqual4610 The carry flag (CF) equals 1.
NotBelow4611 The carry flag (CF) equals 0.
NotCarry4355 The carry flag (CF) equals 0.
AboveOrEqual515 The carry flag (CF) equals 0.
Zero260 The zero flag (ZF) equals 1.
Equal516 The zero flag (ZF) equals 1.
NotZero4357 The zero flag (ZF) equals 0.
NotEqual4613 The zero flag (ZF) equals 0.
BelowOrEqual518 The carry flag (CF) or the zero flag (ZF) equals 1.
NotAbove4358 The carry flag (CF) or the zero flag (ZF) equals 1.
NotBelowOrEqual4615 The carry flag (CF) and the zero flag (ZF) equal 0.
Above519 The carry flag (CF) and the zero flag (ZF) equal 0.
Sign264 The sign flag (SF) equals 1.
NotSign4361 The sign flag (SF) equals 0.
Parity266 The parity flag (PF) equals 1.
ParityEven778 The parity flag (PF) equals 1.
NotParity4363 The parity flag (PF) equals 0.
ParityOdd779 The parity flag (PF) equals 0.
Less524 The sign flag (SF) does not equal the overflow flag (OF).
NotGreaterOrEqual4620 The sign flag (SF) does not equal the overflow flag (OF).
NotLess4621 The sign flag (SF) equals the overflow flag (OF).
GreaterOrEqual525 The sign flag (SF) equals the overflow flag (OF).
LessOrEqual526 The zero flag (ZF) equals 1 or the sign flag (SF) does not equal the overflow flag (OF).
NotGreater4622 The zero flag (ZF) equals 1 or the sign flag (SF) does not equal the overflow flag (OF).
NotLessOrEqual4623 The zero flag (ZF) equals 0 and the sign flag (SF) equals the overflow flag (OF).
Greater527 The zero flag (ZF) equals 0 and the sign flag (SF) equals the overflow flag (OF).
GetConditionCode Gets the 8-bit condition code as used by the instruction set.

Remarks

The lower 8 bits specify the condition code as used by the x86 instruction set. Bits 8-11 are 1 when it is a flag condition, 2 when it is a comparison operator or 3 when it deals with even and odd parity. Bits 12-15 are 1 when it is the complement of the same value with those bits set to 0.

See Also