Previous 15994 Revisions Next

r1561 Sunday 20th January, 2008 at 13:51:49 UTC by Wilbert Pol
[NES] Added support for mapper 58.
[docs]messnew.txt
[src/mess/machine]nes_mmc.c

src/mess/machine/nes_mmc.c
r1560r1561
30843084   chr8( ( MMC1_bank1 & 0x03 ) | ( MMC1_bank2 & 0x07 ) | ( ( MMC1_bank2 & 0x10 ) >> 1 ) );
30853085}
30863086
3087static WRITE8_HANDLER( mapper58_w )
3088{
3089   LOG_MMC(("mapper58_w, offset: %04x, data: %02x\n", offset, data));
3090
3091   if ( offset & 0x40 ) {
3092      prg16_89ab( offset & 0x07 );
3093      prg16_cdef( offset & 0x07 );
3094   } else {
3095      prg32( ( offset & 0x06 ) >> 1 );
3096   }
3097
3098   chr8( ( offset & 0x38 ) >> 3 );
3099
3100   ppu2c0x_set_mirroring( 0, ( ( data & 0x02 ) >> 1 ) ? PPU_MIRROR_HORZ : PPU_MIRROR_VERT );
3101}
3102
30873103static WRITE8_HANDLER( mapper64_m_w )
30883104{
30893105   logerror("mapper64_m_w, offset: %04x, data: %02x\n", offset, data);
r1560r1561
46314647         prg16_cdef( 0 );
46324648         chr8(0);
46334649         break;
4650      case 58:
4651         prg32(0);
4652         chr8(0);
4653         break;
46344654      case 70:
46354655//      case 86:
46364656         prg16_89ab (nes.prg_chunks-2);
r1560r1561
47774797   { 49, "4-in-1 MMC3",         NULL, NULL, mapper49_m_w, mapper4_w, NULL, NULL, mapper4_irq },
47784798   { 51, "11-in-1",            NULL, NULL, mapper51_m_w, mapper51_w, NULL, NULL, NULL },
47794799   { 57, "6-in-1",               NULL, NULL, NULL, mapper57_w, NULL, NULL, NULL },
4800   { 58, "X-in-1",               NULL, NULL, NULL, mapper58_w, NULL, NULL, NULL },
47804801   { 64, "Tengen",               NULL, NULL, mapper64_m_w, mapper64_w, NULL, NULL, mapper4_irq },
47814802   { 65, "Irem H3001",            NULL, NULL, NULL, mapper65_w, NULL, NULL, irem_irq },
47824803   { 66, "74161/32 Jaleco",      NULL, NULL, NULL, mapper66_w, NULL, NULL, NULL },
docs/messnew.txt
r1560r1561
2121  palette.  [Dirk Best]
2222
2323- [NES] Added support for mappers 42, 43, 44, 45 (partial), 46, 47, 49,
24  51 (partial), 57, 206.
24  51 (partial), 57, 58, 206.
2525  [Wilbert Pol]
2626
2727- [ORIC] Fixed tape loading.  (bug #241) [Wilbert Pol]

Previous 15994 Revisions Next


© 1998-2018 The MESS Team