Add mapper 415

This commit is contained in:
negativeExponent
2022-02-07 13:17:21 +08:00
parent 74fa445659
commit 34210282bc
3 changed files with 21 additions and 0 deletions

View File

@@ -587,3 +587,22 @@ void Mapper429_Init(CartInfo *info) {
info->Reset = Mapper429_Reset;
Latch_Init(info, Mapper429_Sync, 0, 0x8000, 0xFFFF, 0, 0);
}
/*------------------ Mapper 415 ---------------------------*/
static void Mapper415_Sync(void) {
setprg8(0x6000, latche & 0x0F);
setprg32(0x8000, ~0);
setchr8(0);
setmirror(((latche >> 4) & 1) ^ 1);
}
static void M415Power(void) {
LatchPower();
SetReadHandler(0x6000, 0x7FFF, CartBR);
}
void Mapper415_Init(CartInfo *info) {
Latch_Init(info, Mapper415_Sync, 0, 0x8000, 0xFFFF, 0, 0);
info->Power = M415Power;
}