core z80, partially revert ebde43d (bus blocking DMA)

it causes audio lag in OD2
This commit is contained in:
kub 2024-05-24 00:06:39 +02:00
parent b72095041e
commit 3b480be4c0

View file

@ -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 // TODO: if the 68K is in DMA wait, Z80 has to wait until DMA ends
if (Pico.video.status & (PVS_CPUWR|PVS_CPURD)) { if (Pico.video.status & (PVS_CPUWR|PVS_CPURD)) {
z80_subCLeft(z80_cyclesLeft); // rather rough on both condition and action 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 // 68k bus access delay for z80. The fractional part needs to be accumulated