mirror of
https://github.com/holub/mame
synced 2025-06-05 12:26:35 +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;
|
||||
case 10: /* WSYNC read */
|
||||
// TODO: strobe signal, should happen on write only?
|
||||
m_maincpu->spin_until_trigger(TRIGGER_HSYNC);
|
||||
m_w.wsync = 1;
|
||||
if (!machine().side_effects_disabled())
|
||||
{
|
||||
m_maincpu->spin_until_trigger(TRIGGER_HSYNC);
|
||||
m_w.wsync = 1;
|
||||
}
|
||||
data = m_r.antic0a;
|
||||
break;
|
||||
case 11: /* vert counter (scanline / 2) */
|
||||
|
Loading…
Reference in New Issue
Block a user