From 2c1a2d0defb7e9c4aaf0df6beb6b8615db9c0cfe Mon Sep 17 00:00:00 2001 From: ekeeke Date: Mon, 22 Jan 2024 00:34:24 +0100 Subject: [PATCH] [Core/CD] improved accuracy of CDC DMA to PRG-RAM write-protected area (verified on real hardware, cf. Krikzz's mcd-verificator) --- core/cd_hw/scd.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/core/cd_hw/scd.c b/core/cd_hw/scd.c index 6a48817..4498291 100644 --- a/core/cd_hw/scd.c +++ b/core/cd_hw/scd.c @@ -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--) {