Previous 199869 Revisions Next

r21465 Wednesday 27th February, 2013 at 13:45:35 UTC by Fabio Priuli
(MESS) megadriv: emulated protection in pokemona (similar to kof99 and pokemon, but with one diff expected value) nw.
[hash]megadriv.xml
[src/mess/drivers]megadriv.c
[src/mess/machine]md_rom.c md_rom.h md_slot.c md_slot.h

trunk/hash/megadriv.xml
r21464r21465
1668316683      </part>
1668416684   </software>
1668516685
16686   <software name="pokemona" cloneof="pokemon" supported="no">
16687      <description>Pocket Monsters (Alt)</description>
16686   <software name="pokemona" cloneof="pokemon">
16687      <description>Pocket Monsters (Alt Protection)</description>
1668816688      <year>199?</year>
1668916689      <publisher>&lt;unlicensed&gt;</publisher>
1669016690      <part name="cart" interface="megadriv_cart">
16691         <feature name="slot" value="rom_pokea" />
1669116692         <dataarea name="rom" size="2097152">
1669216693            <rom name="pocket monsters (unl) (alt).bin" size="2097152" crc="fb176667" sha1="3d667aea1b6fa980dddcc10e65845a6831491792" offset="000000" loadflag="load16_word_swap" />
1669316694         </dataarea>
trunk/src/mess/drivers/megadriv.c
r21464r21465
336336   SLOT_INTERFACE_INTERNAL("rom_lion3",  MD_ROM_LION3)
337337   SLOT_INTERFACE_INTERNAL("rom_mcpir",  MD_ROM_MCPIR)
338338   SLOT_INTERFACE_INTERNAL("rom_mjlov",  MD_ROM_MJLOV)
339   SLOT_INTERFACE_INTERNAL("rom_pokea",  MD_ROM_POKEA)
339340   SLOT_INTERFACE_INTERNAL("rom_pokestad",  MD_ROM_POKESTAD)
340341   SLOT_INTERFACE_INTERNAL("rom_realtec",  MD_ROM_REALTEC)
341342   SLOT_INTERFACE_INTERNAL("rom_redcl",  MD_ROM_REDCL)
trunk/src/mess/machine/md_rom.c
r21464r21465
4242const device_type MD_ROM_LION2 = &device_creator<md_rom_lion2_device>;
4343const device_type MD_ROM_LION3 = &device_creator<md_rom_lion3_device>;
4444const device_type MD_ROM_MCPIR = &device_creator<md_rom_mcpirate_device>;
45const device_type MD_ROM_POKEA = &device_creator<md_rom_pokea_device>;
4546const device_type MD_ROM_POKESTAD = &device_creator<md_rom_pokestad_device>;
4647const device_type MD_ROM_REALTEC = &device_creator<md_rom_realtec_device>;
4748const device_type MD_ROM_REDCL = &device_creator<md_rom_redcl_device>;
r21464r21465
115116}
116117
117118md_rom_rx3_device::md_rom_rx3_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
118               : md_std_rom_device(mconfig, MD_ROM_SMB2, "MD Rockman X3", tag, owner, clock)
119               : md_std_rom_device(mconfig, MD_ROM_RX3, "MD Rockman X3", tag, owner, clock)
119120{
120121}
121122
r21464r21465
130131}
131132
132133md_rom_kof99_device::md_rom_kof99_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
133               : md_std_rom_device(mconfig, MD_ROM_KOF99, "MD KOF 99", tag, owner, clock)
134               : md_std_rom_device(mconfig, MD_ROM_KOF99, "MD KOF 99 (and others)", tag, owner, clock)
134135{
135136}
136137
r21464r21465
164165{
165166}
166167
168md_rom_pokea_device::md_rom_pokea_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
169               : md_std_rom_device(mconfig, MD_ROM_POKEA, "MD Pokemon (Alt Protection)", tag, owner, clock)
170{
171}
172
167173md_rom_pokestad_device::md_rom_pokestad_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
168174               : md_std_rom_device(mconfig, MD_ROM_POKESTAD, "MD Pokemon Stadium", tag, owner, clock)
169175{
r21464r21465
769775}
770776
771777/*-------------------------------------------------
778 POKEMON ALT
779 -------------------------------------------------*/
780
781READ16_MEMBER(md_rom_pokea_device::read_a13)
782{
783   if (offset == 0x00/2)   return 0x14;
784   if (offset == 0x02/2)   return 0x01;
785   if (offset == 0x3e/2)   return 0x1f;
786   else    return 0xffff;
787}
788
789/*-------------------------------------------------
772790 REALTEC
773791 -------------------------------------------------*/
774792
trunk/src/mess/machine/md_rom.h
r21464r21465
254254   virtual DECLARE_READ16_MEMBER(read);
255255};
256256
257// ======================> md_rom_pokea_device
258
259class md_rom_pokea_device : public md_std_rom_device
260{
261public:
262   // construction/destruction
263   md_rom_pokea_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
264   
265   // device-level overrides
266   virtual void device_config_complete() { m_shortname = "md_rom_pokea"; }
267   
268   // reading and writing
269   virtual DECLARE_READ16_MEMBER(read_a13);
270};
271
257272// ======================> md_rom_pokestad_device
258273
259274class md_rom_pokestad_device : public md_std_rom_device
r21464r21465
539554extern const device_type MD_ROM_LION3;
540555extern const device_type MD_ROM_MCPIR;
541556extern const device_type MD_ROM_MJLOV;
557extern const device_type MD_ROM_POKEA;
542558extern const device_type MD_ROM_POKESTAD;
543559extern const device_type MD_ROM_REALTEC;
544560extern const device_type MD_ROM_REDCL;
trunk/src/mess/machine/md_slot.c
r21464r21465
272272   { LIONK3, "rom_lion3" },
273273   { MC_PIRATE, "rom_mcpir" },
274274   { MJLOVER, "rom_mjlov" },
275   { POKEMONA, "rom_pokea" },
275276   { REALTEC, "rom_realtec" },
276277   { REDCL_EN, "rom_redcl" },
277278   { REDCLIFF, "rom_redcl" },
trunk/src/mess/machine/md_slot.h
r21464r21465
5555   LIONK3,                      /* Lion King 3, Super Donkey Kong 99, Super King Kong 99 */
5656   MC_PIRATE,                   /* Super 19 in 1, Super 15 in 1, 12 in 1 and a few more multicarts */
5757   MJLOVER,                     /* Mahjong Lover */
58   POKEMONA,                    /* Pocket Monster Alt Protection */
5859   REALTEC,                     /* Whac a Critter/Mallet legend, Defend the Earth, Funnyworld/Ballonboy */
5960   REDCLIFF,                    /* Romance of the Three Kingdoms - Battle of Red Cliffs, already decoded from .mdx format */
6061   REDCL_EN,                    /* The encoded version... */

Previous 199869 Revisions Next


© 1997-2024 The MAME Team