diff options
Diffstat (limited to 'src/emu/cpu/hd6309/hd6309.c')
-rw-r--r-- | src/emu/cpu/hd6309/hd6309.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/emu/cpu/hd6309/hd6309.c b/src/emu/cpu/hd6309/hd6309.c index 0c9ff68904e..98063c8e62e 100644 --- a/src/emu/cpu/hd6309/hd6309.c +++ b/src/emu/cpu/hd6309/hd6309.c @@ -107,11 +107,7 @@ #define VERBOSE 0 -#if VERBOSE -#define LOG(x) logerror x -#else -#define LOG(x) -#endif +#define LOG(x) do { if (VERBOSE) logerror x; } while (0) #ifndef true #define true 1 @@ -571,7 +567,7 @@ static void set_irq_line(int irqline, int state) { if (hd6309.nmi_state == state) return; hd6309.nmi_state = state; - LOG(("HD6309#%d set_irq_line (NMI) %d (PC=%4.4X)\n", cpu_getactivecpu(), state, pPC)); + LOG(("HD6309#%d set_irq_line (NMI) %d (PC=%4.4X)\n", cpu_getactivecpu(), state, pPC.d)); if( state == CLEAR_LINE ) return; /* if the stack was not yet initialized */ @@ -610,7 +606,7 @@ static void set_irq_line(int irqline, int state) } else if (irqline < 2) { - LOG(("HD6309#%d set_irq_line %d, %d (PC=%4.4X)\n", cpu_getactivecpu(), irqline, state, pPC)); + LOG(("HD6309#%d set_irq_line %d, %d (PC=%4.4X)\n", cpu_getactivecpu(), irqline, state, pPC.d)); hd6309.irq_state[irqline] = state; if (state == CLEAR_LINE) return; CHECK_IRQ_LINES(); |