Add mapper 477.

This commit is contained in:
NewRisingSun
2025-04-25 02:06:01 +02:00
committed by LibretroAdmin
parent 22e559daa8
commit edf8ae2aef
3 changed files with 35 additions and 0 deletions

View File

@@ -675,6 +675,39 @@ void Mapper462_Init(CartInfo *info) {
AddExState(&M462OuterBank, 1, 0, "EXP0");
}
/*------------------ Mapper 477 ---------------------------*/
static void Mapper477_Sync(void) {
if (latche &0xE) {
setprg16(0x8000, 0xFF);
setprg16(0xC000, latche);
} else
setprg32(0x8000, latche >>1);
setchr8(latche);
}
static DECLFW(Mapper477_Write) { /* Resistors placed on the first 128 KiB PRG ROM chip (banks 8-15) cause ROM to always win D0..D3. Otherwise, normal AND-type bus conflicts. */
latche = latche &8? (CartBR(A) &0x0F | V &CartBR(A) &~0x0F): (CartBR(A) &V);
WSync();
}
static void Mapper477_Power(void) {
LatchPower();
SetWriteHandler(0x8000, 0xFFFF, Mapper477_Write);
}
static void Mapper477_Reset(void) {
latche = 0;
WSync();
}
void Mapper477_Init(CartInfo *info) {
submapper =info->submapper;
Latch_Init(info, Mapper477_Sync, 0, 0x8000, 0xFFFF, 0, 0);
info->Reset = Mapper477_Reset;
info->Power = Mapper477_Power;
}
/*------------------ Mapper 481 ---------------------------*/
static void Mapper481_Sync(void) {

View File

@@ -898,6 +898,7 @@ INES_BOARD_BEGIN()
INES_BOARD( "NTDEC N625231", 474, Mapper474_Init )
INES_BOARD( "820215-C-A2", 475, Mapper475_Init )
INES_BOARD( "Croaky Karaoke", 476, Mapper476_Init )
INES_BOARD( "15-in-1", 477, Mapper477_Init )
INES_BOARD( "045N", 481, Mapper481_Init )
INES_BOARD( "ESTIQUE", 484, Mapper484_Init )
INES_BOARD( "AVE NINA-08", 487, Mapper487_Init )

View File

@@ -377,6 +377,7 @@ void Mapper473_Init(CartInfo *);
void Mapper474_Init(CartInfo *);
void Mapper475_Init(CartInfo *);
void Mapper476_Init(CartInfo *);
void Mapper477_Init(CartInfo *);
void Mapper481_Init(CartInfo *);
void Mapper484_Init(CartInfo *);
void Mapper487_Init(CartInfo *);