From b0282ecc8a802236f9cc82ceb8449c3590d4f555 Mon Sep 17 00:00:00 2001 From: Brandon Wright Date: Wed, 30 May 2018 17:45:36 -0500 Subject: [PATCH] Make note and clarify code. --- dma.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dma.cpp b/dma.cpp index 6d32cbd3..c3aa4762 100644 --- a/dma.cpp +++ b/dma.cpp @@ -1641,8 +1641,10 @@ uint8 S9xDoHDMA (uint8 byte) case 1: S9xSetPPU(*(HDMAMemPointers[d] + 0), 0x2100 + p->BAddress); ADD_CYCLES(SLOW_ONE_CYCLE); - S9xSetPPU(*(HDMAMemPointers[d] + 1), 0x2101 + p->BAddress); + // XXX: All HDMA should read to MDR first. This one just + // happens to fix Speedy Gonzales. OpenBus = *(HDMAMemPointers[d] + 1); + S9xSetPPU(OpenBus, 0x2101 + p->BAddress); ADD_CYCLES(SLOW_ONE_CYCLE); HDMAMemPointers[d] += 2; break;