mirror of
https://github.com/SourMesen/Mesen2.git
synced 2025-04-02 10:21:44 -04:00
GB: HDMA shouldn't run if CPU is halted
Fixes MagenTests/hblank_vram_dma test rom
This commit is contained in:
parent
b844642866
commit
8c04e1ad6c
1 changed files with 2 additions and 1 deletions
|
@ -157,7 +157,8 @@ void GbDmaController::WriteCgb(uint16_t addr, uint8_t value)
|
|||
|
||||
void GbDmaController::ProcessHdma()
|
||||
{
|
||||
if(_state.CgbHdmaRunning) {
|
||||
//TODOGB what happens if the CPU resumes execution during hblank?
|
||||
if(_state.CgbHdmaRunning && !_cpu->IsHalted()) {
|
||||
//4 cycles for setup
|
||||
_memoryManager->Exec();
|
||||
_memoryManager->Exec();
|
||||
|
|
Loading…
Add table
Reference in a new issue