REP REPEATREP

REPE/REPZ REPE/REPZ

REPEAT WHILE EQUAL/

REPEAT WHILE ZERO

REPNE/REPNZREPNE/REPNZ

REPEAT WHILE NOT EQUAL/

REPEAT WHILE NOT ZERO

Operation:

Flags Affected:

do while (CX) =1= 0

None

service pending interrupt (if

 

any) execute primitive string

 

operation in succeeding byte

 

(CX) +- (CX) -1

 

if primitive operation is CMPB,

 

CMPW, SCAB, or SCAW and

 

(ZF) =1= z then exit from

 

while loop

 

2-135

Page 170
Image 170
Intel 210200-002 manual Repeat While Equal Repeat While Zero, Repeat While not Equal Repeat While not Zero