aboutsummaryrefslogtreecommitdiff
path: root/devtools/tasmrecover/tasm
diff options
context:
space:
mode:
authorVladimir Menshakov2011-06-12 11:44:34 +0400
committerAlyssa Milburn2011-06-15 17:34:16 +0200
commit99a4bb86ddc6ab58d11c1cbab2ca2ff01aa8f835 (patch)
tree5ceaa725d277d0899ac5bccbde9cc300557e59d7 /devtools/tasmrecover/tasm
parent2bcc06f9eae89dcdc45a5430aa0e0395c2fa576e (diff)
downloadscummvm-rg350-99a4bb86ddc6ab58d11c1cbab2ca2ff01aa8f835.tar.gz
scummvm-rg350-99a4bb86ddc6ab58d11c1cbab2ca2ff01aa8f835.tar.bz2
scummvm-rg350-99a4bb86ddc6ab58d11c1cbab2ca2ff01aa8f835.zip
DREAMWEB: fixed invalid generated jump instructions
Diffstat (limited to 'devtools/tasmrecover/tasm')
-rw-r--r--devtools/tasmrecover/tasm/cpp.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/devtools/tasmrecover/tasm/cpp.py b/devtools/tasmrecover/tasm/cpp.py
index 0e87656bcc..20af0ea632 100644
--- a/devtools/tasmrecover/tasm/cpp.py
+++ b/devtools/tasmrecover/tasm/cpp.py
@@ -353,13 +353,13 @@ namespace %s {
self.body += "\tif (context.flags.l()) %s;\n" %(self.jump_to_label(label))
def _jg(self, label):
- self.body += "\tif (!context.flags.g()) %s;\n" %(self.jump_to_label(label))
+ self.body += "\tif (!context.flags.le()) %s;\n" %(self.jump_to_label(label))
def _jle(self, label):
self.body += "\tif (context.flags.le()) %s;\n" %(self.jump_to_label(label))
def _jge(self, label):
- self.body += "\tif (!context.flags.ge()) %s;\n" %(self.jump_to_label(label))
+ self.body += "\tif (!context.flags.l()) %s;\n" %(self.jump_to_label(label))
def _jc(self, label):
self.body += "\tif (context.flags.c()) %s;\n" %(self.jump_to_label(label))