Previous 15994 Revisions Next

r1563 Sunday 20th January, 2008 at 14:15:12 UTC by Wilbert Pol
[NES] Added support for mapper 62.
[docs]messnew.txt
[src/mess/machine]nes_mmc.c

src/mess/machine/nes_mmc.c
r1562r1563
30983098
30993099      chr8( ( offset & 0x38 ) >> 3 );
31003100
3101      ppu2c0x_set_mirroring( 0, ( ( data & 0x02 ) >> 1 ) ? PPU_MIRROR_HORZ : PPU_MIRROR_VERT );
3101      ppu2c0x_set_mirroring( 0, ( data & 0x02 ) ? PPU_MIRROR_HORZ : PPU_MIRROR_VERT );
31023102   }
31033103}
31043104
r1562r1563
31173117      prg16_cdef( ( ( offset & 0x0F ) << 1 ) | ( ( offset & 0x20 ) >> 4 ) );
31183118      break;
31193119   }
3120   ppu2c0x_set_mirroring( 0, ( ( offset >> 7 ) & 0x01 ) ? PPU_MIRROR_HORZ : PPU_MIRROR_VERT );
3120   ppu2c0x_set_mirroring( 0, ( offset & 0x80 ) ? PPU_MIRROR_HORZ : PPU_MIRROR_VERT );
31213121}
31223122
3123static WRITE8_HANDLER( mapper62_w )
3124{
3125   LOG_MMC(("mapper62_w, offset :%04x, data: %02x\n", offset, data));
3126
3127   chr8( ( ( offset & 0x1F ) << 2 ) | ( data & 0x03 ) );
3128
3129   if ( offset & 0x20 ) {
3130      prg16_89ab( ( offset & 0x40 ) | ( ( offset >> 8 ) & 0x3F ) );
3131      prg16_cdef( ( offset & 0x40 ) | ( ( offset >> 8 ) & 0x3F ) );
3132   } else {
3133      prg32( ( ( offset & 0x40 ) | ( ( offset >> 8 ) & 0x3F ) ) >> 1 );
3134   }
3135
3136   ppu2c0x_set_mirroring( 0, ( offset & 0x80 ) ? PPU_MIRROR_HORZ : PPU_MIRROR_VERT );
3137}
3138
31233139static WRITE8_HANDLER( mapper64_m_w )
31243140{
31253141   logerror("mapper64_m_w, offset: %04x, data: %02x\n", offset, data);
r1562r1563
46724688         chr8(0);
46734689         break;
46744690      case 61:
4691      case 62:
46754692         prg32(0);
46764693         break;
46774694      case 70:
r1562r1563
48224839   { 57, "6-in-1",               NULL, NULL, NULL, mapper57_w, NULL, NULL, NULL },
48234840   { 58, "X-in-1",               NULL, NULL, NULL, mapper58_w, NULL, NULL, NULL },
48244841   { 61, "20-in-1",            NULL, NULL, NULL, mapper61_w, NULL, NULL, NULL },
4842   { 62, "X-in-1",               NULL, NULL, NULL, mapper62_w, NULL, NULL, NULL },
48254843   { 64, "Tengen",               NULL, NULL, mapper64_m_w, mapper64_w, NULL, NULL, mapper4_irq },
48264844   { 65, "Irem H3001",            NULL, NULL, NULL, mapper65_w, NULL, NULL, irem_irq },
48274845   { 66, "74161/32 Jaleco",      NULL, NULL, NULL, mapper66_w, NULL, NULL, NULL },
docs/messnew.txt
r1562r1563
2121  palette.  [Dirk Best]
2222
2323- [NES] Added support for mappers 42, 43, 44, 45 (partial), 46, 47, 49,
24  51 (partial), 57, 58, 61, 206.
24  51 (partial), 57, 58, 61, 62, 206.
2525  [Wilbert Pol]
2626
2727- [ORIC] Fixed tape loading.  (bug #241) [Wilbert Pol]

Previous 15994 Revisions Next


© 1998-2018 The MESS Team