all repos — mgba @ 80cf9646a6b0f4ad6c24f29be0c9f2855a44d820

mGBA Game Boy Advance Emulator

GB MBC: Fix SRAM sizes 4 and 5
Vicki Pfau vi@endrift.com
Tue, 25 Jul 2017 18:35:57 -0700
commit

80cf9646a6b0f4ad6c24f29be0c9f2855a44d820

parent

bf8cc66a8533d15495a32d4fb1ec8feee9ac7731

2 files changed, 7 insertions(+), 0 deletions(-)

jump to
M CHANGESCHANGES

@@ -10,6 +10,7 @@ - GB Serialize: Fix audio state loading

- GB Video: Fix dot clock timing being slightly wrong - GB MBC: Pocket Cam memory should be accessible without enabling - GB Memory: Initialize peripheral pointers + - GB MBC: Fix SRAM sizes 4 and 5 Misc: - GBA Timer: Use global cycles for timers - GBA: Extend oddly-sized ROMs to full address space (fixes mgba.io/i/722)
M src/gb/mbc.csrc/gb/mbc.c

@@ -110,6 +110,12 @@ break;

case 3: gb->sramSize = 0x8000; break; + case 4: + gb->sramSize = 0x20000; + break; + case 5: + gb->sramSize = 0x10000; + break; } if (gb->memory.mbcType == GB_MBC_AUTODETECT) {