From 517f4554862fe9d4b2ce58b96986e43a4ba04d2a Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Fri, 17 Jun 2022 15:58:37 +0300 Subject: [PATCH] Theorized HDMA behavior proven wrong --- Core/sm83_cpu.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Core/sm83_cpu.c b/Core/sm83_cpu.c index 8e196bf..6d22867 100644 --- a/Core/sm83_cpu.c +++ b/Core/sm83_cpu.c @@ -1631,9 +1631,6 @@ void GB_cpu_run(GB_gameboy_t *gb) /* Wake up from HALT mode without calling interrupt code. */ if (gb->halted && !effective_ime && interrupt_queue) { gb->halted = false; - if (gb->hdma_on_hblank && (gb->io_registers[GB_IO_STAT] & 3) == 0) { - gb->hdma_on = true; - } gb->dma_cycles = 4; GB_dma_run(gb); gb->speed_switch_halt_countdown = 0; @@ -1642,9 +1639,6 @@ void GB_cpu_run(GB_gameboy_t *gb) /* Call interrupt */ else if (effective_ime && interrupt_queue) { gb->halted = false; - if (gb->hdma_on_hblank && (gb->io_registers[GB_IO_STAT] & 3) == 0) { - gb->hdma_on = true; - } // TODO: verify the timing! gb->dma_cycles = 4; GB_dma_run(gb);