mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-12-27 03:31:49 +01:00
[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:
parent
da8e4e547a
commit
2c1a2d0def
@ -133,12 +133,6 @@ void prg_ram_dma_w(unsigned int length)
|
|||||||
/* update DMA source address */
|
/* update DMA source address */
|
||||||
cdc.dac.w += (words << 1);
|
cdc.dac.w += (words << 1);
|
||||||
|
|
||||||
/* check PRG-RAM write protected area */
|
|
||||||
if (dst_index < (scd.regs[0x02>>1].byte.h << 9))
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* DMA transfer */
|
/* DMA transfer */
|
||||||
while (words--)
|
while (words--)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user