diff options
Diffstat (limited to 'src/mame/audio/xavix.cpp')
-rw-r--r-- | src/mame/audio/xavix.cpp | 45 |
1 files changed, 24 insertions, 21 deletions
diff --git a/src/mame/audio/xavix.cpp b/src/mame/audio/xavix.cpp index f52983329ff..ff284aeb376 100644 --- a/src/mame/audio/xavix.cpp +++ b/src/mame/audio/xavix.cpp @@ -4,57 +4,60 @@ #include "emu.h" #include "includes/xavix.h" +// #define VERBOSE 1 +#include "logmacro.h" + READ8_MEMBER(xavix_state::sound_75f0_r) { - logerror("%s: sound_75f0_r\n", machine().describe_context()); + LOG("%s: sound_75f0_r\n", machine().describe_context()); return m_soundregs[0]; } READ8_MEMBER(xavix_state::sound_75f1_r) { - logerror("%s: sound_75f1_r\n", machine().describe_context()); + LOG("%s: sound_75f1_r\n", machine().describe_context()); return m_soundregs[1]; } READ8_MEMBER(xavix_state::sound_75f6_r) { - logerror("%s: sound_75f6_r\n", machine().describe_context()); + LOG("%s: sound_75f6_r\n", machine().describe_context()); return m_soundregs[6]; } READ8_MEMBER(xavix_state::sound_75f8_r) { - logerror("%s: sound_75f8_r\n", machine().describe_context()); + LOG("%s: sound_75f8_r\n", machine().describe_context()); return m_soundregs[8]; } READ8_MEMBER(xavix_state::sound_75f9_r) { - logerror("%s: sound_75f9_r\n", machine().describe_context()); + LOG("%s: sound_75f9_r\n", machine().describe_context()); return 0x00; } READ8_MEMBER(xavix_state::sound_75fa_r) { - logerror("%s: sound_75fa_r\n", machine().describe_context()); + LOG("%s: sound_75fa_r\n", machine().describe_context()); return m_soundregs[10]; } READ8_MEMBER(xavix_state::sound_75fb_r) { - logerror("%s: sound_75fb_r\n", machine().describe_context()); + LOG("%s: sound_75fb_r\n", machine().describe_context()); return m_soundregs[11]; } READ8_MEMBER(xavix_state::sound_75fc_r) { - logerror("%s: sound_75fc_r\n", machine().describe_context()); + LOG("%s: sound_75fc_r\n", machine().describe_context()); return m_soundregs[12]; } READ8_MEMBER(xavix_state::sound_75fd_r) { - logerror("%s: sound_75fd_r\n", machine().describe_context()); + LOG("%s: sound_75fd_r\n", machine().describe_context()); return m_soundregs[13]; } @@ -65,7 +68,7 @@ WRITE8_MEMBER(xavix_state::sound_75f0_w) { // expected to return data written m_soundregs[0] = data; - logerror("%s: sound_75f0_w %02x\n", machine().describe_context(), data); + LOG("%s: sound_75f0_w %02x\n", machine().describe_context(), data); } @@ -73,7 +76,7 @@ WRITE8_MEMBER(xavix_state::sound_75f1_w) { // expected to return data written m_soundregs[1] = data; - logerror("%s: sound_75f1_w %02x\n", machine().describe_context(), data); + LOG("%s: sound_75f1_w %02x\n", machine().describe_context(), data); } @@ -81,13 +84,13 @@ WRITE8_MEMBER(xavix_state::sound_75f6_w) { // expected to return data written m_soundregs[6] = data; - logerror("%s: sound_75f6_w %02x\n", machine().describe_context(), data); + LOG("%s: sound_75f6_w %02x\n", machine().describe_context(), data); } WRITE8_MEMBER(xavix_state::sound_75f7_w) { m_soundregs[7] = data; - logerror("%s: sound_75f7_w %02x\n", machine().describe_context(), data); + LOG("%s: sound_75f7_w %02x\n", machine().describe_context(), data); } @@ -95,53 +98,53 @@ WRITE8_MEMBER(xavix_state::sound_75f8_w) { // expected to return data written m_soundregs[8] = data; - logerror("%s: sound_75f8_w %02x\n", machine().describe_context(), data); + LOG("%s: sound_75f8_w %02x\n", machine().describe_context(), data); } WRITE8_MEMBER(xavix_state::sound_75f9_w) { m_soundregs[9] = data; - logerror("%s: sound_75f9_w %02x\n", machine().describe_context(), data); + LOG("%s: sound_75f9_w %02x\n", machine().describe_context(), data); } WRITE8_MEMBER(xavix_state::sound_75fa_w) { // expected to return data written m_soundregs[10] = data; - logerror("%s: sound_75fa_w %02x\n", machine().describe_context(), data); + LOG("%s: sound_75fa_w %02x\n", machine().describe_context(), data); } WRITE8_MEMBER(xavix_state::sound_75fb_w) { // expected to return data written m_soundregs[11] = data; - logerror("%s: sound_75fb_w %02x\n", machine().describe_context(), data); + LOG("%s: sound_75fb_w %02x\n", machine().describe_context(), data); } WRITE8_MEMBER(xavix_state::sound_75fc_w) { // expected to return data written m_soundregs[12] = data; - logerror("%s: sound_75fc_w %02x\n", machine().describe_context(), data); + LOG("%s: sound_75fc_w %02x\n", machine().describe_context(), data); } WRITE8_MEMBER(xavix_state::sound_75fd_w) { // expected to return data written m_soundregs[13] = data; - logerror("%s: sound_75fd_w %02x\n", machine().describe_context(), data); + LOG("%s: sound_75fd_w %02x\n", machine().describe_context(), data); } WRITE8_MEMBER(xavix_state::sound_75fe_w) { m_soundregs[14] = data; - logerror("%s: sound_75fe_w %02x\n", machine().describe_context(), data); + LOG("%s: sound_75fe_w %02x\n", machine().describe_context(), data); } WRITE8_MEMBER(xavix_state::sound_75ff_w) { m_soundregs[15] = data; - logerror("%s: sound_75ff_w %02x\n", machine().describe_context(), data); + LOG("%s: sound_75ff_w %02x\n", machine().describe_context(), data); } READ8_MEMBER(xavix_state::sound_75f4_r) |