diff --git a/src/boards/addrlatch.cpp b/src/boards/addrlatch.cpp index b3f44c88..041cf885 100644 --- a/src/boards/addrlatch.cpp +++ b/src/boards/addrlatch.cpp @@ -220,6 +220,23 @@ void Mapper92_Init(CartInfo *info) { Latch_Init(info, M92Sync, NULL, 0x80B0, 0x8000, 0xFFFF, 0); } +//------------------ Map 174 --------------------------- + +static void M174Sync(void) { + if (latche & 0x80) { + setprg32(0x8000, (latche >> 5) & 3); + } else { + setprg16(0x8000, (latche >> 4) & 7); + setprg16(0xC000, (latche >> 4) & 7); + } + setchr8((latche >> 1) & 7); + setmirror((latche & 1) ^ 1); +} + +void Mapper174_Init(CartInfo *info) { + Latch_Init(info, M174Sync, NULL, 0, 0x8000, 0xFFFF, 0); +} + //------------------ Map 200 --------------------------- static void M200Sync(void) { diff --git a/src/ines.cpp b/src/ines.cpp index be7543a6..6873bdc5 100644 --- a/src/ines.cpp +++ b/src/ines.cpp @@ -689,7 +689,7 @@ BMAPPINGLocal bmap[] = { {"", 171, Mapper171_Init}, {"", 172, Mapper172_Init}, {"", 173, Mapper173_Init}, -// {"", 174, Mapper174_Init}, + {"NTDec 5-in-1", 174, Mapper174_Init}, {"", 175, Mapper175_Init}, {"BMCFK23C", 176, BMCFK23C_Init}, // zero 26-may-2012 - well, i have some WXN junk games that use 176 for instance ????. i dont know what game uses this BMCFK23C as mapper 176. we'll have to make a note when we find it. {"", 177, Mapper177_Init}, diff --git a/src/ines.h b/src/ines.h index f1b0d231..04e723d7 100644 --- a/src/ines.h +++ b/src/ines.h @@ -208,6 +208,7 @@ void Mapper170_Init(CartInfo *); void Mapper171_Init(CartInfo *); void Mapper172_Init(CartInfo *); void Mapper173_Init(CartInfo *); +void Mapper174_Init(CartInfo *); void Mapper175_Init(CartInfo *); void Mapper177_Init(CartInfo *); void Mapper178_Init(CartInfo *);