Tweak behavior of halt/dummy reads during DMA

This commit is contained in:
oncemailtime 2024-01-29 12:43:53 -05:00 committed by GitHub
parent 3d17e2bfd7
commit 4d4ef482a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -374,7 +374,7 @@ void CPU::ProcessPendingDma(uint16_t readAddress)
assert(_needHalt || _needDummyRead);
processCycle();
if(!skipDummyReads) {
ProcessDmaRead(readAddress, prevReadAddress, enableInternalRegReads, isNesBehavior);
_memoryManager->Read(readAddress, MemoryOperationType::DummyRead);
}
EndCpuCycle(true);
}
@ -392,7 +392,7 @@ void CPU::ProcessPendingDma(uint16_t readAddress)
//Align to read cycle before starting sprite DMA (or align to perform DMC read)
processCycle();
if(!skipDummyReads) {
ProcessDmaRead(readAddress, prevReadAddress, enableInternalRegReads, isNesBehavior);
_memoryManager->Read(readAddress, MemoryOperationType::DummyRead);
}
EndCpuCycle(true);
}