machine/z80ctc.cpp: fix channel bus readback on unset timer

* fix x1turbo not detecting YM regression caused by 293fb66d7f
This commit is contained in:
angelosa 2024-05-01 22:40:16 +02:00
parent 0a0a009953
commit c33ec6922f

View File

@ -368,7 +368,11 @@ u8 z80ctc_channel_device::read()
if(!m_timer->remaining().is_never())
return u8((m_timer->remaining().as_double() / period.as_double()) + 1.0);
else
return 0;
{
// value read-back is required by x1turbo for YM internal board detection.
// cfr. x1turbo40 argus wpiset 0x704,1,rw
return m_down;
}
}
}