What's the difference between the assembly instructions LOOP
, LOOPE
and LOOPNE
?
What's the difference between the assembly instructions LOOP
, LOOPE
and LOOPNE
?
LOOP decrements ecx and checks if ecx is not zero, if that condition is met it jumps at specified label, otherwise falls through.
LOOPE decrements ecx and checks that ecx is not zero and ZF is set - if these conditions are met, it jumps at label, otherwise falls through.
LOOPNE is same as LOOPE except that it requires ZF to be not set (i.e be zero) to do the jump.