Add mapper 538

This commit is contained in:
negativeExponent
2020-01-28 11:42:04 +08:00
parent 371e949ba1
commit f4cb27d578
3 changed files with 22 additions and 0 deletions

View File

@@ -490,6 +490,26 @@ void Mapper241_Init(CartInfo *info) {
Latch_Init(info, M241Sync, 0, 0x8000, 0xFFFF, 1, 0);
}
/*------------------ Map 538 ---------------------------*/
/* NES 2.0 Mapper 538 denotes the 60-1064-16L PCB, used for a
* bootleg cartridge conversion named Super Soccer Champion
* of the Konami FDS game Exciting Soccer.
*/
static uint8 M538Banks[16] = { 0, 1, 2, 1, 3, 1, 4, 1, 5, 5, 1, 1, 6, 6, 7, 7 };
static void M538Sync(void) {
setprg8(0x6000, (latche >> 1) | 8);
setprg8(0x8000, M538Banks[latche & 15]);
setprg8(0xA000, 14);
setprg8(0xC000, 7);
setprg8(0xE000, 15);
setchr8(0);
setmirror(1);
}
void Mapper538_Init(CartInfo *info) {
Latch_Init(info, M538Sync, 0, 0xC000, 0xCFFF, 1, 0);
}
/* ------------------ A65AS --------------------------- */
/* actually, there is two cart in one... First have extra mirroring

View File

@@ -662,6 +662,7 @@ static BMAPPINGLocal bmap[] = {
{(uint8_t*)"Bit Corp 4-in-1", 357, Mapper357_Init },
{(uint8_t*)"MMC3 PIRATE SFC-12", 372, Mapper372_Init },
{(uint8_t*)"60-1064-16L (FDS)", 538, Mapper538_Init },
{(uint8_t*)"LittleCom 160-in-1", 541, Mapper541_Init },
/* UNIF to NES 2.0 BOARDS */

View File

@@ -245,6 +245,7 @@ void J2282_Init(CartInfo *);
void Mapper357_Init(CartInfo *);
void Mapper372_Init(CartInfo *);
void Mapper538_Init(CartInfo *);
void Mapper541_Init(CartInfo *);
#endif