SameBoy | Accurate GB/GBC emulator |
| download: https://git.y1.nz/archives/sameboy.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit 22afa576c2196fb04340e3c748a736977e45b517 parent 42ce9c410bc4abe9a2b8c3e88cc1106d76c1ca59 Author: Lior Halphon <LIJI32@gmail.com> Date: Sat, 18 Feb 2023 20:42:23 +0200 Fix incorrect timing adjustment on LCDC object abort Diffstat:
| M | Core/memory.c | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Core/memory.c b/Core/memory.c @@ -1491,7 +1491,7 @@ static void write_high_memory(GB_gameboy_t *gb, uint16_t addr, uint8_t value) /* Handle disabling objects while already fetching an object */ if ((gb->io_registers[GB_IO_LCDC] & GB_LCDC_OBJ_EN) && !(value & GB_LCDC_OBJ_EN)) { if (gb->during_object_fetch) { - gb->cycles_for_line += gb->display_cycles; + gb->cycles_for_line += gb->display_cycles / 2; gb->display_cycles = 0; gb->object_fetch_aborted = true; }
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.