all repos — mgba @ d620faba0a106abd916e1a909492d3a28853b70b

mGBA Game Boy Advance Emulator

GBA: Fix setting mask in ROM size coercion
Vicki Pfau vi@endrift.com
Mon, 02 Jul 2018 21:30:45 -0700
commit

d620faba0a106abd916e1a909492d3a28853b70b

parent

71f39ba1b67bd99a59e2dc5878da6356357e4f98

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

jump to
M src/gba/gba.csrc/gba/gba.c

@@ -398,6 +398,7 @@ memcpy(newRom, gba->memory.rom, gba->pristineRomSize);

gba->memory.rom = newRom; #endif gba->memory.romSize = SIZE_CART0; + gba->memory.romMask = SIZE_CART0 - 1; gba->isPristine = false; } if (gba->cpu && gba->memory.activeRegion >= REGION_CART0) {