git.y1.nz

SameBoy

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

commit dfd3b429295a4fb571c13155e7f89695ab0c78ca
parent 3468d5de7eef1d0eae966d6e95c9b72c12e2c2e2
Author: Lior Halphon <2345928+LIJI32@users.noreply.github.com>
Date:   Fri,  4 Apr 2025 13:03:35 +0300

Merge pull request #695 from nik012003/master

Add missing break statements in mbc7 writes
Diffstat:
MCore/memory.c3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/Core/memory.c b/Core/memory.c @@ -1109,6 +1109,7 @@ static void write_mbc7_ram(GB_gameboy_t *gb, uint16_t addr, uint8_t value) gb->mbc7.latch_ready = true; gb->mbc7.x_latch = gb->mbc7.y_latch = 0x8000; } + break; } case 1: { if (value == 0xAA) { @@ -1116,6 +1117,7 @@ static void write_mbc7_ram(GB_gameboy_t *gb, uint16_t addr, uint8_t value) gb->mbc7.x_latch = 0x81D0 + 0x70 * gb->accelerometer_x; gb->mbc7.y_latch = 0x81D0 + 0x70 * gb->accelerometer_y; } + break; } case 8: { gb->mbc7.eeprom_cs = value & 0x80; @@ -1215,6 +1217,7 @@ static void write_mbc7_ram(GB_gameboy_t *gb, uint16_t addr, uint8_t value) } } gb->mbc7.eeprom_clk = value & 0x40; + break; } } }

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