4 ms·
AFAICS x86 "rep" prefixed instructions are defined so that they can in fact be interrupted without problems. The remaining count is kept in (e)cx, so just doing
by userbinator 5y ago
AFAICS x86 "rep" prefixed instructions are defined so that they can in fact be interrupted without problems. The remaining count is kept in (e)cx, so just doing an iret into "rep stosb" etc. will continue its operation.
The 8086/8088 have a bug (one of very few!) where segment override prefixes were lost after an interrupted string instruction:
https://www.pcjs.org/documents/manuals/intel/8086/ https://www.pcjs.org/documents/manuals/intel/8086/
I believe it was fixed in later versions.