LOOPNZ
LOOPNE
LOOPWHILE
NOT ZERO
LOOP WHILE NOT EQUAL
LOOPNZ
LOOPNE
Operation: | Flags Affected: |
(ex) +- | None |
if (ZF) = 0 and (eX) =1= 0 then |
|
(lP) +- (IP) + disp |
|
to |
|
Description: |
|
LOOPNE/LOOPNZ |
|
LOOPNE and LOOPNZ (Loop While Not Equal and Loop While Not Zero) are also synonyms for the same instruction. ex is decremented by 1, and control is transferred to the target operand if ex is not 0 and if ZF is clear; otherwise the next sequential instruction is executed.
Encoding:
1111 00000 1 disp
LOOPNE/LOOPNZ Operands Clocks Transfers Bytes LOOPNE Coding Example
19 or 5 | - | 2 LOOPNE AGAIN |