mirror of
https://github.com/holub/mame
synced 2025-06-08 05:44:09 +03:00
psikyo.cpp: Fix side effect in debugging (#7340)
This commit is contained in:
parent
538b3b2a0c
commit
0b32e41c01
@ -115,6 +115,7 @@ READ_LINE_MEMBER(psikyo_state::mcu_status_r)
|
||||
if (m_mcu_status)
|
||||
ret = 0x01;
|
||||
|
||||
if (!machine().side_effects_disabled())
|
||||
m_mcu_status = !m_mcu_status; /* hack */
|
||||
|
||||
return ret;
|
||||
@ -207,11 +208,13 @@ u32 psikyo_state::s1945_mcu_data_r()
|
||||
if (m_s1945_mcu_control & 16)
|
||||
{
|
||||
res = m_s1945_mcu_latching & 4 ? 0x0000ff00 : m_s1945_mcu_latch1 << 8;
|
||||
if (!machine().side_effects_disabled())
|
||||
m_s1945_mcu_latching |= 4;
|
||||
}
|
||||
else
|
||||
{
|
||||
res = m_s1945_mcu_latching & 1 ? 0x0000ff00 : m_s1945_mcu_latch2 << 8;
|
||||
if (!machine().side_effects_disabled())
|
||||
m_s1945_mcu_latching |= 1;
|
||||
}
|
||||
res |= m_s1945_mcu_bctrl & 0xf0;
|
||||
@ -442,6 +445,7 @@ READ_LINE_MEMBER(psikyo_state::z80_nmi_r)
|
||||
|
||||
/* main CPU might be waiting for sound CPU to finish NMI,
|
||||
so set a timer to give sound CPU a chance to run */
|
||||
if (!machine().side_effects_disabled())
|
||||
machine().scheduler().synchronize();
|
||||
// logerror("%s - Read coin port during Z80 NMI\n", machine().describe_context());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user