git.y1.nz

SameBoy

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

commit 864f0927be0376e4f8def705b872dfa263463375
parent 7c5704621a34645fac276df28e8d0c65d8f9fbee
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Fri,  4 Feb 2022 13:55:06 +0200

Timing confirmed and improved

Diffstat:
MCore/memory.c2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Core/memory.c b/Core/memory.c @@ -1736,11 +1736,11 @@ void GB_hdma_run(GB_gameboy_t *gb) } gb->addr_for_hdma_conflict = 0xFFFF; uint16_t vram_base = gb->cgb_vram_bank? 0x2000 : 0; + gb->hdma_in_progress = true; GB_advance_cycles(gb, cycles); while (gb->hdma_on) { uint8_t byte = gb->hdma_open_bus; gb->addr_for_hdma_conflict = 0xFFFF; - gb->hdma_in_progress = true; // TODO: timing? (affects VRAM reads) GB_advance_cycles(gb, cycles); if (gb->hdma_current_src < 0x8000 ||

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