From 57bb312c581e263051c8c0b877e44a421e474547 Mon Sep 17 00:00:00 2001 From: Ian C Date: Thu, 29 Dec 2022 16:30:16 +0000 Subject: Fixed C++ism that entered in CPD/I fixes. --- z80_decode.c | 8 ++++---- 1 file 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); \ -- cgit v1.2.3