trunk/src/emu/bus/nes/ggenie.c
| r29452 | r29453 | |
| 254 | 254 | // MACHINE_CONFIG_FRAGMENT( sub_slot ) |
| 255 | 255 | //------------------------------------------------- |
| 256 | 256 | |
| 257 | | static const nes_cart_interface gg_crt_interface = |
| 258 | | { |
| 259 | | }; |
| 260 | | |
| 261 | 257 | static MACHINE_CONFIG_FRAGMENT( sub_slot ) |
| 262 | | MCFG_NES_CARTRIDGE_ADD("gg_slot", gg_crt_interface, nes_cart, NULL) |
| 258 | MCFG_NES_CARTRIDGE_ADD("gg_slot", nes_cart, NULL) |
| 263 | 259 | MCFG_NES_CARTRIDGE_NOT_MANDATORY |
| 264 | 260 | MACHINE_CONFIG_END |
| 265 | 261 | |
trunk/src/emu/bus/nes/nes_slot.h
| r29452 | r29453 | |
| 128 | 128 | }; |
| 129 | 129 | |
| 130 | 130 | |
| 131 | | // ======================> nes_cart_interface |
| 132 | | |
| 133 | | struct nes_cart_interface |
| 134 | | { |
| 135 | | }; |
| 136 | | |
| 137 | 131 | #define CHRROM 0 |
| 138 | 132 | #define CHRRAM 1 |
| 139 | 133 | |
| r29452 | r29453 | |
| 323 | 317 | // ======================> nes_cart_slot_device |
| 324 | 318 | |
| 325 | 319 | class nes_cart_slot_device : public device_t, |
| 326 | | public nes_cart_interface, |
| 327 | 320 | public device_image_interface, |
| 328 | 321 | public device_slot_interface |
| 329 | 322 | { |
| r29452 | r29453 | |
| 400 | 393 | DEVICE CONFIGURATION MACROS |
| 401 | 394 | ***************************************************************************/ |
| 402 | 395 | |
| 403 | | #define MCFG_NES_CARTRIDGE_ADD(_tag,_config,_slot_intf,_def_slot) \ |
| 396 | #define MCFG_NES_CARTRIDGE_ADD(_tag, _slot_intf, _def_slot) \ |
| 404 | 397 | MCFG_DEVICE_ADD(_tag, NES_CART_SLOT, 0) \ |
| 405 | | MCFG_DEVICE_CONFIG(_config) \ |
| 406 | 398 | MCFG_DEVICE_SLOT_INTERFACE(_slot_intf, _def_slot, false) |
| 407 | 399 | |
| 408 | 400 | #define MCFG_NES_CARTRIDGE_NOT_MANDATORY \ |
trunk/src/mess/drivers/nes.c
| r29452 | r29453 | |
| 666 | 666 | }; |
| 667 | 667 | |
| 668 | 668 | |
| 669 | | static const nes_cart_interface nes_crt_interface = |
| 670 | | { |
| 671 | | }; |
| 672 | | |
| 673 | | |
| 674 | 669 | static const cassette_interface fc_cassette_interface = |
| 675 | 670 | { |
| 676 | 671 | cassette_default_formats, |
| r29452 | r29453 | |
| 712 | 707 | MCFG_SOUND_CONFIG(nes_apu_interface) |
| 713 | 708 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.90) |
| 714 | 709 | |
| 715 | | MCFG_NES_CARTRIDGE_ADD("nes_slot", nes_crt_interface, nes_cart, NULL) |
| 710 | MCFG_NES_CARTRIDGE_ADD("nes_slot", nes_cart, NULL) |
| 716 | 711 | MCFG_SOFTWARE_LIST_ADD("cart_list", "nes") |
| 717 | 712 | MCFG_SOFTWARE_LIST_ADD("ade_list", "nes_ade") // Camerica/Codemasters Aladdin Deck Enhancer mini-carts |
| 718 | 713 | MCFG_SOFTWARE_LIST_ADD("ntb_list", "nes_ntbrom") // Sunsoft Nantettate! Baseball mini-carts |
| r29452 | r29453 | |
| 768 | 763 | |
| 769 | 764 | static MACHINE_CONFIG_DERIVED( famicom, nes ) |
| 770 | 765 | MCFG_DEVICE_REMOVE("nes_slot") |
| 771 | | MCFG_NES_CARTRIDGE_ADD("nes_slot", nes_crt_interface, nes_cart, NULL) |
| 766 | MCFG_NES_CARTRIDGE_ADD("nes_slot", nes_cart, NULL) |
| 772 | 767 | MCFG_NES_CARTRIDGE_NOT_MANDATORY |
| 773 | 768 | |
| 774 | 769 | MCFG_LEGACY_FLOPPY_DRIVE_ADD(FLOPPY_0, nes_floppy_interface) |