kill 'assume cs'
authornotaz <notasas@gmail.com>
Sat, 1 Feb 2014 18:48:24 +0000 (20:48 +0200)
committernotaz <notasas@gmail.com>
Sat, 1 Feb 2014 18:48:24 +0000 (20:48 +0200)
plugin/saveasm.cpp

index f8d2639..9054260 100644 (file)
@@ -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);