atari/antic.cpp: guard against side_effects reads for WSYNC

This commit is contained in:
angelosa 2022-10-09 20:49:29 +02:00
parent ef0e0006b1
commit 83bd1147f4

View File

@ -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) */