32位:
rep string_op (串操作指令)
string_op : ins, movs,outs,stos
rep:一个串操作前缀,它使其后的串操作重复执行ecx次。
操作:
while (ecx!=0)
{
ecx=ecx-1;
string_op; /*串操作*/
}
;========================
repe/repz string_op
string_op:cmps,scas
repz:串操作前缀,重复执行ecx次或执行到ZF为0时。
操作:
while(ecx!=0)
{
ecx=ecx-1;
string_op;
if(ZF==1)
break;
}