From f2746bc3a3504dd0929ed4cfeb116c33eaa137bf Mon Sep 17 00:00:00 2001 From: Ian C Date: Mon, 2 Jan 2023 12:45:44 +0000 Subject: Small tweak to BIT_MEMPTR to marry up with BIT. --- z80_decode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/z80_decode.c b/z80_decode.c index e639e97..3247cc2 100644 --- a/z80_decode.c +++ b/z80_decode.c @@ -456,6 +456,7 @@ do { \ #define BIT_MEMPTR(REG,B) \ do { \ cpu->AF.b.lo&=C_Z80; \ + cpu->AF.b.lo|=H_Z80; \ if ((REG)&(1<AF.b.lo|=S_Z80® \ @@ -464,7 +465,6 @@ do { \ { \ cpu->AF.b.lo|=Z_Z80|P_Z80; \ } \ - cpu->AF.b.lo|=H_Z80; \ SETHIDDEN(PRIV->memptr.b.hi); \ } while(0) -- cgit v1.2.3