So basically I use a IDC script to dump the instructions one by one using IDA Pro 6.1, windows 32 bit. PE file format
I use try to dump one opcode instructions like
stosd
stosb
stosq
movsd
in this way:
for (addr = funcStart; addr != BADADDR; addr = NextHead(addr, funcEnd)) {
......
auto code;
line = GetDisasm(addr);
mnem = GetMnem(addr);
.......
if (strstr(line, mnem) != 0) {
mnem = line;
}
line = form("%-8s", mnem);
But to my surprise, when meets one opcode instructions like those, mnem get things like
stos
stos
stos
movs
movs
movs
By checking the directly dumped asm file ** File->Produce File->Create ASM File...**, I find those error instructions should be
stosd
stosd
stosd
movsd
movsd
movsd
Which means the results API GetMnem generated is wrong...
Could anyone give me some help? THank you!