From 7fcdc9a2a97a5ff956eb20618f8786214af8a77c Mon Sep 17 00:00:00 2001 From: tomcw Date: Wed, 27 Dec 2023 13:37:14 +0000 Subject: [PATCH] z80.cpp: rename CPP macro from DEBUG to DEBUG_Z80; and change logic to '#if 0 && defined(DEBUG_Z80)' to ensure it's never enabled. (#1265) --- source/Z80VICE/z80.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/Z80VICE/z80.cpp b/source/Z80VICE/z80.cpp index 3cb31950..d1483e41 100644 --- a/source/Z80VICE/z80.cpp +++ b/source/Z80VICE/z80.cpp @@ -3968,7 +3968,7 @@ static void opcode_dd(BYTE ip1, BYTE ip2, BYTE ip3, WORD ip12, WORD ip23) NOP(4, 1); break; default: -#ifdef DEBUG_Z80 +#if 0 && defined(DEBUG_Z80) log_message(LOG_DEFAULT, "%i PC %04x A%02x F%02x B%02x C%02x D%02x E%02x " "H%02x L%02x SP%04x OP DD %02x %02x %02x.", @@ -4176,7 +4176,7 @@ static void opcode_ed(BYTE ip1, BYTE ip2, BYTE ip3, WORD ip12, WORD ip23) NOP(8, 2); break; default: -#ifdef DEBUG_Z80 +#if 0 && defined(DEBUG_Z80) log_message(LOG_DEFAULT, "%i PC %04x A%02x F%02x B%02x C%02x D%02x E%02x " "H%02x L%02x SP%04x OP ED %02x %02x %02x.", @@ -5493,7 +5493,7 @@ static void opcode_fd(BYTE ip1, BYTE ip2, BYTE ip3, WORD ip12, WORD ip23) NOP(4, 1); break; default: -#ifdef DEBUG_Z80 +#if 0 && defined(DEBUG_Z80) log_message(LOG_DEFAULT, "%i PC %04x A%02x F%02x B%02x C%02x D%02x E%02x " "H%02x L%02x SP%04x OP FD %02x %02x %02x.", @@ -5554,7 +5554,7 @@ DWORD z80_mainloop(ULONG uTotalCycles, ULONG uExecutedCycles) FETCH_OPCODE(opcode); -#ifdef DEBUG +#if 0 && defined(DEBUG_Z80) if (debug.maincpu_traceflg) log_message(LOG_DEFAULT, ".%04x %i %-25s A%02x F%02x B%02x C%02x D%02x E%02x "