Add mapper 255 as a variant, rather than a duplicate, of mapper 225.
This commit is contained in:
@@ -31,6 +31,7 @@
|
||||
#include "mapinc.h"
|
||||
|
||||
static uint8 extraRAM[4], prg, mode, chr, mirr;
|
||||
static uint8 is255;
|
||||
|
||||
static SFORMAT StateRegs[] =
|
||||
{
|
||||
@@ -56,6 +57,9 @@ static DECLFW(M225Write) {
|
||||
uint8 bank = (A >> 14) & 1;
|
||||
mirr = (A >> 13) & 1;
|
||||
mode = (A >> 12) & 1;
|
||||
if (is255)
|
||||
chr = (V & 0x03) | (A & 0x3C) | (bank << 6);
|
||||
else
|
||||
chr = (A & 0x3f) | (bank << 6);
|
||||
prg = ((A >> 6) & 0x3f) | (bank << 6);
|
||||
Sync();
|
||||
@@ -92,6 +96,7 @@ static void StateRestore(int version) {
|
||||
}
|
||||
|
||||
void Mapper225_Init(CartInfo *info) {
|
||||
is255 = 0;
|
||||
info->Reset = M225Reset;
|
||||
info->Power = M225Power;
|
||||
GameStateRestore = StateRestore;
|
||||
@@ -100,4 +105,5 @@ void Mapper225_Init(CartInfo *info) {
|
||||
|
||||
void Mapper255_Init(CartInfo *info) {
|
||||
Mapper225_Init(info);
|
||||
is255 = 1;
|
||||
}
|
||||
@@ -708,7 +708,7 @@ INES_BOARD_BEGIN()
|
||||
INES_BOARD( "SAN GUO ZHI PIRATE", 252, Mapper252_Init )
|
||||
INES_BOARD( "DRAGON BALL PIRATE", 253, Mapper253_Init )
|
||||
INES_BOARD( "", 254, Mapper254_Init )
|
||||
INES_BOARD( "", 255, Mapper255_Init ) /* Duplicate of M225? */
|
||||
INES_BOARD( "", 255, Mapper255_Init ) /* Variant of M225 */
|
||||
|
||||
/* NES 2.0 MAPPERS */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user