diff options
author | Paul Duncan <pabs@pablotron.org> | 2018-06-26 10:40:52 -0400 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2018-06-26 10:40:52 -0400 |
commit | e608f0d1449fe112ff1c0be2aec0ca5f8bab3232 (patch) | |
tree | 0c1fc5e0bd0ad7ce174796a59d77c20b8f3500db | |
parent | 4102f29581a937f68449c309d7a0e7cb161582d2 (diff) | |
download | gb-c-e608f0d1449fe112ff1c0be2aec0ca5f8bab3232.tar.bz2 gb-c-e608f0d1449fe112ff1c0be2aec0ca5f8bab3232.zip |
fix Z flag for INC/DEC
-rw-r--r-- | ops.yaml | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) )); |