From a6e7d4e6c75a8e7eae915501b6fdfffdc1a76c92 Mon Sep 17 00:00:00 2001 From: notaz Date: Sat, 1 Feb 2014 20:48:24 +0200 Subject: [PATCH] kill 'assume cs' --- plugin/saveasm.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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); -- 2.39.5