Add mapper 385

This commit is contained in:
negativeExponent
2022-02-19 02:23:06 +08:00
parent 53457d0928
commit 395a3df24c
3 changed files with 17 additions and 0 deletions

View File

@@ -544,6 +544,21 @@ void Mapper288_Init(CartInfo *info) {
AddExState(&dipswitch, 1, 0, "DIPSW");
}
/*------------------ Map 385 ---------------------------*/
static void M385Sync(void) {
int32 mirror = latche & 1;
int32 bank = (latche >> 1) & 0x7;
setprg16(0x8000, bank);
setprg16(0xc000, bank);
setmirror(mirror ^ 1);
setchr8(0);
}
void Mapper385_Init(CartInfo *info) {
Latch_Init(info, M385Sync, NULL, 0x0000, 0x8000, 0xFFFF, 0);
}
/*------------------ Map 541 ---------------------------*/
/* LittleCom 160-in-1 multicart */
static void M541Sync(void) {