Previous 15994 Revisions Next

r1560 Sunday 20th January, 2008 at 13:40:41 UTC by Wilbert Pol
[NES] Added support for mapper 57.
[docs]messnew.txt
[src/mess/machine]nes_mmc.c

src/mess/machine/nes_mmc.c
r1559r1560
22   TODO:
33   . 5 has some issues, RAM banking needs hardware flags to determine size
44   . 13 needs banked VRAM. -see Videomation
5   . 45 mapper is not fully working
56   . 51 only half of the games work
67   . 64 has some IRQ problems - see Skull & Crossbones
78   . 67 display issues, but vrom fixed
r1559r1560
30613062   mapper51_set_banks();
30623063}
30633064
3065static WRITE8_HANDLER( mapper57_w )
3066{
3067   LOG_MMC(("mapper57_w, offset: %04x, data: %02x\n", offset, data));
3068
3069   if ( offset & 0x0800 ) {
3070      MMC1_bank2 = data;
3071   } else {
3072      MMC1_bank1 = data;
3073   }
3074
3075   if ( MMC1_bank2 & 0x80 ) {
3076      prg32( 2 | ( MMC1_bank2 >> 6 ) );
3077   } else {
3078      prg16_89ab( ( MMC1_bank2 >> 5 ) & 0x03 );
3079      prg16_cdef( ( MMC1_bank2 >> 5 ) & 0x03 );
3080   }
3081
3082   ppu2c0x_set_mirroring( 0, ( MMC1_bank2 & 0x08 ) ? PPU_MIRROR_HORZ : PPU_MIRROR_VERT );
3083
3084   chr8( ( MMC1_bank1 & 0x03 ) | ( MMC1_bank2 & 0x07 ) | ( ( MMC1_bank2 & 0x10 ) >> 1 ) );
3085}
3086
30643087static WRITE8_HANDLER( mapper64_m_w )
30653088{
30663089   logerror("mapper64_m_w, offset: %04x, data: %02x\n", offset, data);
r1559r1560
46014624         MMC1_bank3 = 0x00;
46024625         mapper51_set_banks();
46034626         break;
4627      case 57:
4628         MMC1_bank1 = 0x00;
4629         MMC1_bank2 = 0x00;
4630         prg16_89ab( 0 );
4631         prg16_cdef( 0 );
4632         chr8(0);
4633         break;
46044634      case 70:
46054635//      case 86:
46064636         prg16_89ab (nes.prg_chunks-2);
r1559r1560
47464776   { 47, "2-in-1 MMC3",         NULL, NULL, mapper47_m_w, mapper4_w, NULL, NULL, mapper4_irq },
47474777   { 49, "4-in-1 MMC3",         NULL, NULL, mapper49_m_w, mapper4_w, NULL, NULL, mapper4_irq },
47484778   { 51, "11-in-1",            NULL, NULL, mapper51_m_w, mapper51_w, NULL, NULL, NULL },
4779   { 57, "6-in-1",               NULL, NULL, NULL, mapper57_w, NULL, NULL, NULL },
47494780   { 64, "Tengen",               NULL, NULL, mapper64_m_w, mapper64_w, NULL, NULL, mapper4_irq },
47504781   { 65, "Irem H3001",            NULL, NULL, NULL, mapper65_w, NULL, NULL, irem_irq },
47514782   { 66, "74161/32 Jaleco",      NULL, NULL, NULL, mapper66_w, NULL, NULL, NULL },
docs/messnew.txt
r1559r1560
2121  palette.  [Dirk Best]
2222
2323- [NES] Added support for mappers 42, 43, 44, 45 (partial), 46, 47, 49,
24  51 (partial), 206.
24  51 (partial), 57, 206.
2525  [Wilbert Pol]
2626
2727- [ORIC] Fixed tape loading.  (bug #241) [Wilbert Pol]

Previous 15994 Revisions Next


© 1998-2018 The MESS Team