all repos — mgba @ ae12068d2f4b35dc8a61b47625751f028dd234c9

mGBA Game Boy Advance Emulator

LR35902: Fix pc overflowing current region off-by-one
Jeffrey Pfau jeffrey@endrift.com
Wed, 11 Jan 2017 01:35:06 -0800
commit

ae12068d2f4b35dc8a61b47625751f028dd234c9

parent

712abdeb0f46789d9da03216d5234cddda3d36af

2 files changed, 2 insertions(+), 1 deletions(-)

jump to
M CHANGESCHANGES

@@ -15,6 +15,7 @@ - GBA BIOS: Implement BitUnPack

- ARM7: Fix MLA/*MULL/*MLAL timing - GBA: Fix multiboot ROM loading - Libretro: Fix saving in GB games (fixes mgba.io/i/486) + - LR35902: Fix pc overflowing current region off-by-one Misc: - SDL: Remove scancode key input - GBA Video: Clean up unused timers
M src/gb/memory.csrc/gb/memory.c

@@ -19,7 +19,7 @@

static void _pristineCow(struct GB* gba); static uint8_t GBFastLoad8(struct LR35902Core* cpu, uint16_t address) { - if (UNLIKELY(address > cpu->memory.activeRegionEnd)) { + if (UNLIKELY(address >= cpu->memory.activeRegionEnd)) { cpu->memory.setActiveRegion(cpu, address); return cpu->memory.cpuLoad8(cpu, address); }