[Core/CD] improved accuracy of CDC DMA to PRG-RAM write-protected area (verified on real hardware, cf. Krikzz's mcd-verificator)

This commit is contained in:
ekeeke 2024-01-22 00:34:24 +01:00
parent da8e4e547a
commit 2c1a2d0def

View File

@ -133,12 +133,6 @@ void prg_ram_dma_w(unsigned int length)
/* update DMA source address */
cdc.dac.w += (words << 1);
/* check PRG-RAM write protected area */
if (dst_index < (scd.regs[0x02>>1].byte.h << 9))
{
return;
}
/* DMA transfer */
while (words--)
{