Browse Source

Bugfix in JCMP

Yann Weber 6 years ago
parent
commit
9acb2b702d
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      gte/turmit.py

+ 2
- 1
gte/turmit.py View File

@@ -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

Loading…
Cancel
Save