z80dma: correct end of block test

This commit is contained in:
Patrick Mackinlay 2023-01-26 11:36:51 +07:00
parent f0eab2717c
commit 9bebc8adf6

View File

@ -487,8 +487,7 @@ int z80dma_device::do_write()
m_addressB += PORTB_FIXED ? 0 : PORTB_INC ? 1 : -1;
m_byte_counter++;
m_count--;
done = (m_count == 0xFFFF); //correct?
done = (m_count == m_byte_counter);
if (done)
{