Previous 199869 Revisions Next

r31097 Wednesday 25th June, 2014 at 15:03:02 UTC by Fabio Priuli
gameboy: Added support for Li Cheng pirate mapper. [taizou, Fabio Priuli]
[hash]gbcolor.xml
[src/emu/bus/gameboy]gb_slot.c gb_slot.h mbc.c mbc.h
[src/mess/drivers]gb.c

trunk/hash/gbcolor.xml
r31096r31097
2363623636      </part>
2363723637   </software>
2363823638
23639<!-- Li Cheng games -->
23640
23641<!--
23642
23643  * CBA010 Shui Hu Shen Shou 水浒神兽
23644  * CBA011 Shu Ma Bao Long 3 - Shui Jing Ban 数码暴龙-水晶版
23645  * CBA033 Emo Cheng 2 - Fengyun Pian 恶魔城2-风云篇
23646  * CBA060 Mingzhu Koudai Guaishou 2 明珠口袋怪兽2
23647  * CBA064 Gangdan Wuyu 2 钢弹物语2
23648  * CBA065 Mingzhu Koudai Guaishou 3 明珠口袋怪兽3
23649  * CBA073 Shuihu Zhuan - Jingdian Ban 水浒传-经典版
23650  * CBA075 Yingxiong Jian 2 英雄剑2
23651  * CBA076 Xi You Ji 西游记
23652  * CBA078 Shuma Baolong - Diannao Pian 数码暴龙-电脑篇
23653  * CBA079 Yingxiong Tianxia 英雄天下
23654  * CBA080 Sanguozhi Wudai 三国志五代
23655
23656-->
23657
23658   <software name="shuihusslc" cloneof="shuihuss">
23659      <description>Shui Hu Shen Shou (Chi, Li Cheng)</description>
23660      <year>200?</year>
23661      <publisher>Li Cheng</publisher>
23662      <info name="serial" value="CBA010"/>
23663      <info name="alt_title" value="水浒神兽"/>
23664      <part name="cart" interface="gameboy_cart">
23665         <feature name="slot" value="rom_licheng" />
23666         <!-- cartridge ram -->
23667         <dataarea name="rom" size="2097152">
23668            <rom name="shuihu shenshou (unlicensed, chinese) (cba010) [raw dump].bin" size="2097152" crc="618080cd" sha1="93aaddc93941cf53978acd9a88e6525b61c7ea24" offset="0" />
23669         </dataarea>
23670         <dataarea name="nvram" size="8192"> <!-- Unconfirmed size -->
23671         </dataarea>
23672      </part>
23673   </software>
23674
23675   <software name="smbl3lc" cloneof="smbl3">
23676      <description>Shu Ma Bao Long 3 - Shui Jing Ban (Chi, Li Cheng)</description>
23677      <year>200?</year>
23678      <publisher>Li Cheng</publisher>
23679      <info name="serial" value="CBA011"/>
23680      <info name="alt_title" value="数码暴龙-水晶版 (Box)"/>
23681      <part name="cart" interface="gameboy_cart">
23682         <feature name="slot" value="rom_licheng" />
23683         <!-- cartridge ram -->
23684         <dataarea name="rom" size="1048576">
23685            <rom name="shuma baolong - shuijing ban (unlicensed, chinese) (cba011) [raw dump].bin" size="1048576" crc="ba03bd71" sha1="39d8ebe977cf139be398d87be735ea4f7e6885f7" offset="0" />
23686         </dataarea>
23687         <dataarea name="nvram" size="32768"> <!-- Unconfirmed size -->
23688         </dataarea>
23689      </part>
23690   </software>
23691
23692   <software name="emochen2">
23693      <description>Emo Cheng 2 - Fengyun Pian (Chi)</description>
23694      <year>200?</year>
23695      <publisher>Li Cheng</publisher>
23696      <info name="serial" value="CBA033"/>
23697      <info name="alt_title" value="恶魔城2-风云篇"/>
23698      <part name="cart" interface="gameboy_cart">
23699         <feature name="slot" value="rom_licheng" />
23700         <!-- cartridge ram -->
23701         <dataarea name="rom" size="524288">
23702            <rom name="emo cheng 2 - fengyun pian (unlicensed, chinese) (cba033) [raw dump].bin" size="524288" crc="a98eec81" sha1="6da2499578b3cd362a21594034278c3ab2b9b374" offset="0" />
23703         </dataarea>
23704         <dataarea name="nvram" size="8192"> <!-- Unconfirmed size -->
23705         </dataarea>
23706      </part>
23707   </software>
23708
23709<!-- AKA Digimon D-4 published by SKOB -->
23710   <software name="mingzhu2">
23711      <description>Ming Zhu Kou Dai Guai Shou II (Chi)</description>
23712      <year>200?</year>
23713      <publisher>Li Cheng</publisher>
23714      <info name="serial" value="CBA060"/>
23715      <info name="alt_title" value="明珠口袋怪兽2"/>
23716      <part name="cart" interface="gameboy_cart">
23717         <feature name="slot" value="rom_licheng" />
23718         <!-- cartridge ram -->
23719         <dataarea name="rom" size="2097152">
23720            <rom name="mingzhu koudai guaishou 2 (unlicensed, chinese) (cba060) [raw dump].bin" size="2097152" crc="a477c7ce" sha1="0e1b3e60d4a982538d4645c36693d5fd548cb641" offset="0" />
23721         </dataarea>
23722         <dataarea name="nvram" size="32768"> <!-- Unconfirmed size -->
23723         </dataarea>
23724      </part>
23725   </software>
23726
23727   <software name="gangdanw">
23728      <description>Gang Dan Wu Yu II (Chi)</description>
23729      <year>200?</year>
23730      <publisher>Li Cheng</publisher>
23731      <info name="serial" value="CBA064"/>
23732      <info name="alt_title" value="钢弹物语2"/>
23733      <part name="cart" interface="gameboy_cart">
23734         <feature name="slot" value="rom_licheng" />
23735         <!-- cartridge ram -->
23736         <dataarea name="rom" size="2097152">
23737            <rom name="gangdan wuyu 2 (unlicensed, chinese) (cba064) [raw dump].bin" size="2097152" crc="09dee8cb" sha1="6753a7a34f057f952172dff5ef9e8961d3af6649" offset="0" />
23738         </dataarea>
23739         <dataarea name="nvram" size="32768"> <!-- Unconfirmed size -->
23740         </dataarea>
23741      </part>
23742   </software>
23743
23744   <software name="mingzhu3">
23745      <description>Ming Zhu Kou Dai Guai Shou III ~ Digimon Fight ~ El Monstruo (Chi)</description>
23746      <year>200?</year>
23747      <publisher>Li Cheng</publisher>
23748      <info name="serial" value="CBA065"/>
23749      <info name="alt_title" value="明珠口袋怪兽3"/>
23750      <part name="cart" interface="gameboy_cart">
23751         <feature name="slot" value="rom_licheng" />
23752         <!-- cartridge ram -->
23753         <dataarea name="rom" size="4194304">
23754            <rom name="mingzhu koudai guaishou 3 (unlicensed, multi3) (cba065) [raw dump].bin" size="4194304" crc="a477c7ce" sha1="0e1b3e60d4a982538d4645c36693d5fd548cb641" offset="0" />
23755         </dataarea>
23756         <dataarea name="nvram" size="32768"> <!-- Unconfirmed size -->
23757         </dataarea>
23758      </part>
23759   </software>
23760
23761   <software name="shuihujd">
23762      <description>Shui Hu Zhuan - Jing Dian Ban (Chi)</description>
23763      <year>200?</year>
23764      <publisher>Li Cheng</publisher>
23765      <info name="serial" value="CBA073"/>
23766      <info name="alt_title" value="水浒传-经典版"/>
23767      <part name="cart" interface="gameboy_cart">
23768         <feature name="slot" value="rom_licheng" />
23769         <!-- cartridge ram -->
23770         <dataarea name="rom" size="1048576">
23771            <rom name="shuihu zhuan - jingdian ban (unlicensed, chinese) (cba073) [raw dump].bin" size="1048576" crc="4a083b6e" sha1="c40a80ab26a2a5d884434c215e649dbfebf64fc3" offset="0" />
23772         </dataarea>
23773         <dataarea name="nvram" size="32768"> <!-- Unconfirmed size -->
23774         </dataarea>
23775      </part>
23776   </software>
23777
23778   <software name="yingxj2">
23779      <description>Ying Xiong Jian 2 (Chi)</description>
23780      <year>200?</year>
23781      <publisher>Li Cheng</publisher>
23782      <info name="serial" value="CBA075"/>
23783      <info name="alt_title" value="英雄剑2"/>
23784      <part name="cart" interface="gameboy_cart">
23785         <feature name="slot" value="rom_licheng" />
23786         <!-- cartridge ram -->
23787         <dataarea name="rom" size="2097152">
23788            <rom name="yingxiong jian 2 (unlicensed, chinese) (cba075) [raw dump].bin" size="2097152" crc="786eb7a4" sha1="3920e7d5a900981d6877ef99b5f3bed8a061c31f" offset="0" />
23789         </dataarea>
23790         <dataarea name="nvram" size="32768"> <!-- Unconfirmed size -->
23791         </dataarea>
23792      </part>
23793   </software>
23794
23795   <software name="xiyouji">
23796      <description>Xi You Ji (Chi)</description>
23797      <year>200?</year>
23798      <publisher>Li Cheng</publisher>
23799      <info name="serial" value="CBA076"/>
23800      <info name="alt_title" value="西游记"/>
23801      <part name="cart" interface="gameboy_cart">
23802         <feature name="slot" value="rom_licheng" />
23803         <dataarea name="rom" size="524288">
23804            <rom name="xi you ji (unlicensed, chinese) (cba076) [raw dump].bin" size="524288" crc="f2fc4884" sha1="1f1bb35c47b8bd51edf9511513bb5e5e5e07eec1" offset="0" />
23805         </dataarea>
23806      </part>
23807   </software>
23808
23809   <software name="smbldnp">
23810      <description>Shu Ma Bao Long - Dian Nao Pian (Chi)</description>
23811      <year>200?</year>
23812      <publisher>Li Cheng</publisher>
23813      <info name="serial" value="CBA078"/>
23814      <info name="alt_title" value="数码暴龙-电脑篇"/>
23815      <part name="cart" interface="gameboy_cart">
23816         <feature name="slot" value="rom_licheng" />
23817         <!-- cartridge ram -->
23818         <dataarea name="rom" size="1048576">
23819            <rom name="shuma baolong - diannao pian (unlicensed, chinese) (cba078) [raw dump].bin" size="1048576" crc="363808b4" sha1="bac6e8b313e87c06dd4838ebc5098e0ef6383925" offset="0" />
23820         </dataarea>
23821         <dataarea name="nvram" size="32768"> <!-- Unconfirmed size -->
23822         </dataarea>
23823      </part>
23824   </software>
23825
23826   <software name="yxtx">
23827      <description>Ying Xiong Tian Xia (Chi)</description>
23828      <year>200?</year>
23829      <publisher>Li Cheng</publisher>
23830      <info name="serial" value="CBA079"/>
23831      <info name="alt_title" value="英雄天下"/>
23832      <part name="cart" interface="gameboy_cart">
23833         <feature name="slot" value="rom_licheng" />
23834         <dataarea name="rom" size="2097152">
23835            <rom name="yingxiong tianxia (unlicensed, chinese) (cba079) [raw dump].bin" size="2097152" crc="5f2d6317" sha1="41f5f0c11e4e99b7d2d1433b09922a0fd2c48d7f" offset="0" />
23836         </dataarea>
23837      </part>
23838   </software>
23839
23840   <software name="sanguowd">
23841      <description>San Guo Zhi Wu Dai (Chi)</description>
23842      <year>200?</year>
23843      <publisher>Li Cheng</publisher>
23844      <info name="serial" value="CBA080"/>
23845      <info name="alt_title" value="三国志五代"/>
23846      <part name="cart" interface="gameboy_cart">
23847         <feature name="slot" value="rom_licheng" />
23848         <!-- cartridge ram -->
23849         <dataarea name="rom" size="2097152">
23850            <rom name="sanguozhi wudai (unlicensed, chinese) (cba080) [raw dump].bin" size="2097152" crc="de136996" sha1="8e476e9db9caceb52d048b28163227d987a09a21" offset="0" />
23851         </dataarea>
23852         <dataarea name="nvram" size="8192"> <!-- Unconfirmed size -->
23853         </dataarea>
23854      </part>
23855   </software>
23856
2363923857<!-- Sintax games -->
2364023858<!--
2364123859  * ST-0206002E Harry Boy Second Edition: The secretx of the chamber of secrets (english)
r31096r31097
2407624294      </part>
2407724295   </software>
2407824296
24079   <software name="qtdsheng">
24297   <software name="qtdsheng" cloneof="xiyouji">
2408024298      <description>Qi Tian Da Sheng - Sun Wu Kong (Chi, Ripped from 8 in 1 multicart)</description>
2408124299      <year>200?</year>
2408224300      <publisher>&lt;unknown&gt;</publisher>
trunk/src/emu/bus/gameboy/mbc.h
r31096r31097
214214   UINT8 m_protection_checked;
215215};
216216
217// ======================> gb_rom_licheng_device
218
219class gb_rom_licheng_device : public gb_rom_mbc5_device
220{
221public:
222   // construction/destruction
223   gb_rom_licheng_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
224   
225   virtual DECLARE_WRITE8_MEMBER(write_bank);
226};
227
217228// ======================> gb_rom_digimon_device
218229
219230class gb_rom_digimon_device : public gb_rom_mbc5_device
r31096r31097
284295extern const device_type GB_ROM_MMM01;
285296extern const device_type GB_ROM_SINTAX;
286297extern const device_type GB_ROM_CHONGWU;
298extern const device_type GB_ROM_LICHENG;
287299extern const device_type GB_ROM_DIGIMON;
288300extern const device_type GB_ROM_ROCKMAN8;
289301extern const device_type GB_ROM_SM3SP;
trunk/src/emu/bus/gameboy/gb_slot.c
r31096r31097
214214   { GB_MBC_ATVRACIN, "rom_atvrac" },
215215   { GB_MBC_SINTAX, "rom_sintax" },
216216   { GB_MBC_CHONGWU, "rom_chong" },
217   { GB_MBC_LICHENG, "rom_licheng" },
217218   { GB_MBC_DIGIMON, "rom_digimon" },
218219   { GB_MBC_ROCKMAN8, "rom_rock8" },
219220   { GB_MBC_SM3SP, "rom_sm3sp" },
r31096r31097
532533   }
533534
534535   // Check for some unlicensed games
535   if (type == GB_MBC_MBC5)
536   //if (type == GB_MBC_MBC5)
536537   {
537538      int count = 0;
538539      for (int i = 0x0184; i < 0x0184 + 0x30; i++)
539540      {
540541         count += ROM[i];
541542      }
543
542544      if (count == 4876)
543545      {
544//          printf("Niutoude!\n");
545//          type = GB_MBC_NIUTOUDE;
546//         printf("Li Cheng %d\n", count);
547         type = GB_MBC_LICHENG;
546548      }
547549      if (count == 4138 || count == 4125)
548550      {
549551         // Zhi Huan Wang uses 4138
550552         // most sintax use 4125
551         printf("Sintax %d!\n", count);
553//         printf("Sintax %d!\n", count);
552554         type = GB_MBC_SINTAX;
553555      }
554556   }
trunk/src/emu/bus/gameboy/gb_slot.h
r31096r31097
2929   GB_MBC_CAMERA,
3030   GB_MBC_SINTAX,
3131   GB_MBC_CHONGWU,
32   GB_MBC_LICHENG,
3233   GB_MBC_DIGIMON,
3334   GB_MBC_ROCKMAN8,
3435   GB_MBC_SM3SP,
trunk/src/emu/bus/gameboy/mbc.c
r31096r31097
2626const device_type GB_ROM_MMM01 = &device_creator<gb_rom_mmm01_device>;
2727const device_type GB_ROM_SINTAX = &device_creator<gb_rom_sintax_device>;
2828const device_type GB_ROM_CHONGWU = &device_creator<gb_rom_chongwu_device>;
29const device_type GB_ROM_LICHENG = &device_creator<gb_rom_licheng_device>;
2930const device_type GB_ROM_DIGIMON = &device_creator<gb_rom_digimon_device>;
3031const device_type GB_ROM_ROCKMAN8 = &device_creator<gb_rom_rockman8_device>;
3132const device_type GB_ROM_SM3SP = &device_creator<gb_rom_sm3sp_device>;
r31096r31097
9293{
9394}
9495
96gb_rom_licheng_device::gb_rom_licheng_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
97               : gb_rom_mbc5_device(mconfig, GB_ROM_LICHENG, "GB MBC5 Li Cheng Carts", tag, owner, clock, "gb_rom_licheng", __FILE__)
98{
99}
100
95101gb_rom_digimon_device::gb_rom_digimon_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
96102               : gb_rom_mbc5_device(mconfig, GB_ROM_DIGIMON, "GB Digimon", tag, owner, clock, "gb_rom_digimon", __FILE__)
97103{
r31096r31097
683689   }
684690}
685691
692// MBC5 variant used by Li Cheng / Niutoude games
693
694WRITE8_MEMBER(gb_rom_licheng_device::write_bank)
695{
696   if (offset > 0x2100 && offset < 0x3000)
697      return;
698
699   gb_rom_mbc5_device::write_bank(space, offset, data);
700}
701
686702// MBC5 variant used by Chong Wu Xiao Jing Ling (this appears to be a re-release of a Li Cheng / Niutoude game,
687703// given that it contains the Niutoude logo, with most protection checks patched out)
688704
trunk/src/mess/drivers/gb.c
r31096r31097
610610INPUT_PORTS_END
611611
612612static SLOT_INTERFACE_START(gb_cart)
613   SLOT_INTERFACE_INTERNAL("rom",  GB_STD_ROM)
614   SLOT_INTERFACE_INTERNAL("rom_mbc1",  GB_ROM_MBC1)
615   SLOT_INTERFACE_INTERNAL("rom_mbc1col",  GB_ROM_MBC1_COL)
616   SLOT_INTERFACE_INTERNAL("rom_mbc2",  GB_ROM_MBC2)
617   SLOT_INTERFACE_INTERNAL("rom_mbc3",  GB_ROM_MBC3)
618   SLOT_INTERFACE_INTERNAL("rom_huc1",  GB_ROM_MBC3)
619   SLOT_INTERFACE_INTERNAL("rom_huc3",  GB_ROM_MBC3)
620   SLOT_INTERFACE_INTERNAL("rom_mbc5",  GB_ROM_MBC5)
621   SLOT_INTERFACE_INTERNAL("rom_mbc6",  GB_ROM_MBC6)
622   SLOT_INTERFACE_INTERNAL("rom_mbc7",  GB_ROM_MBC7)
623   SLOT_INTERFACE_INTERNAL("rom_tama5",  GB_ROM_TAMA5)
624   SLOT_INTERFACE_INTERNAL("rom_mmm01",  GB_ROM_MMM01)
613   SLOT_INTERFACE_INTERNAL("rom",         GB_STD_ROM)
614   SLOT_INTERFACE_INTERNAL("rom_mbc1",    GB_ROM_MBC1)
615   SLOT_INTERFACE_INTERNAL("rom_mbc1col", GB_ROM_MBC1_COL)
616   SLOT_INTERFACE_INTERNAL("rom_mbc2",    GB_ROM_MBC2)
617   SLOT_INTERFACE_INTERNAL("rom_mbc3",    GB_ROM_MBC3)
618   SLOT_INTERFACE_INTERNAL("rom_huc1",    GB_ROM_MBC3)
619   SLOT_INTERFACE_INTERNAL("rom_huc3",    GB_ROM_MBC3)
620   SLOT_INTERFACE_INTERNAL("rom_mbc5",    GB_ROM_MBC5)
621   SLOT_INTERFACE_INTERNAL("rom_mbc6",    GB_ROM_MBC6)
622   SLOT_INTERFACE_INTERNAL("rom_mbc7",    GB_ROM_MBC7)
623   SLOT_INTERFACE_INTERNAL("rom_tama5",   GB_ROM_TAMA5)
624   SLOT_INTERFACE_INTERNAL("rom_mmm01",   GB_ROM_MMM01)
625625   SLOT_INTERFACE_INTERNAL("rom_wisdom",  GB_ROM_WISDOM)
626   SLOT_INTERFACE_INTERNAL("rom_yong",  GB_ROM_YONG)
626   SLOT_INTERFACE_INTERNAL("rom_yong",    GB_ROM_YONG)
627627   SLOT_INTERFACE_INTERNAL("rom_lasama",  GB_ROM_LASAMA)
628628   SLOT_INTERFACE_INTERNAL("rom_atvrac",  GB_ROM_ATVRAC)
629629   SLOT_INTERFACE_INTERNAL("rom_camera",  GB_STD_ROM)
630630   SLOT_INTERFACE_INTERNAL("rom_sintax",  GB_ROM_SINTAX)
631   SLOT_INTERFACE_INTERNAL("rom_chong",  GB_ROM_CHONGWU)
632   SLOT_INTERFACE_INTERNAL("rom_digimon",  GB_ROM_DIGIMON)
633   SLOT_INTERFACE_INTERNAL("rom_rock8",  GB_ROM_ROCKMAN8)
634   SLOT_INTERFACE_INTERNAL("rom_sm3sp",  GB_ROM_SM3SP)
631   SLOT_INTERFACE_INTERNAL("rom_chong",   GB_ROM_CHONGWU)
632   SLOT_INTERFACE_INTERNAL("rom_licheng", GB_ROM_LICHENG)
633   SLOT_INTERFACE_INTERNAL("rom_digimon", GB_ROM_DIGIMON)
634   SLOT_INTERFACE_INTERNAL("rom_rock8",   GB_ROM_ROCKMAN8)
635   SLOT_INTERFACE_INTERNAL("rom_sm3sp",   GB_ROM_SM3SP)
635636//  SLOT_INTERFACE_INTERNAL("rom_dkong5",  GB_ROM_DKONG5)
636//  SLOT_INTERFACE_INTERNAL("rom_unk01",  GB_ROM_UNK01)
637//  SLOT_INTERFACE_INTERNAL("rom_unk01",  GB_ROM_UNK01)
637638SLOT_INTERFACE_END
638639
639640static SLOT_INTERFACE_START(megaduck_cart)

Previous 199869 Revisions Next


© 1997-2024 The MAME Team