trunk/src/mess/drivers/megadriv.c
| r23480 | r23481 | |
| 395 | 395 | SLOT_INTERFACE_INTERNAL("rom_ssf2", MD_ROM_SSF2) |
| 396 | 396 | SLOT_INTERFACE_INTERNAL("rom_radica", MD_ROM_RADICA) |
| 397 | 397 | // pirate mappers (protection and/or bankswitch) |
| 398 | SLOT_INTERFACE_INTERNAL("rom_16mj2", MD_ROM_16MJ2) |
| 398 | 399 | SLOT_INTERFACE_INTERNAL("rom_bugs", MD_ROM_BUGSLIFE) |
| 399 | 400 | SLOT_INTERFACE_INTERNAL("rom_chinf3", MD_ROM_CHINF3) |
| 400 | 401 | SLOT_INTERFACE_INTERNAL("rom_elfwor", MD_ROM_ELFWOR) |
trunk/src/mess/machine/md_rom.c
| r23480 | r23481 | |
| 40 | 40 | const device_type MD_ROM_KOF99 = &device_creator<md_rom_kof99_device>; |
| 41 | 41 | const device_type MD_ROM_SOULB = &device_creator<md_rom_soulb_device>; |
| 42 | 42 | const device_type MD_ROM_CHINF3 = &device_creator<md_rom_chinf3_device>; |
| 43 | const device_type MD_ROM_16MJ2 = &device_creator<md_rom_16mj2_device>; |
| 43 | 44 | const device_type MD_ROM_ELFWOR = &device_creator<md_rom_elfwor_device>; |
| 44 | 45 | const device_type MD_ROM_YASECH = &device_creator<md_rom_yasech_device>; |
| 45 | 46 | const device_type MD_ROM_LION2 = &device_creator<md_rom_lion2_device>; |
| r23480 | r23481 | |
| 153 | 154 | { |
| 154 | 155 | } |
| 155 | 156 | |
| 157 | md_rom_16mj2_device::md_rom_16mj2_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 158 | : md_std_rom_device(mconfig, MD_ROM_16MJ2, "MD 16 Mahjong Tiles II", tag, owner, clock, "md_rom_16mj2", __FILE__) |
| 159 | { |
| 160 | } |
| 161 | |
| 156 | 162 | md_rom_elfwor_device::md_rom_elfwor_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 157 | 163 | : md_std_rom_device(mconfig, MD_ROM_ELFWOR, "MD Linghuan Daoshi Super Magician / Elf Wor", tag, owner, clock, "md_rom_elfwor", __FILE__) |
| 158 | 164 | { |
| r23480 | r23481 | |
| 645 | 651 | } |
| 646 | 652 | |
| 647 | 653 | /*------------------------------------------------- |
| 654 | 16 MAHJONG II |
| 655 | -------------------------------------------------*/ |
| 656 | |
| 657 | READ16_MEMBER(md_rom_16mj2_device::read) |
| 658 | { |
| 659 | if (offset == 0x400004/2) return 0xc900; |
| 660 | |
| 661 | // non-protection accesses |
| 662 | if (offset < 0x400000/2) |
| 663 | return m_rom[MD_ADDR(offset)]; |
| 664 | else |
| 665 | return 0xffff; |
| 666 | } |
| 667 | |
| 668 | /*------------------------------------------------- |
| 648 | 669 | LINGHUAN DAOSHI SUPER MAGICIAN / ELF WOR |
| 649 | 670 | -------------------------------------------------*/ |
| 650 | 671 | |
trunk/src/mess/machine/md_rom.h
| r23480 | r23481 | |
| 148 | 148 | int m_bank; |
| 149 | 149 | }; |
| 150 | 150 | |
| 151 | // ======================> md_rom_16mj2_device |
| 152 | |
| 153 | class md_rom_16mj2_device : public md_std_rom_device |
| 154 | { |
| 155 | public: |
| 156 | // construction/destruction |
| 157 | md_rom_16mj2_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 158 | |
| 159 | // reading and writing |
| 160 | virtual DECLARE_READ16_MEMBER(read); |
| 161 | }; |
| 162 | |
| 151 | 163 | // ======================> md_rom_elfwor_device |
| 152 | 164 | |
| 153 | 165 | class md_rom_elfwor_device : public md_std_rom_device |
| r23480 | r23481 | |
| 518 | 530 | extern const device_type MD_ROM_SRAM; |
| 519 | 531 | extern const device_type MD_ROM_FRAM; |
| 520 | 532 | extern const device_type MD_ROM_CM2IN1; |
| 533 | extern const device_type MD_ROM_16MJ2; |
| 521 | 534 | extern const device_type MD_ROM_BUGSLIFE; |
| 522 | 535 | extern const device_type MD_ROM_CHINF3; |
| 523 | 536 | extern const device_type MD_ROM_ELFWOR; |
trunk/src/mess/machine/md_slot.c
| r23480 | r23481 | |
| 257 | 257 | { RADICA, "rom_radica" }, |
| 258 | 258 | // { GAME_KANDUME, "rom_gkand" }, // what's needed by this? |
| 259 | 259 | |
| 260 | { TILESMJ2, "rom_16mj2" }, |
| 260 | 261 | { BUGSLIFE, "rom_bugs" }, |
| 261 | 262 | { CHINFIGHT3, "rom_chinf3" }, |
| 262 | 263 | { ELFWOR, "rom_elfwor" }, |
trunk/src/mess/machine/md_slot.h
| r23480 | r23481 | |
| 46 | 46 | GAME_KANDUME, /* Game no Kandume Otokuyou */ |
| 47 | 47 | RADICA, /* Radica TV games.. these probably should be a separate driver since they are a separate 'console' */ |
| 48 | 48 | |
| 49 | TILESMJ2, /* 16 Mahjong Tiles II */ |
| 49 | 50 | BUGSLIFE, /* A Bug's Life */ |
| 50 | 51 | CHINFIGHT3, /* Chinese Fighters 3 */ |
| 51 | 52 | ELFWOR, /* Linghuan Daoshi Super Magician */ |