trunk/src/mess/machine/vic20exp.h
r17405 | r17406 | |
57 | 57 | const vic20_expansion_slot_interface (_name) = |
58 | 58 | |
59 | 59 | |
60 | | #define MCFG_VIC20_EXPANSION_SLOT_ADD(_tag, _config, _slot_intf, _def_slot, _def_inp) \ |
61 | | MCFG_DEVICE_ADD(_tag, VIC20_EXPANSION_SLOT, 0) \ |
| 60 | #define MCFG_VIC20_EXPANSION_SLOT_ADD(_tag, _clock, _config, _slot_intf, _def_slot, _def_inp) \ |
| 61 | MCFG_DEVICE_ADD(_tag, VIC20_EXPANSION_SLOT, _clock) \ |
62 | 62 | MCFG_DEVICE_CONFIG(_config) \ |
63 | 63 | MCFG_DEVICE_SLOT_INTERFACE(_slot_intf, _def_slot, _def_inp, false) |
64 | 64 | |
trunk/src/mess/machine/vic1010.c
r17405 | r17406 | |
50 | 50 | //------------------------------------------------- |
51 | 51 | |
52 | 52 | static MACHINE_CONFIG_FRAGMENT( vic1010 ) |
53 | | MCFG_VIC20_EXPANSION_SLOT_ADD("slot1", expansion_intf, vic20_expansion_cards, NULL, NULL) |
54 | | MCFG_VIC20_EXPANSION_SLOT_ADD("slot2", expansion_intf, vic20_expansion_cards, NULL, NULL) |
55 | | MCFG_VIC20_EXPANSION_SLOT_ADD("slot3", expansion_intf, vic20_expansion_cards, NULL, NULL) |
56 | | MCFG_VIC20_EXPANSION_SLOT_ADD("slot4", expansion_intf, vic20_expansion_cards, NULL, NULL) |
57 | | MCFG_VIC20_EXPANSION_SLOT_ADD("slot5", expansion_intf, vic20_expansion_cards, NULL, NULL) |
58 | | MCFG_VIC20_EXPANSION_SLOT_ADD("slot6", expansion_intf, vic20_expansion_cards, NULL, NULL) |
| 53 | MCFG_VIC20_EXPANSION_SLOT_ADD("slot1", 0, expansion_intf, vic20_expansion_cards, NULL, NULL) |
| 54 | MCFG_VIC20_EXPANSION_SLOT_ADD("slot2", 0, expansion_intf, vic20_expansion_cards, NULL, NULL) |
| 55 | MCFG_VIC20_EXPANSION_SLOT_ADD("slot3", 0, expansion_intf, vic20_expansion_cards, NULL, NULL) |
| 56 | MCFG_VIC20_EXPANSION_SLOT_ADD("slot4", 0, expansion_intf, vic20_expansion_cards, NULL, NULL) |
| 57 | MCFG_VIC20_EXPANSION_SLOT_ADD("slot5", 0, expansion_intf, vic20_expansion_cards, NULL, NULL) |
| 58 | MCFG_VIC20_EXPANSION_SLOT_ADD("slot6", 0, expansion_intf, vic20_expansion_cards, NULL, NULL) |
59 | 59 | MACHINE_CONFIG_END |
60 | 60 | |
61 | 61 | |
trunk/src/mess/machine/vic10exp.c
r17405 | r17406 | |
9 | 9 | |
10 | 10 | #include "emu.h" |
11 | 11 | #include "emuopts.h" |
12 | | #include "machine/vic10exp.h" |
13 | 12 | #include "formats/cbm_crt.h" |
14 | 13 | #include "formats/imageutl.h" |
| 14 | #include "machine/vic10exp.h" |
15 | 15 | |
16 | 16 | |
17 | 17 | |
r17405 | r17406 | |
164 | 164 | m_out_sp_func.resolve(m_out_sp_cb, *this); |
165 | 165 | m_out_cnt_func.resolve(m_out_cnt_cb, *this); |
166 | 166 | m_out_res_func.resolve(m_out_res_cb, *this); |
| 167 | |
| 168 | // inherit bus clock |
| 169 | if (clock() == 0) |
| 170 | { |
| 171 | vic10_expansion_slot_device *root = machine().device<vic10_expansion_slot_device>(VIC10_EXPANSION_SLOT_TAG); |
| 172 | assert(root); |
| 173 | set_unscaled_clock(root->clock()); |
| 174 | } |
167 | 175 | } |
168 | 176 | |
169 | 177 | |
trunk/src/mess/machine/vic10exp.h
r17405 | r17406 | |
58 | 58 | const vic10_expansion_slot_interface (_name) = |
59 | 59 | |
60 | 60 | |
61 | | #define MCFG_VIC10_EXPANSION_SLOT_ADD(_tag, _config, _slot_intf, _def_slot, _def_inp) \ |
62 | | MCFG_DEVICE_ADD(_tag, VIC10_EXPANSION_SLOT, 0) \ |
| 61 | #define MCFG_VIC10_EXPANSION_SLOT_ADD(_tag, _clock, _config, _slot_intf, _def_slot, _def_inp) \ |
| 62 | MCFG_DEVICE_ADD(_tag, VIC10_EXPANSION_SLOT, _clock) \ |
63 | 63 | MCFG_DEVICE_CONFIG(_config) \ |
64 | 64 | MCFG_DEVICE_SLOT_INTERFACE(_slot_intf, _def_slot, _def_inp, false) |
65 | 65 | |
trunk/src/mess/drivers/vic20.c
r17405 | r17406 | |
821 | 821 | |
822 | 822 | MCFG_VCS_CONTROL_PORT_ADD(CONTROL1_TAG, vic20_control_port_devices, NULL, NULL) |
823 | 823 | MCFG_VCS_CONTROL_PORT_ADD(CONTROL2_TAG, vic20_control_port_devices, NULL, NULL) |
824 | | MCFG_VIC20_EXPANSION_SLOT_ADD(VIC20_EXPANSION_SLOT_TAG, expansion_intf, vic20_expansion_cards, NULL, NULL) |
825 | 824 | MCFG_VIC20_USER_PORT_ADD(VIC20_USER_PORT_TAG, user_intf, vic20_user_port_cards, NULL, NULL) |
826 | 825 | |
827 | 826 | // software lists |
r17405 | r17406 | |
862 | 861 | MCFG_SOUND_ADD("dac", DAC, 0) |
863 | 862 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) |
864 | 863 | |
| 864 | // devices |
| 865 | MCFG_VIC20_EXPANSION_SLOT_ADD(VIC20_EXPANSION_SLOT_TAG, MOS6560_CLOCK, expansion_intf, vic20_expansion_cards, NULL, NULL) |
| 866 | |
865 | 867 | // software lists |
866 | 868 | MCFG_SOFTWARE_LIST_FILTER("cart_list", "NTSC") |
867 | 869 | MCFG_SOFTWARE_LIST_FILTER("disk_list", "NTSC") |
r17405 | r17406 | |
889 | 891 | MCFG_PALETTE_LENGTH(16) |
890 | 892 | MCFG_PALETTE_INIT( vic20 ) |
891 | 893 | |
| 894 | // devices |
| 895 | MCFG_VIC20_EXPANSION_SLOT_ADD(VIC20_EXPANSION_SLOT_TAG, MOS6561_CLOCK, expansion_intf, vic20_expansion_cards, NULL, NULL) |
| 896 | |
892 | 897 | // sound hardware |
893 | 898 | MCFG_SPEAKER_STANDARD_MONO("mono") |
894 | 899 | MCFG_MOS656X_ADD(M6560_TAG, vic_pal_intf) |
trunk/src/mess/drivers/vic10.c
r17405 | r17406 | |
634 | 634 | MCFG_MOS6526R1_ADD(MOS6526_TAG, VIC6566_CLOCK, cia_intf) |
635 | 635 | MCFG_CASSETTE_ADD(CASSETTE_TAG, cbm_cassette_interface) |
636 | 636 | MCFG_TIMER_ADD(TIMER_C1531_TAG, cassette_tick) |
637 | | MCFG_VIC10_EXPANSION_SLOT_ADD(VIC10_EXPANSION_SLOT_TAG, expansion_intf, vic10_expansion_cards, NULL, NULL) |
| 637 | MCFG_VIC10_EXPANSION_SLOT_ADD(VIC10_EXPANSION_SLOT_TAG, VIC6566_CLOCK, expansion_intf, vic10_expansion_cards, NULL, NULL) |
638 | 638 | |
639 | 639 | // software list |
640 | 640 | MCFG_SOFTWARE_LIST_ADD("cart_list", "vic10") |