diff options
author | hap <happppp@users.noreply.github.com> | 2018-09-16 12:16:27 +0200 |
---|---|---|
committer | hap <happppp@users.noreply.github.com> | 2018-09-16 12:16:27 +0200 |
commit | c403a5176115b13d3b55cb00ce94ff9b7640c8c2 (patch) | |
tree | 5e8a8a0eb6ef48715d053eacadd424486438ff44 | |
parent | 69e58bfbfeff5da725248048d784f9b79b853253 (diff) |
exidy audio: get rid of double tms5220 device read (nw)
-rw-r--r-- | src/mame/audio/exidy.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/audio/exidy.cpp b/src/mame/audio/exidy.cpp index bbd4f283fa3..15d2e28cf6c 100644 --- a/src/mame/audio/exidy.cpp +++ b/src/mame/audio/exidy.cpp @@ -403,13 +403,13 @@ WRITE8_MEMBER(exidy_sh8253_sound_device::r6532_porta_w) READ8_MEMBER(exidy_sh8253_sound_device::r6532_porta_r) { + uint8_t status = 0xff; if (m_tms.found()) { - logerror("(%f)%s:TMS5220 status read = %02X\n", machine().time().as_double(), machine().describe_context(), m_tms->status_r()); - return m_tms->status_r(); + status = m_tms->status_r(); + logerror("(%f)%s:TMS5220 status read = %02X\n", machine().time().as_double(), machine().describe_context(), status); } - else - return 0xff; + return status; } WRITE8_MEMBER(exidy_sh8253_sound_device::r6532_portb_w) |