bugfixes for SP reg and ccodes

This commit is contained in:
JanLJL
2023-12-12 18:32:43 +01:00
parent 78387a374d
commit c5ef5f7432
3 changed files with 10 additions and 6 deletions

View File

@@ -589,7 +589,7 @@ class MachineModel(object):
return i_operand["class"] == "prfop"
# condition
if "condition" in operand:
if i_operand["ccode"] == self.WILDCARD:
if i_operand["class"] == "condition" and i_operand["ccode"] == self.WILDCARD:
return True
return i_operand["class"] == "condition" and (
operand.get("condition", None) == i_operand.get("ccode", None).upper()