git.y1.nz

SameBoy

Accurate GB/GBC emulator
download: https://git.y1.nz/archives/sameboy.tar.gz
README | Files | Log | Refs | LICENSE

commit 517f4554862fe9d4b2ce58b96986e43a4ba04d2a
parent 9b5dc9eca796bf6f10b0da2e34837e84b44646be
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Fri, 17 Jun 2022 15:58:37 +0300

Theorized HDMA behavior proven wrong

Diffstat:
MCore/sm83_cpu.c6------
1 file changed, 0 insertions(+), 6 deletions(-)

diff --git 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);

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.