From: notaz Date: Sat, 1 Feb 2014 18:48:24 +0000 (+0200) Subject: kill 'assume cs' X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6e7d4e6c75a8e7eae915501b6fdfffdc1a76c92;hp=beb04e26b3ba6208551d98ce78689464bb1100a4;p=ia32rtools.git kill 'assume cs' --- diff --git a/plugin/saveasm.cpp b/plugin/saveasm.cpp index f8d2639..9054260 100644 --- a/plugin/saveasm.cpp +++ b/plugin/saveasm.cpp @@ -368,6 +368,11 @@ static void idaapi run(int /*arg*/) do_def_line(buf, sizeof(buf), ln.down()); if (strstr(buf, "include")) continue; + p = strstr(buf, "assume cs"); + if (p != NULL) { + memmove(p + 1, p, strlen(p) + 1); + *p = ';'; + } fout_line++; qfprintf(fout, "%s\n", buf);