Previous 15994 Revisions Next

r1572 Sunday 20th January, 2008 at 19:20:42 UTC by Wilbert Pol
[NES] Added support for mapper 240.
[docs]messnew.txt
[src/mess/machine]nes_mmc.c

src/mess/machine/nes_mmc.c
r1571r1572
1313   . 193 Missing PPU feature?
1414   . 228 seems wrong
1515   . 229 is preliminary
16   . 230 not working yet
17   . 232 not working yet
1618
1719   AD&D Hillsfar (mapper 1) seems to be broken. Not sure what's up there
1820
r1571r1572
45774579   }
45784580}
45794581
4582static WRITE8_HANDLER( mapper230_w )
4583{
4584   LOG_MMC(("mapper230_w, offset: %04x, data: %02x\n", offset, data));
4585
4586   if ( 1 ) {
4587      prg16_89ab( 7 );
4588   } else {
4589      if ( data & 0x20 ) {
4590         prg16_89ab( ( data & 0x1F ) + 8 );
4591         prg16_cdef( ( data & 0x1F ) + 8 );
4592      } else {
4593         prg32( ( ( data & 0x1E ) >> 1 ) + 4 );
4594      }
4595      ppu2c0x_set_mirroring( 0, ( data & 0x40 ) ? PPU_MIRROR_HORZ : PPU_MIRROR_VERT );
4596   }
4597}
4598
45804599static WRITE8_HANDLER( mapper231_w )
45814600{
45824601   int bank;
r1571r1572
45884607   chr8 ((data & 0x70) >> 4);
45894608}
45904609
4610static void mapper232_set_prg( void )
4611{
4612   prg16_89ab( ( MMC1_bank2 & 0x03 ) | ( ( MMC1_bank1 & 0x18 ) >> 1 ) );
4613   prg16_cdef( 3 | ( ( MMC1_bank1 & 0x18 ) >> 1 ) );
4614}
4615
4616static WRITE8_HANDLER( mapper232_w )
4617{
4618   LOG_MMC(("mapper232_w, offset: %04x, data: %02x\n", offset, data ));
4619
4620   if ( offset < 0x2000 ) {
4621      MMC1_bank1 = data;
4622   } else {
4623      MMC1_bank2 = data;
4624   }
4625}
4626
4627static WRITE8_HANDLER( mapper240_l_w )
4628{
4629   LOG_MMC(("mapper240_l_w, offset: %04x, data: %02x\n", offset, data));
4630
4631   prg32( data >> 4 );
4632   chr8( data & 0x0F );
4633}
4634
45914635/*
45924636// mapper_reset
45934637//
r1571r1572
49975041         prg16_89ab (0);
49985042         prg16_cdef (0);
49995043         break;
5044      case 230:
5045         prg16_89ab( 0 );
5046         prg16_cdef( 7 );
5047         break;
50005048      case 231:
50015049         prg16_89ab (nes.prg_chunks-2);
50025050         prg16_cdef (nes.prg_chunks-1);
50035051         break;
5052      case 232:
5053         MMC1_bank1 = 0x18;
5054         MMC1_bank2 = 0x00;
5055         mapper232_set_prg();
5056         break;
5057      case 240:
5058         prg32(0);
5059         break;
50045060      default:
50055061         /* Mapper not supported */
50065062         err = 2;
r1571r1572
51165172   { 227, "1200-in-1 bootleg",      NULL, NULL, NULL, mapper227_w, NULL, NULL, NULL },
51175173   { 228, "Action 52",            NULL, NULL, NULL, mapper228_w, NULL, NULL, NULL },
51185174   { 229, "31-in-1",            NULL, NULL, NULL, mapper229_w, NULL, NULL, NULL },
5119//   { 230, "22-in-1",            NULL, NULL, NULL, mapper230_w, NULL, NULL, NULL },
5120   { 231, "Nina-7 (AVE)",         NULL, NULL, NULL, mapper231_w, NULL, NULL, NULL }
5175   { 230, "22-in-1",            NULL, NULL, NULL, mapper230_w, NULL, NULL, NULL },
5176   { 231, "Nina-7 (AVE)",         NULL, NULL, NULL, mapper231_w, NULL, NULL, NULL },
5177   { 232, "Quattro",            NULL, NULL, mapper232_w, mapper232_w, NULL, NULL, NULL },
51215178// 234 - maxi-15
5179   { 240, "Jing Ke Xin Zhuan",      mapper240_l_w, NULL, NULL, NULL, NULL, NULL, NULL },
51225180};
51235181
51245182
docs/messnew.txt
r1571r1572
2222
2323- [NES] Added support for mappers 42, 43, 44, 45 (partial), 46, 47, 49,
2424  51 (partial), 57, 58, 61, 62, 112, 182, 188, 193 (not working), 200, 201,
25  202, 203, 206.
25  202, 203, 206, 240.
2626  [Wilbert Pol]
2727
2828- [ORIC] Fixed tape loading.  (bug #241) [Wilbert Pol]

Previous 15994 Revisions Next


© 1998-2018 The MESS Team