From c403a5176115b13d3b55cb00ce94ff9b7640c8c2 Mon Sep 17 00:00:00 2001 From: hap Date: Sun, 16 Sep 2018 12:16:27 +0200 Subject: exidy audio: get rid of double tms5220 device read (nw) --- src/mame/audio/exidy.cpp | 8 ++++---- 1 file 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) -- cgit v1.2.3