Skip to content

Commit bb260b9

Browse files
authored
upd765: Deassert DRQ on terminal count and prevent FIFO handling from reasserting DRQ after the DMA transfer has completed. (#15861)
Fixes floppy format in ct486 which enables the FDC37C78 FIFO.
1 parent 894f168 commit bb260b9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/devices/machine/upd765.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,7 @@ void upd765_family_device::tc_w(bool _tc)
420420
if(tc != _tc && _tc) {
421421
live_sync();
422422
tc_done = true;
423+
disable_transfer();
423424
tc = _tc;
424425
if(cur_live.fi)
425426
general_continue(*cur_live.fi);
@@ -812,7 +813,7 @@ void upd765_family_device::fifo_expect(int size, bool write)
812813
{
813814
fifo_expected = size;
814815
fifo_write = write;
815-
if(fifo_write)
816+
if(fifo_write && !tc_done)
816817
enable_transfer();
817818
}
818819

0 commit comments

Comments
 (0)