mapper 547 (ines 2.0 version of KONAMI-QTAi UNIF board)
This commit is contained in:
parent
0fc18be6b8
commit
25c0b96c30
|
@ -152,11 +152,11 @@ static void Sync(void) {
|
||||||
chrSync();
|
chrSync();
|
||||||
setprg4r(0x10, 0x6000, (regs[0] & 1) | (regs[0] >> 2)); // two 4K banks are identical, either internal or excernal
|
setprg4r(0x10, 0x6000, (regs[0] & 1) | (regs[0] >> 2)); // two 4K banks are identical, either internal or excernal
|
||||||
setprg4r(0x10, 0x7000, (regs[1] & 1) | (regs[1] >> 2)); // SRAMs may be mapped in any bank independently
|
setprg4r(0x10, 0x7000, (regs[1] & 1) | (regs[1] >> 2)); // SRAMs may be mapped in any bank independently
|
||||||
if (PRGsize[0] == 1024 * 1024) {// hacky hacky way to run it as iNES rom for debugging purposes
|
if (PRGptr[1] == NULL) { // for iNES 2.0 version it even more hacky lol
|
||||||
setprg8(0x8000, regs[2]);
|
setprg8(0x8000, (regs[2] & 0x3F) + ((regs[2] & 0x40) >> 2));
|
||||||
setprg8(0xA000, regs[3]);
|
setprg8(0xA000, (regs[3] & 0x3F) + ((regs[3] & 0x40) >> 2));
|
||||||
setprg8(0xC000, regs[4]);
|
setprg8(0xC000, (regs[4] & 0x3F) + ((regs[4] & 0x40) >> 2));
|
||||||
setprg8(0xE000, ~0);
|
setprg8(0xE000, 0x10 + 0x3F);
|
||||||
} else {
|
} else {
|
||||||
setprg8r((regs[2] >> 6) & 1, 0x8000, (regs[2] & 0x3F));
|
setprg8r((regs[2] >> 6) & 1, 0x8000, (regs[2] & 0x3F));
|
||||||
setprg8r((regs[3] >> 6) & 1, 0xA000, (regs[3] & 0x3F));
|
setprg8r((regs[3] >> 6) & 1, 0xA000, (regs[3] & 0x3F));
|
||||||
|
|
10
src/ines.cpp
10
src/ines.cpp
|
@ -439,9 +439,16 @@ typedef struct {
|
||||||
//that are not in the power of 2 tends to come
|
//that are not in the power of 2 tends to come
|
||||||
//in obscure mappers themselves which supports such
|
//in obscure mappers themselves which supports such
|
||||||
//size
|
//size
|
||||||
|
//Cah4e3 25.10.19: iNES 2.0 attempts to cover all
|
||||||
|
// boards including UNIF boards with non power 2
|
||||||
|
// total rom size (a lot of them with a couple of
|
||||||
|
// roms different sizes (may vary a lot)
|
||||||
|
// so we need either add here ALL ines 2.0 mappers
|
||||||
|
// with not power2 roms or change logic here
|
||||||
|
// to something more unified for ines 2.0 specific
|
||||||
static int not_power2[] =
|
static int not_power2[] =
|
||||||
{
|
{
|
||||||
53, 198, 228
|
53, 198, 228, 547
|
||||||
};
|
};
|
||||||
|
|
||||||
BMAPPINGLocal bmap[] = {
|
BMAPPINGLocal bmap[] = {
|
||||||
|
@ -717,6 +724,7 @@ BMAPPINGLocal bmap[] = {
|
||||||
{"F-15 MMC3 Based", 259, BMCF15_Init},
|
{"F-15 MMC3 Based", 259, BMCF15_Init},
|
||||||
{"HP10xx/H20xx Boards", 260, BMCHPxx_Init},
|
{"HP10xx/H20xx Boards", 260, BMCHPxx_Init},
|
||||||
{"810544-CA-1", 261, BMC810544CA1_Init},
|
{"810544-CA-1", 261, BMC810544CA1_Init},
|
||||||
|
{ "KONAMI QTAi Board", 547, QTAi_Init },
|
||||||
|
|
||||||
{"", 0, NULL}
|
{"", 0, NULL}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue