Previous 15994 Revisions Next

r15307 Thursday 24th May, 2012 at 13:52:52 UTC by Fabio Priuli
nes.c: added support for a bootleg board by YOKO Soft used by a couple of fighting games. [Fabio Priuli]
[hash]nes.xml
[src/mess/machine]nes_mmc.h nes_pcb.c

hash/nes.xml
r15306r15307
6558865588      </part>
6558965589   </software>
6559065590
65591   <software name="mstrfgt6" supported="no">
65591   <software name="mstrfgt6" supported="partial">
6559265592      <description>Master Fighter VI' (Asia)</description>
6559365593      <year>1993</year>
6559465594      <publisher>Yoko</publisher>
r15306r15307
6585165851   </software>
6585265852
6585365853<!-- These carts use the same prg/chr but different dip settings, to choose between the two games -->
65854   <software name="mk2y" supported="no">
65854   <software name="mk2y">
6585565855      <description>Mortal Kombat II ~ Mortal Kombat V Pro (Asia)</description>
6585665856      <year>1994</year>
6585765857      <publisher>Yoko</publisher>
r15306r15307
6791367913      <year>19??</year>
6791467914      <publisher>&lt;unknown&gt;</publisher>
6791567915      <part name="cart" interface="nes_cart">
67916         <feature name="pcb" value="UNKNOWN" /> <!-- header says mapper 176, but it's wrong -->
67916         <feature name="pcb" value="BMC-FK23C" /> <!-- header says mapper 176, but it's wrong -->
6791767917         <dataarea name="chr" size="1048576">
6791867918            <rom name="4-in-1 (bs-8088)[p1][!].chr" size="1048576" crc="ff3e4986" sha1="c5f683398ad56d6d0f622d680150ed2b2cb6819e" offset="0" status="baddump" />
6791967919         </dataarea>
r15306r15307
6792867928      <year>19??</year>
6792967929      <publisher>&lt;unknown&gt;</publisher>
6793067930      <part name="cart" interface="nes_cart">
67931         <feature name="pcb" value="UNKNOWN" /> <!-- header says mapper 176, but it's wrong -->
67931         <feature name="pcb" value="BMC-FK23CA" /> <!-- header says mapper 176, but it's wrong -->
6793267932         <dataarea name="chr" size="524288">
6793367933            <rom name="4-in-1 (fk-8008)[p1][!].chr" size="524288" crc="728641c2" sha1="af719cb6687e29935a8e11bc1046fbc2868f9c0f" offset="0" status="baddump" />
6793467934         </dataarea>
r15306r15307
6794367943      <year>19??</year>
6794467944      <publisher>&lt;unknown&gt;</publisher>
6794567945      <part name="cart" interface="nes_cart">
67946         <feature name="pcb" value="UNKNOWN" /> <!-- header says mapper 176, but it's wrong -->
67946         <feature name="pcb" value="BMC-FK23C" /> <!-- header says mapper 176, but it's wrong -->
6794767947         <dataarea name="chr" size="1048576">
6794867948            <rom name="4-in-1 (fk-8050)[p1][!].chr" size="1048576" crc="31c94555" sha1="225eba69706605525bf7f26ee7487ec0311327af" offset="0" status="baddump" />
6794967949         </dataarea>
r15306r15307
6795867958      <year>19??</year>
6795967959      <publisher>&lt;unknown&gt;</publisher>
6796067960      <part name="cart" interface="nes_cart">
67961         <feature name="pcb" value="UNKNOWN" /> <!-- header says mapper 176, but it's wrong -->
67961         <feature name="pcb" value="BMC-FK23C" /> <!-- header says mapper 176, but it's wrong -->
6796267962         <dataarea name="chr" size="524288">
6796367963            <rom name="4-in-1 (kt-3445ab)[p1].chr" size="524288" crc="b2ca3bbc" sha1="84bff553437983a5b06c4e145d0fe1629aab99dc" offset="0" status="baddump" />
6796467964         </dataarea>
r15306r15307
6825468254      <year>19??</year>
6825568255      <publisher>&lt;unknown&gt;</publisher>
6825668256      <part name="cart" interface="nes_cart">
68257         <feature name="pcb" value="UNKNOWN" /> <!-- header says mapper 176, but it's wrong -->
68257         <feature name="pcb" value="BMC-FK23C" /> <!-- header says mapper 176, but it's wrong -->
6825868258         <dataarea name="chr" size="1048576">
6825968259            <rom name="5-in-1 (k5003)[p1][!].chr" size="1048576" crc="f3cf76f3" sha1="8bd4bddc62116f857c19c3ce90af509ca5f0f621" offset="0" status="baddump" />
6826068260         </dataarea>
r15306r15307
6833568335      <year>19??</year>
6833668336      <publisher>&lt;unknown&gt;</publisher>
6833768337      <part name="cart" interface="nes_cart">
68338         <feature name="pcb" value="UNKNOWN" /> <!-- header says mapper 176, but it's wrong -->
68338         <feature name="pcb" value="BMC-FK23C" /> <!-- header says mapper 176, but it's wrong -->
6833968339         <dataarea name="chr" size="1048576">
6834068340            <rom name="6-in-1 (fk-3004)[p1][!].chr" size="1048576" crc="04ce4569" sha1="c3c29c70a99d5db56574b1e15c666329c8a55d88" offset="0" />
6834168341         </dataarea>
src/mess/machine/nes_mmc.h
r15306r15307
9393   MAGICSERIES_MD, KASING_BOARD, FUTUREMEDIA_BOARD, FUKUTAKE_BOARD, SOMERI_SL12,
9494   HENGEDIANZI_BOARD, HENGEDIANZI_XJZB, SUBOR_TYPE0, SUBOR_TYPE1,
9595   KAISER_KS7058, KAISER_KS7032, KAISER_KS7022, KAISER_KS7017, KAISER_KS7012, KAISER_KS202,
96   CNE_DECATHLON, CNE_FSB, CNE_SHLZ, CONY_BOARD, RCM_GS2015, RCM_TETRISFAMILY,
96   CNE_DECATHLON, CNE_FSB, CNE_SHLZ, CONY_BOARD, YOKO_BOARD, RCM_GS2015, RCM_TETRISFAMILY,
9797   WAIXING_TYPE_A, WAIXING_TYPE_A_1, WAIXING_TYPE_B, WAIXING_TYPE_C, WAIXING_TYPE_D,
9898   WAIXING_TYPE_E, WAIXING_TYPE_F, WAIXING_TYPE_G, WAIXING_TYPE_H,
9999   WAIXING_TYPE_I, WAIXING_TYPE_J,
src/mess/machine/nes_pcb.c
r15306r15307
475475   { "SUBOR-BOARD-1",    SUBOR_TYPE1 },
476476   { "SOMERITEAM-SL-12", SOMERI_SL12 }, // mapper 116
477477   { "UNL-CONY",         CONY_BOARD },
478   { "UNL-YOKO",         CONY_BOARD },   // not exactly the same, needs better support
478   { "UNL-YOKO",         YOKO_BOARD },
479479   { "UNL-GOUDER",       GOUDER_37017 },
480480   { "UNL-NITRA",        NITRA_TDA },
481481   { "UNL-HOSENKAN",     HOSENKAN_BOARD },
r15306r15307
49024902}
49034903
49044904/*************************************************************
4905 
4906 Yoko Bootleg Board
4907 
4908 Games: Mortal Kombat II, Master Figther VI'
4909 
4910 
4911 Very similar to Cony board
4912 
4913 In MESS: Supported.
4914 
4915 *************************************************************/
49054916
4917static WRITE8_HANDLER( yoko_l_w )
4918{
4919   nes_state *state = space->machine().driver_data<nes_state>();
4920   LOG_MMC(("cony_l_w, offset: %04x, data: %02x\n", offset, data));
4921   
4922   if (offset >= 0x1300) // from 0x5400
4923      state->m_mapper83_low_reg[offset & 0x03] = data;
4924}
4925
4926static READ8_HANDLER( yoko_l_r )
4927{
4928   nes_state *state = space->machine().driver_data<nes_state>();
4929   LOG_MMC(("cony_l_r, offset: %04x\n", offset));
4930   
4931   if (offset >= 0x0f00 && offset < 0x1300)   // 0x5000
4932   {
4933      // read dipswitch bit! - currently unimplemented
4934   }
4935   if (offset >= 0x1300) // from 0x5400
4936      return state->m_mapper83_low_reg[offset & 0x03];
4937   else
4938      return 0x00;
4939}
4940
4941static void yoko_set_prg( running_machine &machine )
4942{
4943   nes_state *state = machine.driver_data<nes_state>();
4944   if (state->m_mmc_reg[0] & 0x10)
4945   {
4946      int base = (state->m_mmc_reg[1] & 0x08) << 1;
4947      prg8_89(machine, base | (state->m_mapper83_reg[0] & 0x0f));
4948      prg8_ab(machine, base | (state->m_mapper83_reg[1] & 0x0f));
4949      prg8_cd(machine, base | (state->m_mapper83_reg[2] & 0x0f));
4950      prg8_ef(machine, base | 0x0f);
4951   }
4952   else if (state->m_mmc_reg[0] & 0x08)
4953      prg32(machine, state->m_mmc_reg[1] >> 1);
4954   else
4955   {
4956      prg16_89ab(machine, state->m_mmc_reg[1]);
4957      prg16_cdef(machine, 0xff);
4958   }
4959}
4960
4961static void yoko_set_chr( running_machine &machine )
4962{
4963   nes_state *state = machine.driver_data<nes_state>();
4964   chr2_0(machine, state->m_mapper83_reg[4], CHRROM);
4965   chr2_2(machine, state->m_mapper83_reg[5], CHRROM);
4966   chr2_4(machine, state->m_mapper83_reg[6], CHRROM);
4967   chr2_6(machine, state->m_mapper83_reg[7], CHRROM);
4968}
4969
4970static WRITE8_HANDLER( yoko_w )
4971{
4972   nes_state *state = space->machine().driver_data<nes_state>();
4973   LOG_MMC(("yoko_w, offset: %04x, data: %02x\n", offset, data));
4974   
4975   switch (offset & 0x0c17)
4976   {
4977      case 0x0000:
4978         state->m_mmc_reg[1] = data;
4979         yoko_set_prg(space->machine());
4980         break;
4981      case 0x400:
4982         state->m_mmc_reg[0] = data;
4983         if (data & 1)
4984            set_nt_mirroring(space->machine(), PPU_MIRROR_HORZ);
4985         else
4986            set_nt_mirroring(space->machine(), PPU_MIRROR_VERT);
4987         yoko_set_prg(space->machine());
4988         break;
4989      case 0x0800:
4990         state->m_IRQ_count = (state->m_IRQ_count & 0xff00) | data;
4991         break;
4992      case 0x0801:
4993         state->m_IRQ_enable = state->m_mmc_reg[0] & 0x80;
4994         state->m_IRQ_count = (data << 8) | (state->m_IRQ_count & 0xff);
4995         break;
4996      case 0x0c00:
4997      case 0x0c01:
4998      case 0x0c02:
4999         state->m_mapper83_reg[offset & 3] = data;
5000         yoko_set_prg(space->machine());
5001         break;
5002      case 0x0c10:
5003      case 0x0c11:
5004      case 0x0c16:
5005      case 0x0c17:
5006         state->m_mapper83_reg[4 + (offset & 3)] = data;
5007         yoko_set_chr(space->machine());
5008         break;
5009   }
5010}
5011
5012/*************************************************************
5013
49065014 Board DREAMTECH01
49075015
49085016 Games: Korean Igo
r15306r15307
1190412012   { CAMERICA_BF9096,      NES_NOACCESS, NES_WRITEONLY(bf9096_w), NES_WRITEONLY(bf9096_w),   NULL, NULL, NULL },
1190512013   { CAMERICA_GOLDENFIVE,  NES_NOACCESS, NES_NOACCESS, NES_WRITEONLY(golden5_w),             NULL, NULL, NULL },
1190612014   { CONY_BOARD,           {FUNC(cony_l_w), FUNC(cony_l_r)}, NES_NOACCESS, NES_WRITEONLY(cony_w),        NULL, NULL, sunsoft3_irq },
12015   { YOKO_BOARD,           {FUNC(yoko_l_w), FUNC(yoko_l_r)}, NES_NOACCESS, NES_WRITEONLY(yoko_w),        NULL, NULL, sunsoft3_irq },
1190712016   { DREAMTECH_BOARD,      NES_WRITEONLY(dreamtech_l_w), NES_NOACCESS, NES_NOACCESS,         NULL, NULL, NULL },
1190812017   { FUTUREMEDIA_BOARD,    NES_NOACCESS, NES_NOACCESS, NES_WRITEONLY(futuremedia_w),         NULL, NULL, futuremedia_irq },
1190912018   { FUKUTAKE_BOARD,       {FUNC(fukutake_l_w), FUNC(fukutake_l_r)}, NES_NOACCESS, NES_NOACCESS,         NULL, NULL, NULL },
r15306r15307
1262412733
1262512734         // mapper 83
1262612735      case CONY_BOARD:
12736      case YOKO_BOARD:
1262712737         state->m_mapper83_reg[9] = 0x0f;
1262812738         prg8_cd(machine, 0x1e);
1262912739         prg8_ef(machine, 0x1f);

Previous 15994 Revisions Next


© 1998-2018 The MESS Team