From 7a47b09379818237b392ee035e1d0179b1c4593b Mon Sep 17 00:00:00 2001 From: Vladimir Menshakov Date: Wed, 15 Jun 2011 22:25:16 +0400 Subject: DREAMWEB: uncommented simple ret stripping --- devtools/tasmrecover/tasm/proc.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'devtools') 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): -- cgit v1.2.3