update Mapper90
This commit is contained in:
@@ -95,51 +95,49 @@ static void mira(void) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void tekprom(void) { // TODO: verify for single, small multi and large multi
|
static void tekprom(void) {
|
||||||
uint32 bankmode = ((tkcom[3] & 6) << 5);
|
uint32 bankmode = ((tkcom[3] & 6) << 5);
|
||||||
switch (tkcom[0] & 7) {
|
switch (tkcom[0] & 7) {
|
||||||
case 00:
|
case 00:
|
||||||
if (tkcom[0] & 0x80)
|
if (tkcom[0] & 0x80)
|
||||||
setprg8(0x6000, (((prgb[3] << 2) + 3) & 0x3F) | bankmode);
|
setprg8(0x6000, (((prgb[3] << 2) + 3) & 0x3F) | bankmode);
|
||||||
setprg32(0x8000, (prgb[3] & 7) | ((tkcom[3] & 7) << 3));
|
setprg32(0x8000, 0x0F | ((tkcom[3] & 6) << 3));
|
||||||
break;
|
break;
|
||||||
case 01:
|
case 01:
|
||||||
if (tkcom[0] & 0x80)
|
if (tkcom[0] & 0x80)
|
||||||
setprg8(0x6000, (((prgb[3] << 1) + 1) & 0x3F) | bankmode);
|
setprg8(0x6000, (((prgb[3] << 1) + 1) & 0x3F) | bankmode);
|
||||||
setprg16(0x8000, (prgb[1] & 0x0F) | ((tkcom[3] & 7) << 4));
|
setprg16(0x8000, (prgb[1] & 0x1F) | ((tkcom[3] & 6) << 4));
|
||||||
setprg16(0xC000, 0x0F | ((tkcom[3] & 7) << 4));
|
setprg16(0xC000, 0x1F | ((tkcom[3] & 6) << 4));
|
||||||
break;
|
break;
|
||||||
case 03: // bit reversion
|
case 03: // bit reversion
|
||||||
case 02:
|
case 02:
|
||||||
if (tkcom[0] & 0x80)
|
if (tkcom[0] & 0x80)
|
||||||
setprg8(0x6000, (prgb[3] & 0x1F) | ((tkcom[3] & 7) << 5)); // 45in1 multy has different bits, seems board was hacked to support big data banks
|
setprg8(0x6000, (prgb[3] & 0x3F) | bankmode);
|
||||||
setprg8(0x8000, (prgb[0] & 0x1F) | ((tkcom[3] & 7) << 5));
|
setprg8(0x8000, (prgb[0] & 0x3F) | bankmode);
|
||||||
setprg8(0xa000, (prgb[1] & 0x1F) | ((tkcom[3] & 7) << 5));
|
setprg8(0xa000, (prgb[1] & 0x3F) | bankmode);
|
||||||
setprg8(0xc000, (prgb[2] & 0x1F) | ((tkcom[3] & 7) << 5));
|
setprg8(0xc000, (prgb[2] & 0x3F) | bankmode);
|
||||||
setprg8(0xe000, 0x1F | ((tkcom[3] & 7) << 5));
|
setprg8(0xe000, 0x3F | bankmode);
|
||||||
// setprg8(0xe000,(prgb[3]&0x0F)|((tkcom[3]&6)<<3));
|
break;
|
||||||
// setprg32(0x8000,((prgb[0]&0x0F)>>2)|((tkcom[3]&6)<<3));
|
case 04:
|
||||||
break;
|
if (tkcom[0] & 0x80)
|
||||||
case 04:
|
setprg8(0x6000, (((prgb[3] << 2) + 3) & 0x3F) | bankmode);
|
||||||
if (tkcom[0] & 0x80)
|
setprg32(0x8000, (prgb[3] & 0x0F) | ((tkcom[3] & 6) << 3));
|
||||||
setprg8(0x6000, (((prgb[3] << 2) + 3) & 0x3F) | bankmode);
|
break;
|
||||||
setprg32(0x8000, (prgb[3] & 0x0F) | ((tkcom[3] & 6) << 3));
|
case 05:
|
||||||
break;
|
if (tkcom[0] & 0x80)
|
||||||
case 05:
|
setprg8(0x6000, (((prgb[3] << 1) + 1) & 0x3F) | bankmode);
|
||||||
if (tkcom[0] & 0x80)
|
setprg16(0x8000, (prgb[1] & 0x1F) | ((tkcom[3] & 6) << 4));
|
||||||
setprg8(0x6000, (((prgb[3] << 1) + 1) & 0x3F) | bankmode);
|
setprg16(0xC000, (prgb[3] & 0x1F) | ((tkcom[3] & 6) << 4));
|
||||||
setprg16(0x8000, (prgb[1] & 0x1F) | ((tkcom[3] & 6) << 4));
|
break;
|
||||||
setprg16(0xC000, (prgb[3] & 0x1F) | ((tkcom[3] & 6) << 4));
|
case 07: // bit reversion
|
||||||
break;
|
case 06:
|
||||||
case 07: // bit reversion
|
if (tkcom[0] & 0x80)
|
||||||
case 06:
|
setprg8(0x6000, (prgb[3] & 0x3F) | bankmode);
|
||||||
if (tkcom[0] & 0x80)
|
setprg8(0x8000, (prgb[0] & 0x3F) | bankmode);
|
||||||
setprg8(0x6000, (prgb[3] & 0x3F) | bankmode);
|
setprg8(0xa000, (prgb[1] & 0x3F) | bankmode);
|
||||||
setprg8(0x8000, (prgb[0] & 0x3F) | bankmode);
|
setprg8(0xc000, (prgb[2] & 0x3F) | bankmode);
|
||||||
setprg8(0xa000, (prgb[1] & 0x3F) | bankmode);
|
setprg8(0xe000, (prgb[3] & 0x3F) | bankmode);
|
||||||
setprg8(0xc000, (prgb[2] & 0x3F) | bankmode);
|
break;
|
||||||
setprg8(0xe000, (prgb[3] & 0x3F) | bankmode);
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -437,7 +435,6 @@ static void M90Power(void) {
|
|||||||
tekvrom();
|
tekvrom();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void Mapper90_Init(CartInfo *info) {
|
void Mapper90_Init(CartInfo *info) {
|
||||||
is211 = 0;
|
is211 = 0;
|
||||||
is209 = 0;
|
is209 = 0;
|
||||||
|
|||||||
@@ -600,9 +600,9 @@ static BMAPPINGLocal bmap[] = {
|
|||||||
{(uint8_t*)"NAMCOT 108 Rev. C", 206, Mapper206_Init}, // Deprecated, Used to be "DEIROM" whatever it means, but actually simple version of MMC3
|
{(uint8_t*)"NAMCOT 108 Rev. C", 206, Mapper206_Init}, // Deprecated, Used to be "DEIROM" whatever it means, but actually simple version of MMC3
|
||||||
{(uint8_t*)"TAITO X1-005 Rev. B", 207, Mapper207_Init},
|
{(uint8_t*)"TAITO X1-005 Rev. B", 207, Mapper207_Init},
|
||||||
{(uint8_t*)"", 208, Mapper208_Init},
|
{(uint8_t*)"", 208, Mapper208_Init},
|
||||||
{(uint8_t*)"", 209, Mapper209_Init},
|
{(uint8_t*)"HUMMER/JY BOARD", 209, Mapper209_Init},
|
||||||
{(uint8_t*)"", 210, Mapper210_Init},
|
{(uint8_t*)"", 210, Mapper210_Init},
|
||||||
{(uint8_t*)"", 211, Mapper211_Init},
|
{(uint8_t*)"HUMMER/JY BOARD", 211, Mapper211_Init},
|
||||||
{(uint8_t*)"", 212, Mapper212_Init},
|
{(uint8_t*)"", 212, Mapper212_Init},
|
||||||
{(uint8_t*)"", 213, Mapper213_Init},
|
{(uint8_t*)"", 213, Mapper213_Init},
|
||||||
{(uint8_t*)"", 214, Mapper214_Init},
|
{(uint8_t*)"", 214, Mapper214_Init},
|
||||||
|
|||||||
Reference in New Issue
Block a user