diff options
author | Vladimir Menshakov | 2011-06-15 22:25:16 +0400 |
---|---|---|
committer | Vladimir Menshakov | 2011-06-15 22:25:16 +0400 |
commit | 7a47b09379818237b392ee035e1d0179b1c4593b (patch) | |
tree | c29d77a5167d8c4009ab51e7cdc4e8065a217fa1 /devtools | |
parent | eb80d05b64d5d3bff942416a726a165301ce5959 (diff) | |
download | scummvm-rg350-7a47b09379818237b392ee035e1d0179b1c4593b.tar.gz scummvm-rg350-7a47b09379818237b392ee035e1d0179b1c4593b.tar.bz2 scummvm-rg350-7a47b09379818237b392ee035e1d0179b1c4593b.zip |
DREAMWEB: uncommented simple ret stripping
Diffstat (limited to 'devtools')
-rw-r--r-- | devtools/tasmrecover/tasm/proc.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/devtools/tasmrecover/tasm/proc.py b/devtools/tasmrecover/tasm/proc.py index 4337d4c936..3a82a74413 100644 --- a/devtools/tasmrecover/tasm/proc.py +++ b/devtools/tasmrecover/tasm/proc.py @@ -23,9 +23,9 @@ class proc: while len(self.stmts) and isinstance(self.stmts[-1], op.label): print "stripping last label" self.stmts.pop() - #if isinstance(self.stmts[-1], op._ret) and (len(self.stmts) < 2 or not isinstance(self.stmts[-2], op.label)): - # print "stripping last ret" - # self.stmts.pop() + if isinstance(self.stmts[-1], op._ret) and (len(self.stmts) < 2 or not isinstance(self.stmts[-2], op.label)): + print "stripping last ret" + self.stmts.pop() #merging push ax pop bx constructs i = 0 while i + 1 < len(self.stmts): |