GB Memory: Add MBC7 stubs

This commit is contained in:
Jeffrey Pfau 2016-01-22 20:23:19 -08:00
parent 497fc2ade3
commit 90d280026d
2 changed files with 10 additions and 0 deletions

View File

@ -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
@ -115,6 +116,10 @@ void GBMemoryReset(struct GB* gb) {
gb->memory.mbc = _GBMBC5;
gb->memory.mbcType = GB_MBC5;
break;
case 0x22:
gb->memory.mbc = _GBMBC7;
gb->memory.mbcType = GB_MBC7;
break;
}
if (!gb->memory.wram) {
@ -394,3 +399,7 @@ void _GBMBC5(struct GBMemory* memory, uint16_t address, uint8_t value) {
break;
}
}
void _GBMBC7(struct GBMemory* memory, uint16_t address, uint8_t value) {
// TODO
}

View File

@ -55,6 +55,7 @@ enum GBMemoryBankControllerType {
GB_MBC3 = 3,
GB_MBC4 = 4,
GB_MBC5 = 5,
GB_MBC7 = 7,
GB_MMM01 = 0x10,
GB_HuC1 = 0x11
};