In machine code, there are actually only two different bytes of the prefix.
0xF3 called REP when used with MOVS / LODS / STOS / INS / OUTS (instructions that do not affect flags)0xF3 REPE REPZ CMPS/SCAS0xF2 REPNE REPNZ CMPS/SCAS .
Intel insn reference manual REP F3 REP MOVS, F2. , REP MOVSB, , CPU, .:)
. NASM, , F2 A4 REPNE MOVSB. ( x86 tag wiki).
, , , , REPNE MOVSB MOVSB. TZCNT REP BSF, CPU, BMI1, BSF. ( , , .)
, REP RET - AMD K8/K10 , RET.
Intel , , , . LZCNT ( REP BSR) BSR, , REP BSR - , .