Previous 15994 Revisions Next

r8320 Friday 25th June, 2010 at 17:29:21 UTC by Fabio Priuli
[NES] Added pcb code to emulate board BMC-810544-C-A1 (based on FCEUMM), used by the 200-in-1 pirate cart containing Elfland
[src/mess/machine]nes_mmc.h nes_pcb.c nes_unif.c

src/mess/machine/nes_pcb.c
r8319r8320
570570   { "BMC-22GAMES",         BMC_22GAMES },
571571   { "BMC-20IN1",           BMC_20IN1 },
572572   { "BMC-110IN1",          BMC_110IN1 },
573   { "BMC-810544-C-A1",     UNSUPPORTED_BOARD },
573   { "BMC-810544-C-A1",     BMC_810544 },
574574   { "BMC-411120-C",        UNSUPPORTED_BOARD },
575575   { "BMC-830118C",         UNSUPPORTED_BOARD },
576576   { "BMC-12-IN-1",         UNSUPPORTED_BOARD },
r8319r8320
1068310683 
1068410684 BMC-BS-5
1068510685 
10686 Games: a few 4 in 1 multicarts
10687 
1068610688 *************************************************************/
1068710689
1068810690static void bmc_bs5_update_banks( running_machine *machine )
r8319r8320
1071910721   bmc_bs5_update_banks(space->machine);
1072010722}
1072110723
10724/*************************************************************
10725 
10726 BMC-810544-C-A1
10727 
10728 Games: 200-in-1 Elfland
1072210729
10730 *************************************************************/
10731
10732static WRITE8_HANDLER( bmc_810544_w )
10733{
10734   UINT8 bank = (offset >> 7);
10735   LOG_MMC(("bmc_810544_w, offset: %04x, data: %02x\n", offset, data));
10736
10737   if (!BIT(offset, 6))
10738   {
10739      prg16_89ab(space->machine, (bank << 1) | BIT(offset, 5));
10740      prg16_cdef(space->machine, (bank << 1) | BIT(offset, 5));
10741   }
10742   else
10743      prg32(space->machine, bank);
10744
10745   set_nt_mirroring(space->machine, BIT(data, 4) ? PPU_MIRROR_HORZ : PPU_MIRROR_VERT);
10746   
10747   chr8(space->machine, offset & 0x0f, CHRROM);
10748}
10749
10750
10751
1072310752typedef void (*nes_ppu_latch)(running_device *device, offs_t offset);
1072410753
1072510754struct nes_memory_accessor
r8319r8320
1097611005   { BMC_GOLDENCARD_6IN1,  NES_WRITEONLY(bmc_gc6in1_l_w), NES_NOACCESS, NES_WRITEONLY(bmc_gc6in1_w), NULL, NULL, mmc3_irq },
1097711006   { BMC_VT5201,           NES_NOACCESS, NES_NOACCESS, {bmc_vt5201_w, bmc_vt5201_r},         NULL, NULL, NULL },
1097811007   { BMC_BENSHENG_BS5,     NES_NOACCESS, NES_NOACCESS, NES_WRITEONLY(bmc_bs5_w),             NULL, NULL, NULL },
11008   { BMC_810544,           NES_NOACCESS, NES_NOACCESS, NES_WRITEONLY(bmc_810544_w),          NULL, NULL, NULL },
1097911009   { UNSUPPORTED_BOARD,    NES_NOACCESS, NES_NOACCESS, NES_NOACCESS,                         NULL, NULL, NULL },
1098011010   //
1098111011};
src/mess/machine/nes_unif.c
r8319r8320
12781278         bmc_bs5_update_banks(machine);
12791279         break;
12801280         
1281      case BMC_810544:
1282         prg16_89ab(machine, 0);
1283         prg16_cdef(machine, 0);
1284         chr8(machine, 0, CHRROM);
1285         set_nt_mirroring(machine, PPU_MIRROR_VERT);
1286         break;
1287         
12811288      case UNSUPPORTED_BOARD:
12821289      default:
12831290         /* Mapper not supported */
src/mess/machine/nes_mmc.h
r8319r8320
7575   BMC_15IN1, BMC_SUPERHIK_300IN1, BMC_9999999IN1, BMC_SUPERGUN_20IN1,
7676   BMC_GOLDENCARD_6IN1, BMC_72IN1, BMC_SUPER_42IN1, BMC_76IN1,
7777   BMC_1200IN1, BMC_31IN1, BMC_22GAMES, BMC_20IN1, BMC_110IN1,
78   BMC_GKA, BMC_GKB, BMC_VT5201, BMC_BENSHENG_BS5,
78   BMC_GKA, BMC_GKB, BMC_VT5201, BMC_BENSHENG_BS5, BMC_810544,
7979   /* Unlicensed */
8080   UNL_8237, UNL_CC21, UNL_AX5705, UNL_KOF97,
8181   UNL_N625092, UNL_SC127, UNL_SMB2J, UNL_T230,

Previous 15994 Revisions Next


© 1998-2018 The MESS Team