I disassembled an exe file with IDA and tried to compile generated asm code with masm. One of errors, that masm generates is about wrong instruction prefix:


From the 80x86 instruction manual
The REP prefix can be added to the INS, OUTS, MOVS, LODS, and STOS instructions, and the REPE, REPNE, REPZ, and REPNZ prefixes can be added to the CMPS and SCAS instructions

One of the interesting things, is that TASM32 accepts movsb with prefix REPE...
Posted on 2004-03-31 01:15:59 by Ulterior
rep, repz and repe is the same thing: F3h
Posted on 2004-03-31 01:56:48 by The Svin