Re: repne/repnz movsw: Invalid instruction prefix mystery
Posted on 2019-08-21, 06:51
That is incorrect. repe/repne do not check the initial value of the Z flag, it is only checked after the string instruction updates it. For instructions that don't update the flags, repe and repne act identically (both as plain rep).