Previous 199869 Revisions Next

r32687 Sunday 12th October, 2014 at 11:14:32 UTC by Fabio Priuli
(MESS) reducing sega8 slot interface duplication. nw.
[src/emu/bus/sega8]sega8_slot.c sega8_slot.h
[src/emu/bus/sms_exp]gender.c gender.h
[src/mess/drivers]sg1000.c sms.c

trunk/src/emu/bus/sms_exp/gender.c
r32686r32687
8888   m_subslot->write_ram(space, offset, data);
8989}
9090
91static SLOT_INTERFACE_START(sms_cart)
92   SLOT_INTERFACE_INTERNAL("rom",  SEGA8_ROM_STD)
93   SLOT_INTERFACE_INTERNAL("codemasters",  SEGA8_ROM_CODEMASTERS)
94   SLOT_INTERFACE_INTERNAL("4pak",  SEGA8_ROM_4PAK)
95   SLOT_INTERFACE_INTERNAL("zemina",  SEGA8_ROM_ZEMINA)
96   SLOT_INTERFACE_INTERNAL("nemesis",  SEGA8_ROM_NEMESIS)
97   SLOT_INTERFACE_INTERNAL("janggun",  SEGA8_ROM_JANGGUN)
98   SLOT_INTERFACE_INTERNAL("korean",  SEGA8_ROM_KOREAN)
99   SLOT_INTERFACE_INTERNAL("korean_nb",  SEGA8_ROM_KOREAN_NB)
100SLOT_INTERFACE_END
101
10291//-------------------------------------------------
10392//  machine_config_additions - device-specific
10493//  machine configurations
trunk/src/emu/bus/sms_exp/gender.h
r32686r32687
1616#include "emu.h"
1717#include "smsexp.h"
1818#include "bus/sega8/sega8_slot.h"
19#include "bus/sega8/rom.h"
2019
2120
2221
trunk/src/emu/bus/sega8/sega8_slot.h
r32686r32687
232232   static_cast<sega8_card_slot_device *>(device)->set_ext("bin,sg");
233233
234234
235// slot interfaces
236SLOT_INTERFACE_EXTERN( sg1000_cart );
237SLOT_INTERFACE_EXTERN( sg1000mk3_cart );
238SLOT_INTERFACE_EXTERN( sms_cart );
239SLOT_INTERFACE_EXTERN( gg_cart );
240
235241#endif
trunk/src/emu/bus/sega8/sega8_slot.c
r32686r32687
819819      logerror("\n" );
820820   }
821821}
822
823// slot interfaces
824#include "rom.h"
825
826SLOT_INTERFACE_START(sg1000_cart)
827   SLOT_INTERFACE_INTERNAL("rom",  SEGA8_ROM_STD)
828   SLOT_INTERFACE_INTERNAL("othello",  SEGA8_ROM_OTHELLO)
829   SLOT_INTERFACE_INTERNAL("castle",  SEGA8_ROM_CASTLE)
830   SLOT_INTERFACE_INTERNAL("terebi",  SEGA8_ROM_TEREBI)
831   SLOT_INTERFACE_INTERNAL("level3",  SEGA8_ROM_BASIC_L3)
832   SLOT_INTERFACE_INTERNAL("music_editor",  SEGA8_ROM_MUSIC_EDITOR)
833   SLOT_INTERFACE_INTERNAL("dahjee_typea",  SEGA8_ROM_DAHJEE_TYPEA)
834   SLOT_INTERFACE_INTERNAL("dahjee_typeb",  SEGA8_ROM_DAHJEE_TYPEB)
835   SLOT_INTERFACE_INTERNAL("cardcatcher",  SEGA8_ROM_CARDCATCH)
836SLOT_INTERFACE_END
837
838SLOT_INTERFACE_START(sg1000mk3_cart)
839   SLOT_INTERFACE_INTERNAL("rom",  SEGA8_ROM_STD)
840   SLOT_INTERFACE_INTERNAL("terebi",  SEGA8_ROM_TEREBI)
841   SLOT_INTERFACE_INTERNAL("codemasters",  SEGA8_ROM_CODEMASTERS)
842   SLOT_INTERFACE_INTERNAL("4pak",  SEGA8_ROM_4PAK)
843   SLOT_INTERFACE_INTERNAL("zemina",  SEGA8_ROM_ZEMINA)
844   SLOT_INTERFACE_INTERNAL("nemesis",  SEGA8_ROM_NEMESIS)
845   SLOT_INTERFACE_INTERNAL("janggun",  SEGA8_ROM_JANGGUN)
846   SLOT_INTERFACE_INTERNAL("korean",  SEGA8_ROM_KOREAN)
847   SLOT_INTERFACE_INTERNAL("korean_nb",  SEGA8_ROM_KOREAN_NB)
848   SLOT_INTERFACE_INTERNAL("othello",  SEGA8_ROM_OTHELLO)
849   SLOT_INTERFACE_INTERNAL("castle",  SEGA8_ROM_CASTLE)
850   SLOT_INTERFACE_INTERNAL("dahjee_typea",  SEGA8_ROM_DAHJEE_TYPEA)
851   SLOT_INTERFACE_INTERNAL("dahjee_typeb",  SEGA8_ROM_DAHJEE_TYPEB)
852   // are these SC-3000 carts below actually compatible or not? remove if not!
853   SLOT_INTERFACE_INTERNAL("level3",  SEGA8_ROM_BASIC_L3)
854   SLOT_INTERFACE_INTERNAL("music_editor",  SEGA8_ROM_MUSIC_EDITOR)
855SLOT_INTERFACE_END
856
857SLOT_INTERFACE_START(sms_cart)
858   SLOT_INTERFACE_INTERNAL("rom",  SEGA8_ROM_STD)
859   SLOT_INTERFACE_INTERNAL("codemasters",  SEGA8_ROM_CODEMASTERS)
860   SLOT_INTERFACE_INTERNAL("4pak",  SEGA8_ROM_4PAK)
861   SLOT_INTERFACE_INTERNAL("zemina",  SEGA8_ROM_ZEMINA)
862   SLOT_INTERFACE_INTERNAL("nemesis",  SEGA8_ROM_NEMESIS)
863   SLOT_INTERFACE_INTERNAL("janggun",  SEGA8_ROM_JANGGUN)
864   SLOT_INTERFACE_INTERNAL("korean",  SEGA8_ROM_KOREAN)
865   SLOT_INTERFACE_INTERNAL("korean_nb",  SEGA8_ROM_KOREAN_NB)
866SLOT_INTERFACE_END
867
868SLOT_INTERFACE_START(gg_cart)
869   SLOT_INTERFACE_INTERNAL("rom",  SEGA8_ROM_STD)
870   SLOT_INTERFACE_INTERNAL("eeprom",  SEGA8_ROM_EEPROM)
871   SLOT_INTERFACE_INTERNAL("codemasters",  SEGA8_ROM_CODEMASTERS)
872SLOT_INTERFACE_END
873
trunk/src/mess/drivers/sg1000.c
r32686r32687
711711    MACHINE DRIVERS
712712***************************************************************************/
713713
714
715static SLOT_INTERFACE_START(sg1000_cart)
716   SLOT_INTERFACE_INTERNAL("rom",  SEGA8_ROM_STD)
717   SLOT_INTERFACE_INTERNAL("othello",  SEGA8_ROM_OTHELLO)
718   SLOT_INTERFACE_INTERNAL("castle",  SEGA8_ROM_CASTLE)
719   SLOT_INTERFACE_INTERNAL("terebi",  SEGA8_ROM_TEREBI)
720   SLOT_INTERFACE_INTERNAL("level3",  SEGA8_ROM_BASIC_L3)
721   SLOT_INTERFACE_INTERNAL("music_editor",  SEGA8_ROM_MUSIC_EDITOR)
722   SLOT_INTERFACE_INTERNAL("dahjee_typea",  SEGA8_ROM_DAHJEE_TYPEA)
723   SLOT_INTERFACE_INTERNAL("dahjee_typeb",  SEGA8_ROM_DAHJEE_TYPEB)
724   SLOT_INTERFACE_INTERNAL("cardcatcher",  SEGA8_ROM_CARDCATCH)
725SLOT_INTERFACE_END
726
727714/*-------------------------------------------------
728715    MACHINE_CONFIG_START( sg1000, sg1000_state )
729716-------------------------------------------------*/
trunk/src/mess/drivers/sms.c
r32686r32687
459459   m_maincpu->set_input_line(0, state);
460460}
461461
462static SLOT_INTERFACE_START(sms_cart)
463   SLOT_INTERFACE_INTERNAL("rom",  SEGA8_ROM_STD)
464   SLOT_INTERFACE_INTERNAL("codemasters",  SEGA8_ROM_CODEMASTERS)
465   SLOT_INTERFACE_INTERNAL("4pak",  SEGA8_ROM_4PAK)
466   SLOT_INTERFACE_INTERNAL("zemina",  SEGA8_ROM_ZEMINA)
467   SLOT_INTERFACE_INTERNAL("nemesis",  SEGA8_ROM_NEMESIS)
468   SLOT_INTERFACE_INTERNAL("janggun",  SEGA8_ROM_JANGGUN)
469   SLOT_INTERFACE_INTERNAL("korean",  SEGA8_ROM_KOREAN)
470   SLOT_INTERFACE_INTERNAL("korean_nb",  SEGA8_ROM_KOREAN_NB)
471SLOT_INTERFACE_END
472462
473static SLOT_INTERFACE_START(sg1000mk3_cart)
474   SLOT_INTERFACE_INTERNAL("rom",  SEGA8_ROM_STD)
475   SLOT_INTERFACE_INTERNAL("terebi",  SEGA8_ROM_TEREBI)
476   SLOT_INTERFACE_INTERNAL("codemasters",  SEGA8_ROM_CODEMASTERS)
477   SLOT_INTERFACE_INTERNAL("4pak",  SEGA8_ROM_4PAK)
478   SLOT_INTERFACE_INTERNAL("zemina",  SEGA8_ROM_ZEMINA)
479   SLOT_INTERFACE_INTERNAL("nemesis",  SEGA8_ROM_NEMESIS)
480   SLOT_INTERFACE_INTERNAL("janggun",  SEGA8_ROM_JANGGUN)
481   SLOT_INTERFACE_INTERNAL("korean",  SEGA8_ROM_KOREAN)
482   SLOT_INTERFACE_INTERNAL("korean_nb",  SEGA8_ROM_KOREAN_NB)
483   SLOT_INTERFACE_INTERNAL("othello",  SEGA8_ROM_OTHELLO)
484   SLOT_INTERFACE_INTERNAL("castle",  SEGA8_ROM_CASTLE)
485   SLOT_INTERFACE_INTERNAL("dahjee_typea",  SEGA8_ROM_DAHJEE_TYPEA)
486   SLOT_INTERFACE_INTERNAL("dahjee_typeb",  SEGA8_ROM_DAHJEE_TYPEB)
487// are these SC-3000 carts below actually compatible or not? remove if not!
488   SLOT_INTERFACE_INTERNAL("level3",  SEGA8_ROM_BASIC_L3)
489   SLOT_INTERFACE_INTERNAL("music_editor",  SEGA8_ROM_MUSIC_EDITOR)
490SLOT_INTERFACE_END
491
492static SLOT_INTERFACE_START(gg_cart)
493   SLOT_INTERFACE_INTERNAL("rom",  SEGA8_ROM_STD)
494   SLOT_INTERFACE_INTERNAL("eeprom",  SEGA8_ROM_EEPROM)
495   SLOT_INTERFACE_INTERNAL("codemasters",  SEGA8_ROM_CODEMASTERS)
496SLOT_INTERFACE_END
497
498463static MACHINE_CONFIG_START( sms_ntsc_base, sms_state )
499464   /* basic machine hardware */
500465   MCFG_CPU_ADD("maincpu", Z80, XTAL_53_693175MHz/15)
r32686r32687
819784   /* cartridge */
820785   MCFG_GG_CARTRIDGE_ADD("slot", gg_cart, NULL)
821786
822   MCFG_SOFTWARE_LIST_ADD("cart_list","gamegear")
787   MCFG_SOFTWARE_LIST_ADD("cart_list", "gamegear")
823788MACHINE_CONFIG_END
824789
825790

Previous 199869 Revisions Next


© 1997-2024 The MAME Team