| |
Loop While Not Equal
86/88 |
Y |
186 |
Y |
286 |
Y |
386 |
Y |
486 |
Y |
LOOPNE/LOOPNZ short_label |
Ovfl |
N |
Dir |
N |
Int |
N |
Trap |
N |
Sign |
N |
Zero |
N |
Aux |
N |
Prty |
N |
Carry |
N |
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.
------------------------------------ Timing ----------------------------------
OpCode Instruction 386 286 86
E0 cb LOOPNE rel8 11+m 8,4 17,6
------------------------------------ Logic -----------------------------------
CX = CX - 1
If (CX <> 0) and (ZF = 0) then
JMP short_label
See Also LOOP LOOPE JCXZ JECXZ |