浏览代码

Bugfix in JCMP

Yann Weber 6 年前
父节点
当前提交
9acb2b702d
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2
    1
      gte/turmit.py

+ 2
- 1
gte/turmit.py 查看文件

@@ -297,5 +297,6 @@ class Turmit(object):
297 297
             @param offset int : jump offset symbols
298 298
         '''
299 299
         jmp = False
300
-        if cnd & 1 and a == b or cnd & 0b10 and a < b or cnd & 0b100 and a > b:
300
+        if cnd & 1 == 0 and a == b or cnd & 1 and a != b or\
301
+	   cnd & 0b10 and a < b or cnd & 0b100 and a > b:
301 302
             self.__ip += offset

正在加载...
取消
保存