summaryrefslogtreecommitdiff
path: root/z80_decode.c
diff options
context:
space:
mode:
Diffstat (limited to 'z80_decode.c')
-rw-r--r--z80_decode.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/z80_decode.c b/z80_decode.c
index 23cf44f..2385ac8 100644
--- a/z80_decode.c
+++ b/z80_decode.c
@@ -584,13 +584,13 @@ do { \
#define CPI \
do { \
- Z80Byte c,b; \
+ Z80Byte c,b,a1; \
\
c=CARRY; \
b=PEEK(cpu->HL.w); \
\
CMP8(b); \
- Z80Byte a1=cpu->AF.b.hi-b-(IS_H?1:0); \
+ a1=cpu->AF.b.hi-b-(IS_H?1:0); \
\
if (a1&2) SETFLAG(B5_Z80); else CLRFLAG(B5_Z80); \
if (a1&B3_Z80) SETFLAG(B3_Z80); else CLRFLAG(B3_Z80); \
@@ -611,13 +611,13 @@ do { \
#define CPD \
do { \
- Z80Byte c,b; \
+ Z80Byte c,b,a1; \
\
c=CARRY; \
b=PEEK(cpu->HL.w); \
\
CMP8(b); \
- Z80Byte a1=cpu->AF.b.hi-b-(IS_H?1:0); \
+ a1=cpu->AF.b.hi-b-(IS_H?1:0); \
\
if (a1&2) SETFLAG(B5_Z80); else CLRFLAG(B5_Z80); \
if (a1&B3_Z80) SETFLAG(B3_Z80); else CLRFLAG(B3_Z80); \