diff --git a/src/devices/machine/z80dma.cpp b/src/devices/machine/z80dma.cpp index 7ed0e61160f..048b19a2d7b 100644 --- a/src/devices/machine/z80dma.cpp +++ b/src/devices/machine/z80dma.cpp @@ -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) {