Previous 15994 Revisions Next

r15301 Thursday 24th May, 2012 at 11:39:31 UTC by Fabio Priuli
nes.c: added support for UNL-FS304 board used by A Link to the Past (Waixing) [Fabio Priuli]
[hash]nes.xml
[src/mess/machine]nes_mmc.h nes_pcb.c

hash/nes.xml
r15300r15301
5068950689      </part>
5069050690   </software>
5069150691
50692<!-- TODO: Add support for proper pcb type -->
50693   <software name="zelda3c" supported="no">
50692   <software name="zelda3c">
5069450693      <description>Zelda - A Link to the Past (Chi)</description>
5069550694      <year>19??</year>
5069650695      <publisher>Waixing</publisher>
r15300r15301
5070450703         <!-- 8k VRAM on cartridge -->
5070550704         <dataarea name="vram" size="8192">
5070650705         </dataarea>
50706         <!-- 8k WRAM on cartridge -->
50707         <dataarea name="wram" size="8192">
50708         </dataarea>
5070750709      </part>
5070850710   </software>
5070950711
src/mess/machine/nes_mmc.h
r15300r15301
8080   BMC_POWERFUL_255,
8181   /* Unlicensed */
8282   UNL_8237, UNL_CC21, UNL_AX5705, UNL_KOF97, UNL_KS7057,
83   UNL_N625092, UNL_SC127, UNL_SMB2J, UNL_T230,
83   UNL_N625092, UNL_SC127, UNL_SMB2J, UNL_T230, UNL_FS304,
8484   UNL_UXROM, UNL_MK2, UNL_XZY, UNL_KOF96,
8585   UNL_SUPERFIGHTER3, UNL_RACERMATE, UNL_EDU2K,
8686   UNL_SHJY3, UNL_STUDYNGAME, UNL_603_5052, UNL_H2288,
src/mess/machine/nes_pcb.c
r15300r15301
534534   { "UNL-T-230",        UNL_T230 },
535535   { "UNL-STUDYNGAME",   UNL_STUDYNGAME },   // mapper 39
536536   { "UNL-OneBus",       UNSUPPORTED_BOARD },
537   { "UNL-FS304",        UNSUPPORTED_BOARD },   // used in Zelda 3 by Waixing (support missing atm)
537   { "UNL-FS304",        UNL_FS304 },   // used in Zelda 3 by Waixing
538538   { "UNL-43272",        UNSUPPORTED_BOARD },   // used in Gaau Hok Gwong Cheung (support missing atm)
539539   { "UNL-LH10",         UNSUPPORTED_BOARD },   // used in Fuuun Shaolin Kyo (FDS Conversion) (support missing atm)
540540//
r15300r15301
91019101   }
91029102}
91039103
9104
91049105/*************************************************************
9106 
9107 Board UNL-FS304
9108 
9109 Games: A Link to the Past by Waixing
9110 
9111 iNES: mapper 162? (only found in UNIF format)
9112 
9113 In MESS: Supported.
9114 
9115 *************************************************************/
91059116
9117static WRITE8_HANDLER( unl_fs304_l_w )
9118{
9119   nes_state *state = space->machine().driver_data<nes_state>();
9120   LOG_MMC(("unl_fs304_l_w, offset: %04x, data: %02x\n", offset, data));
9121   int bank;
9122   offset += 0x100;
9123
9124   if (offset >= 0x1000)
9125   {
9126      state->m_mmc_reg[(offset >> 8) & 3] = data;
9127      bank = ((state->m_mmc_reg[2] & 0x0f) << 4) | BIT(state->m_mmc_reg[1], 1) | (state->m_mmc_reg[0] & 0x0e);
9128      prg32(space->machine(), bank);
9129      chr8(space->machine(), 0, CHRRAM);
9130   }
9131}
9132
9133
9134/*************************************************************
9135
91069136        BOOTLEG CART VERSIONS OF FDS GAMES
91079137
91089138 *************************************************************/
r15300r15301
1196711997   { UNL_EDU2K,            NES_NOACCESS, NES_NOACCESS, NES_WRITEONLY(edu2k_w),               NULL, NULL, NULL },
1196811998   { UNL_SHJY3,            NES_NOACCESS, NES_NOACCESS, NES_WRITEONLY(shjy3_w),               NULL, NULL, shjy3_irq },
1196911999   { UNL_H2288,            {FUNC(h2288_l_w), FUNC(h2288_l_r)}, NES_NOACCESS, NES_WRITEONLY(h2288_w),     NULL, NULL, mmc3_irq },
12000   { UNL_FS304,            NES_WRITEONLY(unl_fs304_l_w), NES_NOACCESS, NES_NOACCESS,         NULL, NULL, NULL },
1197012001   //
1197112002   { BTL_AISENSHINICOL,    NES_NOACCESS, NES_NOACCESS, NES_WRITEONLY(btl_mariobaby_w),       NULL, NULL, NULL },
1197212003   { BTL_DRAGONNINJA,      NES_NOACCESS, NES_NOACCESS, NES_WRITEONLY(btl_dn_w),              NULL, NULL, btl_dn_irq },

Previous 15994 Revisions Next


© 1998-2018 The MESS Team