mirror of https://github.com/mgba-emu/mgba.git
GB Memory: Add MBC7 stubs
This commit is contained in:
parent
497fc2ade3
commit
90d280026d
|
@ -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
|
||||
}
|
||||
|
|
|
@ -55,6 +55,7 @@ enum GBMemoryBankControllerType {
|
|||
GB_MBC3 = 3,
|
||||
GB_MBC4 = 4,
|
||||
GB_MBC5 = 5,
|
||||
GB_MBC7 = 7,
|
||||
GB_MMM01 = 0x10,
|
||||
GB_HuC1 = 0x11
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue