From: kub Date: Thu, 23 May 2024 22:06:39 +0000 (+0200) Subject: core z80, partially revert ebde43d (bus blocking DMA) X-Git-Tag: v2.00~45 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b480be4c0ef9dd82df9d9634987ee02e8eed028;p=picodrive.git core z80, partially revert ebde43d (bus blocking DMA) it causes audio lag in OD2 --- diff --git a/pico/memory.c b/pico/memory.c index fa3cf0f9..de5e3e5e 100644 --- a/pico/memory.c +++ b/pico/memory.c @@ -1372,7 +1372,8 @@ static void access_68k_bus(int delay) // bus delay as Q8 // TODO: if the 68K is in DMA wait, Z80 has to wait until DMA ends if (Pico.video.status & (PVS_CPUWR|PVS_CPURD)) { z80_subCLeft(z80_cyclesLeft); // rather rough on both condition and action - Pico.video.status |= PVS_Z80WAIT; + // TODO the next line will cause audio lag in Overdrive 2 demo? + //Pico.video.status |= PVS_Z80WAIT; } // 68k bus access delay for z80. The fractional part needs to be accumulated