diff options
author | 2022-03-13 06:05:48 +0900 | |
---|---|---|
committer | 2022-03-12 16:05:48 -0500 | |
commit | 84fd318a358c3c63c64e3919fc1d846b5b563134 (patch) | |
tree | 9844fe5183c9499ba00d70a5731b51965ea2d99f | |
parent | 7c85af71db086d60912c92f0cb6f9b7a051e7340 (diff) |
namco_163.cpp: Fix side effects issue in reading (#9391)
* namco_163.cpp: Fix side effects issue in reading
* namco_163.cpp: Use constant value here
-rw-r--r-- | src/devices/sound/namco_163.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/sound/namco_163.cpp b/src/devices/sound/namco_163.cpp index 08daf720d17..01c6b32748b 100644 --- a/src/devices/sound/namco_163.cpp +++ b/src/devices/sound/namco_163.cpp @@ -137,8 +137,8 @@ void namco_163_sound_device::data_w(u8 data) u8 namco_163_sound_device::data_r() { - u8 val = m_ram[m_addr]; - if (m_inc) + const u8 val = m_ram[m_addr]; + if ((!machine().side_effects_disabled()) && m_inc) m_addr = (m_addr + 1) & 0x7f; return val; |