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 e3e7979..53f235a 100644
--- a/ops.yaml
+++ b/ops.yaml
@@ -9290,8 +9290,8 @@ templates:
// set flags
cpu_wf(ctx, F_N | F_H | F_C, (
- ((((dst_val & 0xFF) + (src_val & 0xFF)) > 0xFF) ? F_H : 0) |
- ((n == 0x10000) ? F_C : 0)
+ ((((dst_val & 0xFFF) + (src_val & 0xFFF)) > 0xFFF) ? F_H : 0) |
+ ((n > 0xFFFF) ? F_C : 0)
));
}