Add mapper 271

This commit is contained in:
negativeExponent
2022-02-18 21:05:50 +08:00
parent ed91566fd3
commit 560b3a7093
4 changed files with 15 additions and 0 deletions

View File

@@ -460,6 +460,18 @@ void Mapper241_Init(CartInfo *info) {
Latch_Init(info, M241Sync, 0, 0x8000, 0xFFFF, 1, 0);
}
/*------------------ Map 271 ---------------------------*/
static void M271Sync(void) {
setchr8(latche & 0x0F);
setprg32(0x8000, latche >> 4);
setmirror((latche >> 5) & 1);
}
void Mapper271_Init(CartInfo *info) {
Latch_Init(info, M271Sync, 0, 0x8000, 0xFFFF, 0, 0);
}
/*------------------ Map 381 ---------------------------*/
/* 2-in-1 High Standard Game (BC-019), reset-based */
static uint8 reset = 0;