git.y1.nz

SameBoy

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

commit 24af1c5a310303a66f7cb7fc7538380964a4f0f4
parent c05c3c2abd42e9faf6404700cb7520fd7882b95a
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Sat,  9 Oct 2021 14:05:29 +0300

Newly discovered OAM corruption trigger

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

diff --git a/Core/sm83_cpu.c b/Core/sm83_cpu.c @@ -1344,6 +1344,8 @@ static void ld_hl_sp_r8(GB_gameboy_t *gb, uint8_t opcode) static void ld_sp_hl(GB_gameboy_t *gb, uint8_t opcode) { gb->registers[GB_REGISTER_SP] = gb->registers[GB_REGISTER_HL]; + flush_pending_cycles(gb); + GB_trigger_oam_bug(gb, gb->hl); cycle_no_access(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.