From a8e3afb4499bd2f5a056ad38c1a8035695ad111d Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Tue, 29 Jan 2019 22:17:15 -0800 Subject: fix half-carry for or and xor in new Z80 core --- z80.cpu | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/z80.cpu b/z80.cpu index bdc650f..a32e645 100644 --- a/z80.cpu +++ b/z80.cpu @@ -583,31 +583,31 @@ fd 11100001 pop_iy 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 -- cgit v1.2.3