LOOPNE           Loop While not Equal                Flags: not altered

LOOPNE short-label

Logic:    CX   CX - 1
If CX <> 0 and ZF = 0
JMP short-label

Used after a CMP or SUB, LOOPNE decrements CX by 1, then transfers
control to short-label if the first operand of the CMP or SUB is not
equal to the second operand. Short-label must be within -128 to +127
bytes of the next instruction.

Operands                  Clocks   Transfers  Bytes   Example
short-label              19 or 5       -        2     LOOPNE AGAIN

Note:          LOOPNZ, Loop While Not Zero, is the same

See also: LOOPZ
See also: LOOP
See also: LOOPE
See also: LOOPNZ
See also: JCXZ

LOOPNE Loop While Not Equal