git.y1.nz

SameBoy

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

commit 47cdefd3d022b31d984ede91cd0f6965ff88d065
parent 53fc5a74edcde74916e5f5e333df2d3e29f46154
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Fri,  2 Aug 2024 20:45:17 +0300

Minor adjustments to the CGB WX glitch

Diffstat:
MCore/memory.c2++
MCore/sm83_cpu.c4+---
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Core/memory.c b/Core/memory.c @@ -1399,7 +1399,9 @@ static void write_high_memory(GB_gameboy_t *gb, uint16_t addr, uint8_t value) gb->wy_triggered = true; } case GB_IO_WX: + gb->io_registers[addr & 0xFF] = value; GB_update_wx_glitch(gb); + break; case GB_IO_IF: case GB_IO_SCX: case GB_IO_SCY: diff --git a/Core/sm83_cpu.c b/Core/sm83_cpu.c @@ -431,9 +431,7 @@ static void stop(GB_gameboy_t *gb, uint8_t opcode) gb->speed_switch_freeze = 1; } - if (interrupt_pending) { - } - else { + if (!interrupt_pending) { gb->speed_switch_halt_countdown = 0x20008; gb->speed_switch_freeze = 5; }

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