summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ops.yaml4
1 files changed, 2 insertions, 2 deletions
diff --git a/ops.yaml b/ops.yaml
index 53f235a..61db5ee 100644
--- a/ops.yaml
+++ b/ops.yaml
@@ -9214,7 +9214,7 @@ templates:
// set flags
cpu_wf(ctx, F_Z | F_N | F_H, (
- (n ? F_Z : 0) |
+ (n ? 0 : F_Z) |
(((o & 0x0F) == 0x0F) ? F_H : 0)
));
@@ -9248,7 +9248,7 @@ templates:
// set flags
cpu_wf(ctx, F_Z | F_N | F_H, (
- (n ? F_Z : 0) |
+ (n ? 0 : F_Z) |
F_N |
(((o ^ n) & 0x10) ? F_H : 0)
));