SameBoy | Accurate GB/GBC emulator |
| download: https://git.y1.nz/archives/sameboy.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit efb644bc72ce34187fbfc11e5499159001c88271 parent 278224299f03083c120836985bd03276935474d6 Author: Lior Halphon <LIJI32@gmail.com> Date: Sat, 10 Jul 2021 15:02:15 +0300 MBC5 RAM enable is 8 bit Diffstat:
| M | Core/memory.c | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Core/memory.c b/Core/memory.c @@ -547,7 +547,7 @@ static void write_mbc(GB_gameboy_t *gb, uint16_t addr, uint8_t value) break; case GB_MBC5: switch (addr & 0xF000) { - case 0x0000: case 0x1000: gb->mbc_ram_enable = (value & 0xF) == 0xA; break; + case 0x0000: case 0x1000: gb->mbc_ram_enable = (value & 0xFF) == 0x0A; break; case 0x2000: gb->mbc5.rom_bank_low = value; break; case 0x3000: gb->mbc5.rom_bank_high = value; break; case 0x4000: case 0x5000:
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.