apple2: Better slot slowdown detection for the TransWarp (nw)

This commit is contained in:
arbee 2020-06-08 21:19:48 -04:00
parent ad912e5962
commit 760977494c

View File

@ -216,13 +216,15 @@ uint8_t a2bus_transwarp_device::dma_r(offs_t offset)
{
hit_slot_joy();
}
if ((offset >= 0xc090) && (offset <= 0xc0ff))
else if ((offset >= 0xc090) && (offset <= 0xc0ff))
{
hit_slot(((offset >> 4) & 0xf) - 8);
}
if ((offset >= 0xf000) && (!m_bReadA2ROM))
else if ((offset >= 0xc100) && (offset <= 0xc7ff))
{
hit_slot((offset >> 8) & 0x7);
}
else if ((offset >= 0xf000) && (!m_bReadA2ROM))
{
return m_rom[offset & 0xfff];
}
@ -279,6 +281,10 @@ void a2bus_transwarp_device::dma_w(offs_t offset, uint8_t data)
{
hit_slot(((offset >> 4) & 0xf) - 8);
}
else if ((offset >= 0xc100) && (offset <= 0xc7ff))
{
hit_slot((offset >> 8) & 0x7);
}
slot_dma_write(offset, data);
}