diff options
author | 2019-09-20 00:28:19 +1000 | |
---|---|---|
committer | 2019-09-20 00:28:19 +1000 | |
commit | dac7094f3431b8f933497b0c7693e6baeb1bb75c (patch) | |
tree | 1c3dc049110c54d23dc31a1e6c1e8b11fd24e299 /src/mame/drivers/thunderx.cpp | |
parent | cc25024f791747fa17c1f06bd81c482a86aac91b (diff) |
(nw) misc cleanup:
* get rid of most assert_always
* get rid of a few MCFG_*_OVERRIDE
Diffstat (limited to 'src/mame/drivers/thunderx.cpp')
-rw-r--r-- | src/mame/drivers/thunderx.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/mame/drivers/thunderx.cpp b/src/mame/drivers/thunderx.cpp index 0358d968d0a..9f50f97de8a 100644 --- a/src/mame/drivers/thunderx.cpp +++ b/src/mame/drivers/thunderx.cpp @@ -42,6 +42,9 @@ #include "sound/ym2151.h" #include "speaker.h" +//#define VERBOSE 1 +#include "logmacro.h" + void thunderx_state::device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) { @@ -51,12 +54,10 @@ void thunderx_state::device_timer(emu_timer &timer, device_timer_id id, int para m_maincpu->set_input_line(KONAMI_FIRQ_LINE, HOLD_LINE); break; default: - assert_always(false, "Unknown id in thunderx_state::device_timer"); + throw emu_fatalerror("Unknown id in thunderx_state::device_timer"); } } -#define VERBOSE 0 -#define LOG(x) do { if (VERBOSE) logerror x; } while (0) #define PMC_BK (m_1f98_latch & 0x02) READ8_MEMBER(thunderx_state::pmc_r) @@ -68,7 +69,7 @@ READ8_MEMBER(thunderx_state::pmc_r) } else { - LOG(("%04x read pmc internal ram %04x\n",m_audiocpu->pc(),offset)); + LOG("%04x read pmc internal ram %04x\n",m_audiocpu->pc(),offset); return 0; } } @@ -77,12 +78,12 @@ WRITE8_MEMBER(thunderx_state::pmc_w) { if (PMC_BK) { - LOG(("%04x pmcram %04x = %02x\n",m_audiocpu->pc(),offset,data)); + LOG("%04x pmcram %04x = %02x\n",m_audiocpu->pc(),offset,data); m_pmcram[offset] = data; } else { - LOG(("%04x pmc internal ram %04x = %02x\n",m_audiocpu->pc(),offset,data)); + LOG("%04x pmc internal ram %04x = %02x\n",m_audiocpu->pc(),offset,data); } } |