Add mapper 374
This commit is contained in:
@@ -443,3 +443,29 @@ void FARIDSLROM8IN1_Init(CartInfo *info) {
|
||||
AddExState(&lock, 1, 0, "LOCK");
|
||||
AddExState(®, 1, 0, "REG6");
|
||||
}
|
||||
|
||||
/* ---------------------------- Mapper 374 -------------------------------- */
|
||||
/* 1995 Super HiK 4-in-1 - 新系列機器戰警组合卡 (JY-022)
|
||||
* 1996 Super HiK 4-in-1 - 新系列超級飛狼組合卡 (JY-051)
|
||||
*/
|
||||
static uint8 game = 0;
|
||||
static void M374PRG(uint32 A, uint8 V) {
|
||||
setprg16(A, (V & 0x07) | (game << 3));
|
||||
}
|
||||
|
||||
static void M374CHR(uint32 A, uint8 V) {
|
||||
setchr4(A, (V & 0x1F) | (game << 5));
|
||||
}
|
||||
|
||||
static void M374Reset(void) {
|
||||
game = (game + 1) & 3;
|
||||
MMC1CMReset();
|
||||
}
|
||||
|
||||
void Mapper374_Init(CartInfo *info) {
|
||||
GenMMC1Init(info, 128, 128, 0, 0);
|
||||
MMC1CHRHook4 = M374CHR;
|
||||
MMC1PRGHook16 = M374PRG;
|
||||
info->Reset = M374Reset;
|
||||
AddExState(&game, 1, 0, "GAME");
|
||||
}
|
||||
@@ -663,6 +663,7 @@ static BMAPPINGLocal bmap[] = {
|
||||
{(uint8_t*)"GKCX1", 288, Mapper288_Init },
|
||||
{(uint8_t*)"Bit Corp 4-in-1", 357, Mapper357_Init },
|
||||
{(uint8_t*)"MMC3 PIRATE SFC-12", 372, Mapper372_Init },
|
||||
{(uint8_t*)"95/96 Super HiK 4-in-1", 374, Mapper374_Init },
|
||||
{(uint8_t*)"KN-42", 381, Mapper381_Init },
|
||||
{(uint8_t*)"60-1064-16L (FDS)", 538, Mapper538_Init },
|
||||
{(uint8_t*)"LittleCom 160-in-1", 541, Mapper541_Init },
|
||||
|
||||
@@ -246,6 +246,7 @@ void J2282_Init(CartInfo *);
|
||||
void Mapper288_Init(CartInfo *);
|
||||
void Mapper357_Init(CartInfo *);
|
||||
void Mapper372_Init(CartInfo *);
|
||||
void Mapper374_Init(CartInfo *);
|
||||
void Mapper381_Init(CartInfo *);
|
||||
void Mapper538_Init(CartInfo *);
|
||||
void Mapper541_Init(CartInfo *);
|
||||
|
||||
Reference in New Issue
Block a user