Previous 15994 Revisions Next

r1545 Saturday 19th January, 2008 at 17:00:09 UTC by Wilbert Pol
[NES] Added support for mapper 42.
[docs]messnew.txt
[src/mess/machine]nes_mmc.c

src/mess/machine/nes_mmc.c
r1544r1545
28372837   }
28382838}
28392839
2840static WRITE8_HANDLER( mapper42_w )
2841{
2842   LOG_MMC(("mapper42_w, offset: %04x, data: %02x\n", offset, data));
2843
2844   if ( offset >= 0x7000 )
2845   {
2846      switch( offset & 0x03 )
2847      {
2848      case 0x00:
2849         memory_set_bankptr (5, &nes.rom[( data & ( ( nes.prg_chunks << 1 ) -1 ) ) * 0x2000 + 0x10000]);
2850         break;
2851      case 0x01:
2852         ppu2c0x_set_mirroring( 0, ( data & 0x08 ) ? PPU_MIRROR_HORZ : PPU_MIRROR_VERT );
2853         break;
2854      case 0x02:
2855         /* Check if IRQ is being enabled */
2856         if ( ! IRQ_enable && ( data & 0x02 ) ) {
2857            IRQ_enable = 1;
2858            timer_adjust(nes_irq_timer, ATTOTIME_IN_CYCLES(24576, 0), 0, attotime_never);
2859         }
2860         if ( ! ( data & 0x02 ) ) {
2861            IRQ_enable = 0;
2862            timer_adjust(nes_irq_timer, attotime_never, 0, attotime_never);
2863         }
2864         break;
2865      }
2866   }
2867}
2868
28402869static WRITE8_HANDLER( mapper64_m_w )
28412870{
28422871   logerror("mapper64_m_w, offset: %04x, data: %02x\n", offset, data);
r1544r1545
43104339         /* Can switch 32k prgm banks */
43114340         prg32(0);
43124341         break;
4342      case 42:
4343         /* Switch in the last 32KB */
4344         prg32( 0xFF );
4345         break;
43134346      case 70:
43144347//      case 86:
43154348         prg16_89ab (nes.prg_chunks-2);
r1544r1545
44474480   { 34, "Nina-1",               NULL, NULL, mapper34_m_w, mapper34_w, NULL, NULL, NULL },
44484481   { 40, "SMB2j (bootleg)",      NULL, NULL, NULL, mapper40_w, NULL, NULL, mapper40_irq },
44494482   { 41, "Caltron 6-in-1",         NULL, NULL, mapper41_m_w, mapper41_w, NULL, NULL, NULL },
4450// 42 - "Mario Baby" pirate cart
4483   { 42, "Mario Baby",            NULL, NULL, NULL, mapper42_w, NULL, NULL, NULL },
44514484   { 64, "Tengen",               NULL, NULL, mapper64_m_w, mapper64_w, NULL, NULL, mapper4_irq },
44524485   { 65, "Irem H3001",            NULL, NULL, NULL, mapper65_w, NULL, NULL, irem_irq },
44534486   { 66, "74161/32 Jaleco",      NULL, NULL, NULL, mapper66_w, NULL, NULL, NULL },
docs/messnew.txt
r1544r1545
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 mapper 42.  [Wilbert Pol]
24
2325- [ORIC] Fixed tape loading.  (bug #241) [Wilbert Pol]
2426
2527- [TI99/GENEVE] More floppy cleanups; fixed TI99_8 regression and made the

Previous 15994 Revisions Next


© 1998-2018 The MESS Team