diff options
author | Ian C <ianc@noddybox.co.uk> | 2022-12-29 16:30:16 +0000 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2022-12-29 16:30:16 +0000 |
commit | 57bb312c581e263051c8c0b877e44a421e474547 (patch) | |
tree | 372103d41a37b11caace467eb5016205d9ff994a | |
parent | a14aa951df260d3d1601a6b8c94ccc1bf77f8c07 (diff) |
Fixed C++ism that entered in CPD/I fixes.
-rw-r--r-- | z80_decode.c | 8 |
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); \ |