mirror of
https://github.com/holub/mame
synced 2025-06-07 13:23:50 +03:00
atari/antic.cpp: guard against side_effects reads for WSYNC
This commit is contained in:
parent
ef0e0006b1
commit
83bd1147f4
@ -1184,8 +1184,11 @@ uint8_t antic_device::read(offs_t offset)
|
|||||||
break;
|
break;
|
||||||
case 10: /* WSYNC read */
|
case 10: /* WSYNC read */
|
||||||
// TODO: strobe signal, should happen on write only?
|
// TODO: strobe signal, should happen on write only?
|
||||||
|
if (!machine().side_effects_disabled())
|
||||||
|
{
|
||||||
m_maincpu->spin_until_trigger(TRIGGER_HSYNC);
|
m_maincpu->spin_until_trigger(TRIGGER_HSYNC);
|
||||||
m_w.wsync = 1;
|
m_w.wsync = 1;
|
||||||
|
}
|
||||||
data = m_r.antic0a;
|
data = m_r.antic0a;
|
||||||
break;
|
break;
|
||||||
case 11: /* vert counter (scanline / 2) */
|
case 11: /* vert counter (scanline / 2) */
|
||||||
|
Loading…
Reference in New Issue
Block a user