Previous 199869 Revisions Next

r20934 Monday 11th February, 2013 at 12:03:48 UTC by Fabio Priuli
(MESS) megadriv.c: removed pokemon protection patch, given that the routine is the same as kof99. no whatsnew.
[hash]megadriv.xml
[src/mess/drivers]megadriv.c
[src/mess/machine]md_rom.c md_rom.h md_slot.c

trunk/hash/megadriv.xml
r20933r20934
1666316663      <year>199?</year>
1666416664      <publisher>&lt;unlicensed&gt;</publisher>
1666516665      <part name="cart" interface="megadriv_cart">
16666         <feature name="slot" value="rom_poke" />
16666         <feature name="slot" value="rom_kof99" />
1666716667         <dataarea name="rom" size="2097152">
1666816668            <rom name="pocket monsters (unl).bin" size="2097152" crc="f68f6367" sha1="d10de935e099c520384c986b1f00fd5e72d64e03" offset="000000" loadflag="load16_word_swap" />
1666916669         </dataarea>
trunk/src/mess/drivers/megadriv.c
r20933r20934
347347   SLOT_INTERFACE_INTERNAL("rom_topf",  MD_ROM_TOPF)
348348// these have protection patched out, instead of emulated!
349349   SLOT_INTERFACE_INTERNAL("rom_mulan",  MD_STD_ROM)
350   SLOT_INTERFACE_INTERNAL("rom_poke",  MD_STD_ROM)
351350   SLOT_INTERFACE_INTERNAL("rom_poke2",  MD_STD_ROM)
352351SLOT_INTERFACE_END
353352
r20933r20934
10431042
10441043static SLOT_INTERFACE_START(pico_cart)
10451044   SLOT_INTERFACE_INTERNAL("rom",  MD_STD_ROM)
1045   SLOT_INTERFACE_INTERNAL("rom_sram",  MD_ROM_SRAM)   // not sure these are needed...
1046   SLOT_INTERFACE_INTERNAL("rom_sramsafe",  MD_ROM_SRAM)   // not sure these are needed...
10461047SLOT_INTERFACE_END
10471048
10481049static MACHINE_START(pico)
trunk/src/mess/machine/md_rom.c
r20933r20934
5050
5151// below ones are currently unused, because the protection is patched out
5252const device_type MD_ROM_MULAN = &device_creator<md_std_rom_device>;
53const device_type MD_ROM_POKE = &device_creator<md_std_rom_device>;
5453const device_type MD_ROM_POKE2 = &device_creator<md_std_rom_device>;
5554
5655
trunk/src/mess/machine/md_rom.h
r20933r20934
492492
493493// this are currently unused... protection is directly patched out!
494494extern const device_type MD_ROM_MULAN;
495extern const device_type MD_ROM_POKE;
496495extern const device_type MD_ROM_POKE2;
497496
498497#endif
trunk/src/mess/machine/md_slot.c
r20933r20934
271271   { MC_PIRATE, "rom_mcpir" },
272272   { MJLOVER, "rom_mjlov" },
273273   { MULAN, "rom_mulan"},
274   { POKEMON, "rom_poke"},
275274   { POKEMON2, "rom_poke2"},
276275   { REALTEC, "rom_realtec" },
277276   { REDCL_EN, "rom_redcl" },
r20933r20934
566565         break;
567566
568567      // patch out protection in a bunch of titles...
569      case POKEMON:
570         /*todo: emulate protection instead
571          0dd19e:47f8
572          0dd1a0:fff0
573          0dd1a2:4e63
574          0dd46e:4ef8
575          0dd470:0300
576          0dd49c:6002
577          */
578         /* you need to return 1 @ 0xa13002 and 0???1f @ 0xa1303e (it does word reads). */
579         ROM16[0x0dd19e/2] = 0x47f8;
580         ROM16[0x0dd1a0/2] = 0xfff0;
581         ROM16[0x0dd1a2/2] = 0x4e63;
582         ROM16[0x0dd46e/2] = 0x4ef8;
583         ROM16[0x0dd470/2] = 0x0300;
584         ROM16[0x0dd49c/2] = 0x6002;
585         break;
586568      case POKEMON2:
587569         /*todo: emulate protection instead
588570          006036:e000

Previous 199869 Revisions Next


© 1997-2024 The MAME Team