# HG changeset patch # User Michael Pavone # Date 1548829035 28800 # Node ID e170a0f75c4f439bfe9c94cd47431edaabcb49d2 # Parent 0264d8b288e2c38f1673925855fd0d63ab569c46 fix half-carry for or and xor in new Z80 core diff -r 0264d8b288e2 -r e170a0f75c4f z80.cpu --- a/z80.cpu Tue Jan 29 22:16:57 2019 -0800 +++ b/z80.cpu Tue Jan 29 22:17:15 2019 -0800 @@ -583,31 +583,31 @@ 10110RRR or_reg or a main.R a - update_flags SZYH1PXN0C0 + update_flags SZYH0PXN0C0 10110110 or_hl z80_fetch_hl or a scratch1 a - update_flags SZYH1PXN0C0 + update_flags SZYH0PXN0C0 11110110 or_immed z80_fetch_immed or a scratch1 a - update_flags SZYH1PXN0C0 + update_flags SZYH0PXN0C0 10101RRR xor_reg xor a main.R a - update_flags SZYH1PXN0C0 + update_flags SZYH0PXN0C0 10101110 xor_hl z80_fetch_hl xor a scratch1 a - update_flags SZYH1PXN0C0 + update_flags SZYH0PXN0C0 11101110 xor_immed z80_fetch_immed xor a scratch1 a - update_flags SZYH1PXN0C0 + update_flags SZYH0PXN0C0 10111RRR cp_reg cmp main.R a