summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2023-01-02 12:45:44 +0000
committerIan C <ianc@noddybox.co.uk>2023-01-02 12:45:44 +0000
commitf2746bc3a3504dd0929ed4cfeb116c33eaa137bf (patch)
tree77f805567aebe2e2b361ab5de9e58cf06342efe6
parent8fdedfc11f3109da05aec015237a265a7a148ca0 (diff)
Small tweak to BIT_MEMPTR to marry up with BIT.
-rw-r--r--z80_decode.c2
1 files changed, 1 insertions, 1 deletions
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<<B)) \
{ \
cpu->AF.b.lo|=S_Z80&REG; \
@@ -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)