Add mapper 415
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user