Intel 64 and IA-32 Architectures Software Developers Manual Volume 2B, Instruction Set Reference, N-Z

4-252 Vol. 2B
INSTRUCTION SET REFERENCE, N-Z
THEN exit WHILE loop; FI;
IF (Repeat prefix is REPZ or REPE) and (ZF
= 0)
or (Repeat prefix is REPNZ or REPNE) and (ZF
= 1)
THEN exit WHILE loop; FI;
OD;
Flags Affected
None; however, the CMPS and SCAS instructions do set the status flags in the
EFLAGS register.
Exceptions (All Operating Modes)
None; however, exceptions can be generated by the instruction a repeat prefix is
associated with.
64-Bit Mode Exceptions
#GP(0) If the memory address is in a non-canonical form.