GB Memory: Add MBC7 stubs
Jeffrey Pfau jeffrey@endrift.com
Fri, 22 Jan 2016 20:23:19 -0800
2 files changed,
10 insertions(+),
0 deletions(-)
M
src/gb/memory.c
→
src/gb/memory.c
@@ -22,6 +22,7 @@ static void _GBMBC2(struct GBMemory*, uint16_t address, uint8_t value);
static void _GBMBC3(struct GBMemory*, uint16_t address, uint8_t value); static void _GBMBC4(struct GBMemory*, uint16_t address, uint8_t value); static void _GBMBC5(struct GBMemory*, uint16_t address, uint8_t value); +static void _GBMBC7(struct GBMemory*, uint16_t address, uint8_t value); static void GBSetActiveRegion(struct LR35902Core* cpu, uint16_t address) { // TODO@@ -114,6 +115,10 @@ case 0x1D:
case 0x1E: gb->memory.mbc = _GBMBC5; gb->memory.mbcType = GB_MBC5; + break; + case 0x22: + gb->memory.mbc = _GBMBC7; + gb->memory.mbcType = GB_MBC7; break; }@@ -394,3 +399,7 @@ _switchBank(memory, bank);
break; } } + +void _GBMBC7(struct GBMemory* memory, uint16_t address, uint8_t value) { + // TODO +}
M
src/gb/memory.h
→
src/gb/memory.h
@@ -55,6 +55,7 @@ GB_MBC2 = 2,
GB_MBC3 = 3, GB_MBC4 = 4, GB_MBC5 = 5, + GB_MBC7 = 7, GB_MMM01 = 0x10, GB_HuC1 = 0x11 };