aboutsummaryrefslogtreecommitdiff
path: root/devtools/tasmrecover/tasm/proc.py
diff options
context:
space:
mode:
authorVladimir Menshakov2011-06-15 22:25:16 +0400
committerVladimir Menshakov2011-06-15 22:25:16 +0400
commit7a47b09379818237b392ee035e1d0179b1c4593b (patch)
treec29d77a5167d8c4009ab51e7cdc4e8065a217fa1 /devtools/tasmrecover/tasm/proc.py
parenteb80d05b64d5d3bff942416a726a165301ce5959 (diff)
downloadscummvm-rg350-7a47b09379818237b392ee035e1d0179b1c4593b.tar.gz
scummvm-rg350-7a47b09379818237b392ee035e1d0179b1c4593b.tar.bz2
scummvm-rg350-7a47b09379818237b392ee035e1d0179b1c4593b.zip
DREAMWEB: uncommented simple ret stripping
Diffstat (limited to 'devtools/tasmrecover/tasm/proc.py')
-rw-r--r--devtools/tasmrecover/tasm/proc.py6
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):