Previous 15994 Revisions Next

r1554 Sunday 20th January, 2008 at 00:32:35 UTC by Wilbert Pol
[NES] Added partial support for mapper 51.
[docs]messnew.txt
[src/mess/machine]nes_mmc.c

src/mess/machine/nes_mmc.c
r1553r1554
22   TODO:
33   . 5 has some issues, RAM banking needs hardware flags to determine size
44   . 13 needs banked VRAM. -see Videomation
5   . 51 only half of the games work
56   . 64 has some IRQ problems - see Skull & Crossbones
67   . 67 display issues, but vrom fixed
78   . 70 (ark2j) starts on round 0 - is this right? Yep!
r1553r1554
30293030   }
30303031}
30313032
3033static void mapper51_set_banks( void ) {
3034   ppu2c0x_set_mirroring( 0, ( MMC1_bank1 == 3 ) ? PPU_MIRROR_HORZ : PPU_MIRROR_VERT );
3035
3036   if ( MMC1_bank1 & 0x01 ) {
3037      prg32( MMC1_bank2 );
3038   } else {
3039      prg16_cdef( ( MMC1_bank2 * 2 ) + 1 );
3040      prg16_89ab( MMC1_bank3 * 2 );
3041   }
3042}
3043
3044static WRITE8_HANDLER( mapper51_m_w )
3045{
3046   LOG_MMC(("mapper51_m_w, offset: %04x, data: %02x\n", offset, data));
3047
3048   MMC1_bank1 = ( ( data >> 1 ) & 0x01 ) | ( ( data >> 3 ) & 0x02 );
3049   mapper51_set_banks();
3050}
3051
3052static WRITE8_HANDLER( mapper51_w )
3053{
3054   LOG_MMC(("mapper51_w, offset: %04x, data: %02x\n", offset, data));
3055
3056   if ( offset & 0x4000 ) {
3057      MMC1_bank3 = data;
3058   } else {
3059      MMC1_bank2 = data;
3060   }
3061   mapper51_set_banks();
3062}
3063
30323064static WRITE8_HANDLER( mapper64_m_w )
30333065{
30343066   logerror("mapper64_m_w, offset: %04x, data: %02x\n", offset, data);
r1553r1554
45634595         prg32(MMC1_bank1);
45644596         chr8(MMC1_bank2);
45654597         break;
4598      case 51:
4599         MMC1_bank1 = 0x01;
4600         MMC1_bank2 = 0x00;
4601         MMC1_bank3 = 0x00;
4602         mapper51_set_banks();
4603         break;
45664604      case 70:
45674605//      case 86:
45684606         prg16_89ab (nes.prg_chunks-2);
r1553r1554
47074745   { 46, "15-in-1 Color Dreams",   NULL, NULL, mapper46_m_w, mapper46_w, NULL, NULL, NULL },
47084746   { 47, "2-in-1 MMC3",         NULL, NULL, mapper47_m_w, mapper4_w, NULL, NULL, mapper4_irq },
47094747   { 49, "4-in-1 MMC3",         NULL, NULL, mapper49_m_w, mapper4_w, NULL, NULL, mapper4_irq },
4748   { 51, "11-in-1",            NULL, NULL, mapper51_m_w, mapper51_w, NULL, NULL, NULL },
47104749   { 64, "Tengen",               NULL, NULL, mapper64_m_w, mapper64_w, NULL, NULL, mapper4_irq },
47114750   { 65, "Irem H3001",            NULL, NULL, NULL, mapper65_w, NULL, NULL, irem_irq },
47124751   { 66, "74161/32 Jaleco",      NULL, NULL, NULL, mapper66_w, NULL, NULL, NULL },
docs/messnew.txt
r1553r1554
2020  instead of dip switches and updated it to use the default black and white
2121  palette.  [Dirk Best]
2222
23- [NES] Added support for mappers 42, 43, 44, 45 (partial), 46, 47, 49, 206.
23- [NES] Added support for mappers 42, 43, 44, 45 (partial), 46, 47, 49,
24  51 (partial), 206.
2425  [Wilbert Pol]
2526
2627- [ORIC] Fixed tape loading.  (bug #241) [Wilbert Pol]

Previous 15994 Revisions Next


© 1998-2018 The MESS Team