aboutsummaryrefslogtreecommitdiff
path: root/devtools/tasmrecover/tasm
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2011-06-26 12:05:46 +0200
committerWillem Jan Palenstijn2011-07-28 21:25:10 +0200
commitbb7a1bd93d22fc7da9e317cea9fee083be83d5a0 (patch)
tree8509fe9ae24a62486a990212f38b883ebfd5d3ae /devtools/tasmrecover/tasm
parentc626394f2b6566bc310f7fb02b9449acc2e8f00f (diff)
downloadscummvm-rg350-bb7a1bd93d22fc7da9e317cea9fee083be83d5a0.tar.gz
scummvm-rg350-bb7a1bd93d22fc7da9e317cea9fee083be83d5a0.tar.bz2
scummvm-rg350-bb7a1bd93d22fc7da9e317cea9fee083be83d5a0.zip
DREAMWEB: Add option to process asm functions but not output them
Diffstat (limited to 'devtools/tasmrecover/tasm')
-rw-r--r--devtools/tasmrecover/tasm/cpp.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/devtools/tasmrecover/tasm/cpp.py b/devtools/tasmrecover/tasm/cpp.py
index a73fd6c890..4ed89f650d 100644
--- a/devtools/tasmrecover/tasm/cpp.py
+++ b/devtools/tasmrecover/tasm/cpp.py
@@ -33,7 +33,7 @@ def parse_bin(s):
return v
class cpp:
- def __init__(self, context, namespace, skip_first = 0, blacklist = []):
+ def __init__(self, context, namespace, skip_first = 0, blacklist = [], skip_output = []):
self.namespace = namespace
fname = namespace.lower() + ".cpp"
header = namespace.lower() + ".h"
@@ -79,6 +79,7 @@ class cpp:
self.proc_done = []
self.blacklist = blacklist
self.failed = list(blacklist)
+ self.skip_output = skip_output
self.translated = []
self.proc_addr = []
self.methods = []
@@ -527,7 +528,8 @@ namespace %s {
self.proc.optimize(keep_labels=[label])
self.proc.visit(self, start)
self.body += "}\n";
- self.translated.insert(0, self.body)
+ if name not in self.skip_output:
+ self.translated.insert(0, self.body)
self.proc = None
if self.temps_count > 0:
raise Exception("temps count == %d at the exit of proc" %self.temps_count);