| Previous | 15994 Revisions | Next |
| r3979 Wednesday 24th December, 2008 at 18:27:50 UTC by Miodrag Milanović |
|---|
| Convert CARTSLOT into device |
| [src/mess/devices] | cartslot.c cartslot.h |
| [src/mess/drivers] | a2600.c a7800.c adam.c advision.c aim65.c amiga.c amstrad.c apf.c aquarius.c arcadia.c astrocde.c atari.c atarist.c bbc.c bbcbc.c c128.c c16.c c64.c c65.c cbmb.c cgenie.c channelf.c coco.c coleco.c crvision.c exidy.c gamecom.c gamepock.c gb.c genesis.c gmaster.c intv.c jaguar.c jupiter.c lynx.c mbee.c mekd2.c msx.c n64.c nc.c nes.c odyssey2.c orion.c pasogo.c pc.c pce.c pentagon.c pet.c pokemini.c primo.c ql.c saturn.c scorpion.c sg1000.c sms.c snes.c sord.c spec128.c specpls3.c spectrum.c studio2.c super80.c svi318.c svision.c thomson.c timex.c tutor.c vc20.c vc4000.c vector06.c vectrex.c vtech1.c vtech2.c wswan.c |
| [src/mess/includes] | c16.h c64.h cbmb.h genesis.h lynx.h pet.h spectrum.h vc20.h |
| [src/mess/machine] | bbc.c c16.c c64.c cbmb.c genesis.c intv.c lynx.c msx.c pet.c sms.c snescart.c snescart.h vc20.c |
| r3978 | r3979 | |
|---|---|---|
| 13 | 13 | |
| 14 | 14 | #include "video/mc6845.h" |
| 15 | 15 | #include "machine/6526cia.h" |
| 16 | #include "devices/cartslot.h" | |
| 16 | 17 | |
| 17 | ||
| 18 | 18 | /*----------- defined in machine/cbmb.c -----------*/ |
| 19 | 19 | |
| 20 | 20 | extern UINT8 *cbmb_basic; |
| r3978 | r3979 | |
| 35 | 35 | DRIVER_INIT( cbm700 ); |
| 36 | 36 | MACHINE_RESET( cbmb ); |
| 37 | 37 | |
| 38 | ||
| 38 | extern const c | |
| 39 | 39 | |
| 40 | 40 | |
| 41 | 41 | /*----------- defined in video/cbmb.c -----------*/ |
| r3978 | r3979 | |
|---|---|---|
| 40 | 40 | int lynx_verify_cart (char *header, int kind); |
| 41 | 41 | void lynx_crc_keyword(const device_config *image); |
| 42 | 42 | |
| 43 | ||
| 43 | extern const cartslot_ | |
| 44 | 44 | |
| 45 | 45 | |
| 46 | 46 | /*----------- defined in audio/lynx.c -----------*/ |
| r3978 | r3979 | |
|---|---|---|
| 8 | 8 | #define SPECTRUM_H |
| 9 | 9 | |
| 10 | 10 | #include "devices/snapquik.h" |
| 11 | #include "devices/cartslot.h" | |
| 11 | 12 | |
| 12 | ||
| 13 | 13 | /* Spectrum screen size in pixels */ |
| 14 | 14 | #define SPEC_UNSEEN_LINES 16 /* Non-visible scanlines before first border |
| 15 | 15 | line. Some of these may be vertical retrace. */ |
| r3978 | r3979 | |
| 54 | 54 | TIMEX_CART_HOME |
| 55 | 55 | } TIMEX_CART_TYPE; |
| 56 | 56 | |
| 57 | extern const cartslot_interface spectrum_cartslot; | |
| 57 | 58 | |
| 58 | 59 | /*----------- defined in machine/spectrum.c -----------*/ |
| 59 | 60 |
| r3978 | r3979 | |
|---|---|---|
| 9 | 9 | |
| 10 | 10 | #include "video/mc6845.h" |
| 11 | 11 | #include "machine/6522via.h" |
| 12 | #include "devices/cartslot.h" | |
| 12 | 13 | |
| 13 | 14 | /*----------- defined in video/pet.c -----------*/ |
| 14 | 15 | |
| r3978 | r3979 | |
| 44 | 45 | MACHINE_RESET( pet ); |
| 45 | 46 | INTERRUPT_GEN( pet_frame_interrupt ); |
| 46 | 47 | |
| 47 | void pet_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info); | |
| 48 | void pet4_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info); | |
| 48 | extern const cartslot_interface pet_cartslot; | |
| 49 | extern const cartslot_interface pet4_cartslot; | |
| 49 | 50 | |
| 50 | ||
| 51 | 51 | #endif /* PET_H_ */ |
| r3978 | r3979 | |
|---|---|---|
| 7 | 7 | #ifndef C16_H_ |
| 8 | 8 | #define C16_H_ |
| 9 | 9 | |
| 10 | #include "devices/cartslot.h" | |
| 10 | 11 | |
| 11 | 12 | /*----------- defined in machine/c16.c -----------*/ |
| 12 | 13 | |
| r3978 | r3979 | |
| 46 | 47 | extern MACHINE_RESET( c16 ); |
| 47 | 48 | extern INTERRUPT_GEN( c16_frame_interrupt ); |
| 48 | 49 | |
| 49 | ||
| 50 | extern const c | |
| 50 | 51 | |
| 51 | 52 | |
| 52 | 53 | /*----------- defined in audio/t6721.c -----------*/ |
| r3978 | r3979 | |
|---|---|---|
| 8 | 8 | #define VC20_H_ |
| 9 | 9 | |
| 10 | 10 | #include "machine/6522via.h" |
| 11 | #include "devices/cartslot.h" | |
| 11 | 12 | |
| 12 | 13 | #define VC20ADDR2VIC6560ADDR(a) (((a) > 0x8000) ? ((a) & 0x1fff) : ((a) | 0x2000)) |
| 13 | 14 | #define VIC6560ADDR2VC20ADDR(a) (((a) > 0x2000) ? ((a) & 0x1fff) : ((a) | 0x8000)) |
| r3978 | r3979 | |
| 45 | 46 | MACHINE_RESET( vic20 ); |
| 46 | 47 | INTERRUPT_GEN( vic20_frame_interrupt ); |
| 47 | 48 | |
| 48 | ||
| 49 | extern const | |
| 49 | 50 | |
| 50 | 51 | #endif /* VC20_H_ */ |
| r3978 | r3979 | |
|---|---|---|
| 14 | 14 | #define C64_H_ |
| 15 | 15 | |
| 16 | 16 | #include "machine/6526cia.h" |
| 17 | #include "devices/cartslot.h" | |
| 17 | 18 | |
| 18 | ||
| 19 | 19 | /*----------- defined in machine/c64.c -----------*/ |
| 20 | 20 | |
| 21 | 21 | /* private area */ |
| r3978 | r3979 | |
| 67 | 67 | extern const cia6526_interface c64_ntsc_cia0, c64_pal_cia0; |
| 68 | 68 | extern const cia6526_interface c64_ntsc_cia1, c64_pal_cia1; |
| 69 | 69 | |
| 70 | void c64_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info); | |
| 71 | void ultimax_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info); | |
| 70 | extern const cartslot_interface c64_cartslot; | |
| 71 | extern const cartslot_interface ultimax_cartslot; | |
| 72 | 72 | |
| 73 | 73 | #endif /* C64_H_ */ |
| r3978 | r3979 | |
|---|---|---|
| 7 | 7 | #ifndef GENESIS_H_ |
| 8 | 8 | #define GENESIS_H_ |
| 9 | 9 | |
| 10 | #include "devices/cartslot.h" | |
| 10 | 11 | |
| 11 | 12 | /*----------- defined in machine/genesis.c -----------*/ |
| 12 | 13 | |
| 13 | 14 | MACHINE_RESET( md_mappers ); |
| 14 | 15 | DRIVER_INIT( gencommon ); |
| 15 | 16 | |
| 16 | void genesis_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info); | |
| 17 | void pico_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info); | |
| 17 | extern const cartslot_interface genesis_cartslot; | |
| 18 | extern const cartslot_interface pico_cartslot; | |
| 18 | 19 | |
| 19 | ||
| 20 | 20 | #endif /* GENESIS_H_ */ |
| r3978 | r3979 | |
|---|---|---|
| 521 | 521 | return INIT_PASS; |
| 522 | 522 | } |
| 523 | 523 | |
| 524 | void cbmb_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) | |
| 525 | { | |
| 526 | switch(state) | |
| 527 | { | |
| 528 | /* --- the following bits of info are returned as 64-bit signed integers --- */ | |
| 529 | case MESS_DEVINFO_INT_COUNT: info->i = 2; break; | |
| 530 | 524 | |
| 531 | /* --- the following bits of info are returned as NULL-terminated strings --- */ | |
| 532 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "crt,10,20,40,60"); break; | |
| 533 | ||
| 534 | /* --- the following bits of info are returned as pointers to data or functions --- */ | |
| 535 | case MESS_DEVINFO_PTR_LOAD: info->load = DEVICE_IMAGE_LOAD_NAME(cbmb_cart); break; | |
| 536 | ||
| 537 | default: cartslot_device_getinfo(devclass, state, info); break; | |
| 538 | } | |
| 539 | } | |
| 525 | const cartslot_interface cbmb_cartslot = | |
| 526 | { | |
| 527 | "crt,10,20,40,60", | |
| 528 | 0, | |
| 529 | NULL, | |
| 530 | DEVICE_IMAGE_LOAD_NAME(cbmb_cart), | |
| 531 | NULL, | |
| 532 | NULL | |
| 533 | }; |
| r3978 | r3979 | |
|---|---|---|
| 793 | 793 | return INIT_PASS; |
| 794 | 794 | } |
| 795 | 795 | |
| 796 | ||
| 797 | void pet_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) | |
| 796 | const cartslot_interface pet_cartslot = | |
| 798 | 797 | { |
| 799 | switch(state) | |
| 800 | { | |
| 801 | /* --- the following bits of info are returned as 64-bit signed integers --- */ | |
| 802 | case MESS_DEVINFO_INT_COUNT: info->i = 2; break; | |
| 798 | "crt,a0,b0", | |
| 799 | 0, | |
| 800 | NULL, | |
| 801 | DEVICE_IMAGE_LOAD_NAME(pet_cart), | |
| 802 | NULL, | |
| 803 | NULL | |
| 804 | }; | |
| 803 | 805 | |
| 804 | /* --- the following bits of info are returned as NULL-terminated strings --- */ | |
| 805 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "crt,a0,b0"); break; | |
| 806 | ||
| 807 | /* --- the following bits of info are returned as pointers to data or functions --- */ | |
| 808 | case MESS_DEVINFO_PTR_LOAD: info->load = DEVICE_IMAGE_LOAD_NAME(pet_cart); break; | |
| 809 | ||
| 810 | default: cartslot_device_getinfo(devclass, state, info); break; | |
| 811 | } | |
| 812 | } | |
| 813 | ||
| 814 | void pet4_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) | |
| 806 | const cartslot_interface pet4_cartslot = | |
| 815 | 807 | { |
| 816 | switch(state) | |
| 817 | { | |
| 818 | /* --- the following bits of info are returned as 64-bit signed integers --- */ | |
| 819 | case MESS_DEVINFO_INT_COUNT: info->i = 2; break; | |
| 808 | "crt,a0", | |
| 809 | 0, | |
| 810 | NULL, | |
| 811 | DEVICE_IMAGE_LOAD_NAME(pet_cart), | |
| 812 | NULL, | |
| 813 | NULL | |
| 814 | }; | |
| 820 | 815 | |
| 821 | /* --- the following bits of info are returned as NULL-terminated strings --- */ | |
| 822 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "crt,a0"); break; | |
| 823 | ||
| 824 | /* --- the following bits of info are returned as pointers to data or functions --- */ | |
| 825 | case MESS_DEVINFO_PTR_LOAD: info->load = DEVICE_IMAGE_LOAD_NAME(pet_cart); break; | |
| 826 | ||
| 827 | default: cartslot_device_getinfo(devclass, state, info); break; | |
| 828 | } | |
| 829 | } |
| r3978 | r3979 | |
|---|---|---|
| 717 | 717 | return INIT_PASS; |
| 718 | 718 | } |
| 719 | 719 | |
| 720 | void c16_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) | |
| 721 | { | |
| 722 | switch(state) | |
| 723 | { | |
| 724 | /* --- the following bits of info are returned as 64-bit signed integers --- */ | |
| 725 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 726 | 720 | |
| 727 | /* --- the following bits of info are returned as pointers to data or functions --- */ | |
| 728 | case MESS_DEVINFO_PTR_LOAD: info->load = DEVICE_IMAGE_LOAD_NAME(c16_cart); break; | |
| 729 | ||
| 730 | /* --- the following bits of info are returned as NULL-terminated strings --- */ | |
| 731 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "bin,rom,hi,lo"); break; | |
| 732 | ||
| 733 | default: cartslot_device_getinfo(devclass, state, info); break; | |
| 734 | } | |
| 735 | } | |
| 721 | const cartslot_interface c16_cartslot = | |
| 722 | { | |
| 723 | "bin,rom,hi,lo", | |
| 724 | 0, | |
| 725 | NULL, | |
| 726 | DEVICE_IMAGE_LOAD_NAME(c16_cart), | |
| 727 | NULL, | |
| 728 | NULL | |
| 729 | }; |
| r3978 | r3979 | |
|---|---|---|
| 770 | 770 | { |
| 771 | 771 | running_machine *machine = image->machine; |
| 772 | 772 | int size = image_length(image); |
| 773 | int index = | |
| 773 | int index = 0 | |
| 774 | 774 | const char *fname = image_filename( image ); |
| 775 | 775 | int fname_len = fname ? strlen( fname ) : 0; |
| 776 | 776 | const char *extrainfo = image_extrainfo( image ); |
| 777 | 777 | const address_space *space = cpu_get_address_space(machine->cpu[0], ADDRESS_SPACE_PROGRAM); |
| 778 | 778 | |
| 779 | if (strcmp(image->tag,"cart1")==0) { | |
| 780 | index = 0; | |
| 781 | } | |
| 782 | if (strcmp(image->tag,"cart2")==0) { | |
| 783 | index = 1; | |
| 784 | } | |
| 785 | if (strcmp(image->tag,"cart3")==0) { | |
| 786 | index = 2; | |
| 787 | } | |
| 788 | if (strcmp(image->tag,"cart4")==0) { | |
| 789 | index = 3; | |
| 790 | } | |
| 791 | if (strcmp(image->tag,"cart5")==0) { | |
| 792 | index = 4; | |
| 793 | } | |
| 779 | 794 | /* Check for 512-byte header */ |
| 780 | 795 | if ((size / 512) & 1) |
| 781 | 796 | { |
| r3978 | r3979 | |
|---|---|---|
| 93 | 93 | slot_state *state; |
| 94 | 94 | int id; |
| 95 | 95 | |
| 96 | id = image_index_in_device (image); | |
| 96 | if (strcmp(image->tag,"cart1")==0) { | |
| 97 | id = 0; | |
| 98 | } | |
| 99 | if (strcmp(image->tag,"cart2")==0) { | |
| 100 | id = 1; | |
| 101 | } | |
| 97 | 102 | |
| 98 | 103 | size = image_length (image); |
| 99 | 104 | if (size < 0x2000) { |
| r3978 | r3979 | |
| 269 | 274 | { |
| 270 | 275 | int id; |
| 271 | 276 | |
| 272 | id = image_index_in_device (image); | |
| 277 | if (strcmp(image->tag,"cart1")==0) { | |
| 278 | id = 0; | |
| 279 | } | |
| 280 | if (strcmp(image->tag,"cart2")==0) { | |
| 281 | id = 1; | |
| 282 | } | |
| 273 | 283 | if (msx_slot_list[msx1.cart_state[id]->type].savesram) |
| 274 | 284 | { |
| 275 | 285 | msx_slot_list[msx1.cart_state[id]->type].savesram (msx1.cart_state[id]); |
| r3978 | r3979 | |
|---|---|---|
| 1981 | 1981 | return INIT_PASS; |
| 1982 | 1982 | } |
| 1983 | 1983 | |
| 1984 | ||
| 1984 | co | |
| 1985 | 1985 | { |
| 1986 | /* cartslot */ | |
| 1987 | switch(state) | |
| 1988 | { | |
| 1989 | /* --- the following bits of info are returned as 64-bit signed integers --- */ | |
| 1990 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 1991 | ||
| 1992 | /* --- the following bits of info are returned as pointers to data or functions --- */ | |
| 1993 | case MESS_DEVINFO_PTR_LOAD: info->load = DEVICE_IMAGE_LOAD_NAME(lynx_cart); break; | |
| 1994 | case MESS_DEVINFO_PTR_PARTIAL_HASH: info->partialhash = lynx_partialhash; break; | |
| 1995 | ||
| 1996 | /* --- the following bits of info are returned as NULL-terminated strings --- */ | |
| 1997 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "lnx,lyx"); break; | |
| 1998 | ||
| 1999 | default: cartslot_device_getinfo(devclass, state, info); break; | |
| 2000 | } | |
| 2001 | } | |
| 1986 | "lnx,ly", | |
| 1987 | 0, | |
| 1988 | NULL, | |
| 1989 | DEVICE_IMAGE_LOAD_NAME(lynx_cart), | |
| 1990 | NULL, | |
| 1991 | lynx_partialhash | |
| 1992 | }; |
| r3978 | r3979 | |
|---|---|---|
| 704 | 704 | const char *filetype; |
| 705 | 705 | const char *tag; |
| 706 | 706 | int address = 0; |
| 707 | int index = 0; | |
| 707 | 708 | |
| 708 | 709 | static const unsigned char magic[] = {0x41, 0x30, 0x20, 0xc3, 0xc2, 0xcd}; /* A0 CBM at 0xa004 (module offset 4) */ |
| 709 | 710 | unsigned char buffer[sizeof (magic)]; |
| 710 | 711 | |
| 712 | if (strcmp(image->tag,"cart1")==0) { | |
| 713 | index = 0; | |
| 714 | } | |
| 715 | if (strcmp(image->tag,"cart2")==0) { | |
| 716 | index = 1; | |
| 717 | } | |
| 718 | ||
| 711 | 719 | image_fseek (image, 4, SEEK_SET); |
| 712 | 720 | image_fread (image, buffer, sizeof (magic)); |
| 713 | 721 | image_fseek (image, 0, SEEK_SET); |
| r3978 | r3979 | |
| 740 | 748 | } |
| 741 | 749 | |
| 742 | 750 | /* Decide the memory region we will load the cart in, to avoid problems when multiple carts need to be loaded */ |
| 743 | tag = | |
| 751 | tag = | |
| 744 | 752 | |
| 745 | 753 | logerror("Loading cart %s at %.4x size:%.4x\n", image_filename(image), address, size); |
| 746 | 754 | |
| r3978 | r3979 | |
| 777 | 785 | return INIT_PASS; |
| 778 | 786 | } |
| 779 | 787 | |
| 780 | ||
| 781 | void vic20_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) | |
| 788 | const cartslot_interface vic20_cartslot = | |
| 782 | 789 | { |
| 783 | switch(state) | |
| 784 | { | |
| 785 | /* --- the following bits of info are returned as 64-bit signed integers --- */ | |
| 786 | case MESS_DEVINFO_INT_COUNT: info->i = 2; break; | |
| 787 | ||
| 788 | /* --- the following bits of info are returned as pointers to data or functions --- */ | |
| 789 | case MESS_DEVINFO_PTR_START: info->start = DEVICE_START_NAME(vic20_cart); break; | |
| 790 | case MESS_DEVINFO_PTR_LOAD: info->load = DEVICE_IMAGE_LOAD_NAME(vic20_cart); break; | |
| 791 | ||
| 792 | /* --- the following bits of info are returned as NULL-terminated strings --- */ | |
| 793 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "rom,bin,a0,20,40,60"); break; | |
| 794 | ||
| 795 | default: cartslot_device_getinfo(devclass, state, info); break; | |
| 796 | } | |
| 797 | } | |
| 790 | "rom,bin,a0,20,40,60", | |
| 791 | 0, | |
| 792 | DEVICE_START_NAME(vic20_cart), | |
| 793 | DEVICE_IMAGE_LOAD_NAME(vic20_cart), | |
| 794 | NULL, | |
| 795 | NULL | |
| 796 | }; |
| r3978 | r3979 | |
|---|---|---|
| 578 | 578 | |
| 579 | 579 | DEVICE_IMAGE_LOAD( intvkbd_cart ) |
| 580 | 580 | { |
| 581 | int id = image_index_in_device(image); | |
| 582 | if (id == 0) /* Legacy cartridge slot */ | |
| 581 | if (strcmp(image->tag,"cart1") == 0) /* Legacy cartridge slot */ | |
| 583 | 582 | { |
| 584 | 583 | /* First, initialize these as empty so that the intellivision |
| 585 | 584 | * will think that the playcable is not attached */ |
| r3978 | r3979 | |
| 592 | 591 | intv_load_rom_file(image); |
| 593 | 592 | } |
| 594 | 593 | |
| 595 | if (i | |
| 594 | if (strcmp(image->tag,"cart2") == 0) /* Keyboard component cartridge slot */ | |
| 596 | 595 | { |
| 597 | 596 | UINT8 *memory = memory_region(image->machine, "keyboard"); |
| 598 | 597 |
| r3978 | r3979 | |
|---|---|---|
| 767 | 767 | return INIT_PASS; |
| 768 | 768 | } |
| 769 | 769 | |
| 770 | ||
| 771 | void snes_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) | |
| 770 | const cartslot_interface snes_cartslot = | |
| 772 | 771 | { |
| 773 | /* cartslot */ | |
| 774 | switch(state) | |
| 775 | { | |
| 776 | /* --- the following bits of info are returned as 64-bit signed integers --- */ | |
| 777 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 778 | case MESS_DEVINFO_INT_MUST_BE_LOADED: info->i = 1; break; | |
| 772 | "smc,sfc,fig,swc", | |
| 773 | 1, | |
| 774 | NULL, | |
| 775 | DEVICE_IMAGE_LOAD_NAME(snes_cart), | |
| 776 | NULL, | |
| 777 | NULL | |
| 778 | }; | |
| 779 | 779 | |
| 780 | /* --- the following bits of info are returned as pointers to data or functions --- */ | |
| 781 | case MESS_DEVINFO_PTR_LOAD: info->load = DEVICE_IMAGE_LOAD_NAME(snes_cart); break; | |
| 782 | ||
| 783 | /* --- the following bits of info are returned as NULL-terminated strings --- */ | |
| 784 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "smc,sfc,fig,swc"); break; | |
| 785 | ||
| 786 | default: cartslot_device_getinfo(devclass, state, info); break; | |
| 787 | } | |
| 788 | } |
| r3978 | r3979 | |
|---|---|---|
| 6 | 6 | #ifndef _SNESCART_H |
| 7 | 7 | #define _SNESCART_H |
| 8 | 8 | |
| 9 | #include "devices/cartslot.h" | |
| 9 | 10 | |
| 10 | 11 | MACHINE_START( snes_mess ); |
| 11 | 12 | |
| 12 | ||
| 13 | extern con | |
| 13 | 14 | |
| 14 | 15 | #endif /* _SNESCART_H */ |
| 15 | 16 |
| r3978 | r3979 | |
|---|---|---|
| 1405 | 1405 | |
| 1406 | 1406 | static DEVICE_IMAGE_UNLOAD(c64_cart) |
| 1407 | 1407 | { |
| 1408 | int index = image_index_in_device(image); | |
| 1408 | int index = 0; | |
| 1409 | if (strcmp(image->tag,"cart1")==0) { | |
| 1410 | index = 0; | |
| 1411 | } | |
| 1412 | if (strcmp(image->tag,"cart2")==0) { | |
| 1413 | index = 1; | |
| 1414 | } | |
| 1409 | 1415 | c64_cbm_cart[index].size = 0; |
| 1410 | 1416 | c64_cbm_cart[index].chip = 0; |
| 1411 | 1417 | } |
| 1412 | 1418 | |
| 1413 | 1419 | static DEVICE_START(c64_cart) |
| 1414 | 1420 | { |
| 1415 | int index = image_index_in_device(device); | |
| 1421 | int index = 0; | |
| 1422 | if (strcmp(device->tag,"cart1")==0) { | |
| 1423 | index = 0; | |
| 1424 | } | |
| 1425 | if (strcmp(device->tag,"cart2")==0) { | |
| 1426 | index = 1; | |
| 1427 | } | |
| 1416 | 1428 | if (index == 0) |
| 1417 | 1429 | { |
| 1418 | 1430 | cbm_c64_game = -1; |
| r3978 | r3979 | |
| 1639 | 1651 | return INIT_PASS; |
| 1640 | 1652 | } |
| 1641 | 1653 | |
| 1642 | void c64_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) | |
| 1643 | { | |
| 1644 | switch(state) | |
| 1645 | { | |
| 1646 | /* --- the following bits of info are returned as 64-bit signed integers --- */ | |
| 1647 | case MESS_DEVINFO_INT_COUNT: info->i = 2; break; | |
| 1648 | 1654 | |
| 1649 | /* --- the following bits of info are returned as NULL-terminated strings --- */ | |
| 1650 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "crt,80"); break; | |
| 1651 | ||
| 1652 | /* --- the following bits of info are returned as pointers to data or functions --- */ | |
| 1653 | case MESS_DEVINFO_PTR_START: info->start = DEVICE_START_NAME(c64_cart); break; | |
| 1654 | case MESS_DEVINFO_PTR_LOAD: info->load = DEVICE_IMAGE_LOAD_NAME(c64_cart); break; | |
| 1655 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = DEVICE_IMAGE_UNLOAD_NAME(c64_cart); break; | |
| 1656 | ||
| 1657 | default: cartslot_device_getinfo(devclass, state, info); | |
| 1658 | } | |
| 1659 | } | |
| 1660 | ||
| 1661 | void ultimax_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) | |
| 1655 | const cartslot_interface c64_cartslot = | |
| 1662 | 1656 | { |
| 1663 | switch(state) | |
| 1664 | { | |
| 1665 | /* --- the following bits of info are returned as 64-bit signed integers --- */ | |
| 1666 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 1667 | case MESS_DEVINFO_INT_MUST_BE_LOADED: info->i = 1; break; | |
| 1657 | "crt,80", | |
| 1658 | 0, | |
| 1659 | DEVICE_START_NAME(c64_cart), | |
| 1660 | DEVICE_IMAGE_LOAD_NAME(c64_cart), | |
| 1661 | DEVICE_IMAGE_UNLOAD_NAME(c64_cart), | |
| 1662 | NULL | |
| 1663 | }; | |
| 1668 | 1664 | |
| 1669 | /* --- the following bits of info are returned as NULL-terminated strings --- */ | |
| 1670 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "crt,e0,f0"); break; | |
| 1671 | ||
| 1672 | /* --- the following bits of info are returned as pointers to data or functions --- */ | |
| 1673 | case MESS_DEVINFO_PTR_START: info->start = DEVICE_START_NAME(c64_cart); break; | |
| 1674 | case MESS_DEVINFO_PTR_LOAD: info->load = DEVICE_IMAGE_LOAD_NAME(c64_cart); break; | |
| 1675 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = DEVICE_IMAGE_UNLOAD_NAME(c64_cart); break; | |
| 1676 | ||
| 1677 | default: cartslot_device_getinfo(devclass, state, info); break; | |
| 1678 | } | |
| 1679 | } | |
| 1665 | const cartslot_interface ultimax_cartslot = | |
| 1666 | { | |
| 1667 | "crt,e0,f0", | |
| 1668 | 1, | |
| 1669 | DEVICE_START_NAME(c64_cart), | |
| 1670 | DEVICE_IMAGE_LOAD_NAME(c64_cart), | |
| 1671 | DEVICE_IMAGE_UNLOAD_NAME(c64_cart), | |
| 1672 | NULL | |
| 1673 | }; |
| r3978 | r3979 | |
|---|---|---|
| 1236 | 1236 | |
| 1237 | 1237 | /******* Cart getinfo *******/ |
| 1238 | 1238 | |
| 1239 | ||
| 1239 | co | |
| 1240 | 1240 | { |
| 1241 | /* cartslot */ | |
| 1242 | switch(state) | |
| 1243 | { | |
| 1244 | /* --- the following bits of info are returned as 64-bit signed integers --- */ | |
| 1245 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 1246 | case MESS_DEVINFO_INT_MUST_BE_LOADED: info->i = 1; break; | |
| 1241 | "smd,bin,md,gen", | |
| 1242 | 1, | |
| 1243 | NULL, | |
| 1244 | DEVICE_IMAGE_LOAD_NAME(genesis_cart), | |
| 1245 | DEVICE_IMAGE_UNLOAD_NAME(genesis_cart), | |
| 1246 | NULL | |
| 1247 | }; | |
| 1247 | 1248 | |
| 1248 | /* --- the following bits of info are returned as pointers to data or functions --- */ | |
| 1249 | case MESS_DEVINFO_PTR_LOAD: info->load = DEVICE_IMAGE_LOAD_NAME(genesis_cart); break; | |
| 1250 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = DEVICE_IMAGE_UNLOAD_NAME(genesis_cart); break; | |
| 1251 | ||
| 1252 | /* --- the following bits of info are returned as NULL-terminated strings --- */ | |
| 1253 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "smd,bin,md,gen"); break; | |
| 1254 | ||
| 1255 | default: cartslot_device_getinfo(devclass, state, info); break; | |
| 1256 | } | |
| 1257 | } | |
| 1258 | ||
| 1259 | ||
| 1260 | void pico_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) | |
| 1249 | const cartslot_interface pico_cartslot = | |
| 1261 | 1250 | { |
| 1262 | /* cartslot */ | |
| 1263 | switch(state) | |
| 1264 | { | |
| 1265 | /* --- the following bits of info are returned as 64-bit signed integers --- */ | |
| 1266 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 1267 | case MESS_DEVINFO_INT_MUST_BE_LOADED: info->i = 1; break; | |
| 1251 | "bin", | |
| 1252 | 1, | |
| 1253 | NULL, | |
| 1254 | DEVICE_IMAGE_LOAD_NAME(genesis_cart), | |
| 1255 | DEVICE_IMAGE_UNLOAD_NAME(genesis_cart), | |
| 1256 | NULL | |
| 1257 | }; | |
| 1268 | 1258 | |
| 1269 | /* --- the following bits of info are returned as pointers to data or functions --- */ | |
| 1270 | case MESS_DEVINFO_PTR_LOAD: info->load = DEVICE_IMAGE_LOAD_NAME(genesis_cart); break; | |
| 1271 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = DEVICE_IMAGE_UNLOAD_NAME(genesis_cart); break; | |
| 1272 | ||
| 1273 | /* --- the following bits of info are returned as NULL-terminated strings --- */ | |
| 1274 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "bin"); break; | |
| 1275 | ||
| 1276 | default: cartslot_device_getinfo(devclass, state, info); break; | |
| 1277 | } | |
| 1278 | } |
| r3978 | r3979 | |
|---|---|---|
| 2114 | 2114 | UINT8 *mem = memory_region (image->machine, "user1"); |
| 2115 | 2115 | int size, read_; |
| 2116 | 2116 | int addr = 0; |
| 2117 | int index = 0; | |
| 2117 | 2118 | |
| 2118 | 2119 | size = image_length (image); |
| 2119 | 2120 | |
| 2120 | addr = 0x8000 + (0x4000 * image_index_in_device(image)); | |
| 2121 | if (strcmp(image->tag,"cart1")==0) { | |
| 2122 | index = 0; | |
| 2123 | } | |
| 2124 | if (strcmp(image->tag,"cart2")==0) { | |
| 2125 | index = 1; | |
| 2126 | } | |
| 2127 | if (strcmp(image->tag,"cart3")==0) { | |
| 2128 | index = 2; | |
| 2129 | } | |
| 2130 | if (strcmp(image->tag,"cart4")==0) { | |
| 2131 | index = 3; | |
| 2132 | } | |
| 2133 | addr = 0x8000 + (0x4000 * index); | |
| 2121 | 2134 | |
| 2122 | 2135 | |
| 2123 | 2136 | logerror("loading rom %s at %.4x size:%.4x\n",image_filename(image), addr, size); |
| r3978 | r3979 | |
|---|---|---|
| 2 | 2 | #include "driver.h" |
| 3 | 3 | #include "cartslot.h" |
| 4 | 4 | |
| 5 | const cartslot_interface default_cartslot = | |
| 6 | { | |
| 7 | "bin", | |
| 8 | 0, | |
| 9 | NULL, | |
| 10 | NULL, | |
| 11 | NULL, | |
| 12 | NULL | |
| 13 | }; | |
| 5 | 14 | |
| 6 | static int is_cart_roment(const rom_entry *roment) | |
| 15 | typedef struct _dev_cartslot_t dev_cartslot_t; | |
| 16 | struct _dev_cartslot_t | |
| 7 | 17 | { |
| 8 | return ROMENTRY_GETTYPE(roment) == ROMENTRYTYPE_CARTRIDGE; | |
| 9 | } | |
| 18 | const cartslot_interface *intf; | |
| 19 | }; | |
| 10 | 20 | |
| 11 | ||
| 12 | ||
| 13 | static int parse_rom_name(const rom_entry *roment, int *position, const char **extensions) | |
| 21 | INLINE dev_cartslot_t *get_safe_token(const device_config *device) | |
| 14 | 22 | { |
| 15 | const char *data = roment->_hashdata; | |
| 23 | assert(device != NULL); | |
| 24 | assert(device->token != NULL); | |
| 16 | 25 | |
| 17 | if (data[0] != '#') | |
| 18 | return -1; | |
| 19 | if (!isdigit(data[1])) | |
| 20 | return -1; | |
| 21 | if (data[2] != '\0') | |
| 22 | return -1; | |
| 23 | ||
| 24 | if (position) | |
| 25 | *position = data[1] - '0'; | |
| 26 | if (extensions) | |
| 27 | *extensions = &data[3]; | |
| 28 | return 0; | |
| 26 | return (dev_cartslot_t *)device->token; | |
| 29 | 27 | } |
| 30 | 28 | |
| 31 | ||
| 32 | ||
| 33 | 29 | static int load_cartridge(running_machine *machine, const rom_entry *romrgn, const rom_entry *roment, const device_config *image) |
| 34 | 30 | { |
| 35 | 31 | const char *region; |
| r3978 | r3979 | |
| 115 | 111 | { |
| 116 | 112 | const rom_source *source; |
| 117 | 113 | const rom_entry *romrgn, *roment; |
| 118 | int | |
| 114 | int | |
| 119 | 115 | |
| 120 | 116 | for (source = rom_first_source(image->machine->gamedrv, image->machine->config); source != NULL; source = rom_next_source(image->machine->gamedrv, image->machine->config, source)) |
| 121 | 117 | { |
| r3978 | r3979 | |
| 124 | 120 | roment = romrgn + 1; |
| 125 | 121 | while(!ROMENTRY_ISREGIONEND(roment)) |
| 126 | 122 | { |
| 127 | if (is_cart_roment(roment)) | |
| 128 | { | |
| 129 | parse_rom_name(roment, &position, NULL); | |
| 130 | if (position == image_index_in_device(image)) | |
| 131 | { | |
| 123 | if (ROMENTRY_GETTYPE(roment) == ROMENTRYTYPE_CARTRIDGE) | |
| 124 | { | |
| 125 | if (strcmp(roment->_hashdata,image->tag)==0) | |
| 126 | { | |
| 132 | 127 | result = load_cartridge(image->machine, romrgn, roment, file); |
| 133 | 128 | if (!result) |
| 134 | 129 | return result; |
| r3978 | r3979 | |
| 145 | 140 | |
| 146 | 141 | static DEVICE_START( cartslot_specified ) |
| 147 | 142 | { |
| 143 | dev_cartslot_t *cart = get_safe_token(device); | |
| 144 | // validate arguments | |
| 145 | ||
| 146 | assert(device != NULL); | |
| 147 | assert(device->tag != NULL); | |
| 148 | assert(strlen(device->tag) < 20); | |
| 149 | assert(device->static_config != NULL); | |
| 150 | ||
| 151 | cart->intf = device->static_config; | |
| 152 | ||
| 148 | 153 | process_cartridge(device, NULL); |
| 149 | 154 | return DEVICE_START_OK; |
| 150 | 155 | } |
| 151 | 156 | |
| 152 | 157 | static DEVICE_IMAGE_LOAD( cartslot_specified ) |
| 153 | { | |
| 158 | { | |
| 154 | 159 | return process_cartridge(image, image); |
| 155 | 160 | } |
| 156 | 161 | |
| r3978 | r3979 | |
| 161 | 166 | |
| 162 | 167 | |
| 163 | 168 | |
| 164 | void cartslot_device_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) | |
| 165 | { | |
| 166 | const game_driver *gamedrv = devclass->gamedrv; | |
| 167 | machine_config *config = machine_config_alloc(gamedrv->machine_config); | |
| 168 | const rom_source *source; | |
| 169 | const rom_entry *romrgn, *roment; | |
| 170 | int position, count = 0, must_be_loaded = 0; | |
| 171 | const char *file_extensions = "bin"; | |
| 172 | UINT32 flags; | |
| 173 | 169 | |
| 174 | /* try to find ROM_CART_LOADs in the ROM declaration */ | |
| 175 | for (source = rom_first_source(gamedrv, config); source != NULL; source = rom_next_source(gamedrv, config, source)) | |
| 170 | DEVICE_GET_INFO(cartslot) | |
| 171 | { | |
| 172 | switch( state ) | |
| 176 | 173 | { |
| 177 | for (romrgn = rom_first_region(gamedrv, source); romrgn != NULL; romrgn = rom_next_region(romrgn)) | |
| 178 | { | |
| 179 | roment = romrgn + 1; | |
| 180 | while(!ROMENTRY_ISREGIONEND(roment)) | |
| 181 | { | |
| 182 | if (is_cart_roment(roment) && !parse_rom_name(roment, &position, &file_extensions)) | |
| 183 | { | |
| 184 | flags = ROM_GETFLAGS(roment); | |
| 185 | ||
| 186 | /* reject any unsupported flags */ | |
| 187 | if (flags & (ROM_GROUPMASK | ROM_SKIPMASK | ROM_REVERSEMASK | |
| 188 | | ROM_BITWIDTHMASK | ROM_BITSHIFTMASK | |
| 189 | | ROM_INHERITFLAGSMASK)) | |
| 190 | { | |
| 191 | fatalerror("Unsupported ROM cart flags 0x%08X", flags); | |
| 192 | } | |
| 193 | ||
| 194 | count = MAX(position + 1, count); | |
| 195 | must_be_loaded = (flags & ROM_OPTIONAL) ? 0 : 1; | |
| 196 | } | |
| 197 | roment++; | |
| 198 | } | |
| 199 | } | |
| 200 | } | |
| 201 | ||
| 202 | switch(state) | |
| 203 | { | |
| 204 | 174 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 205 | case MESS_DEVINFO_INT_COUNT: info->i = count; break; | |
| 206 | case MESS_DEVINFO_INT_TYPE: info->i = IO_CARTSLOT; break; | |
| 207 | case MESS_DEVINFO_INT_READABLE: info->i = 1; break; | |
| 208 | case MESS_DEVINFO_INT_WRITEABLE: info->i = 0; break; | |
| 209 | case MESS_DEVINFO_INT_CREATABLE: info->i = 0; break; | |
| 210 | case MESS_DEVINFO_INT_RESET_ON_LOAD: info->i = 1; break; | |
| 211 | case MESS_DEVINFO_INT_LOAD_AT_INIT: info->i = 1; break; | |
| 212 | case MESS_DEVINFO_INT_MUST_BE_LOADED: info->i = must_be_loaded; break; | |
| 175 | case DEVINFO_INT_TOKEN_BYTES: info->i = sizeof(dev_cartslot_t); break; | |
| 176 | case DEVINFO_INT_INLINE_CONFIG_BYTES: info->i = 0; break; | |
| 177 | case DEVINFO_INT_CLASS: info->i = DEVICE_CLASS_PERIPHERAL; break; | |
| 178 | case DEVINFO_INT_IMAGE_TYPE: info->i = IO_CARTSLOT; break; | |
| 179 | case DEVINFO_INT_IMAGE_READABLE: info->i = 1; break; | |
| 180 | case DEVINFO_INT_IMAGE_WRITEABLE: info->i = 0; break; | |
| 181 | case DEVINFO_INT_IMAGE_CREATABLE: info->i = 0; break; | |
| 182 | case DEVINFO_INT_IMAGE_RESET_ON_LOAD: info->i = 1; break; | |
| 183 | case DEVINFO_INT_IMAGE_MUST_BE_LOADED: if ( device && device->static_config) { | |
| 184 | info->i = ((cartslot_interface *)device->static_config)->must_be_loaded; | |
| 185 | } else { | |
| 186 | info->i = 0; | |
| 187 | } | |
| 188 | break; | |
| 213 | 189 | |
| 214 | 190 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 215 | case MESS_DEVINFO_PTR_START: info->start = (count > 0) ? DEVICE_START_NAME(cartslot_specified) : NULL; break; | |
| 216 | case MESS_DEVINFO_PTR_LOAD: info->load = (count > 0) ? DEVICE_IMAGE_LOAD_NAME(cartslot_specified) : NULL; break; | |
| 217 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = (count > 0) ? DEVICE_IMAGE_UNLOAD_NAME(cartslot_specified) : NULL; break; | |
| 191 | case DEVINFO_FCT_START: if ( device && device->static_config && ((cartslot_interface *)device->static_config)->device_start) { | |
| 192 | info->start = ((cartslot_interface *)device->static_config)->device_start; | |
| 193 | } else { | |
| 194 | info->start = DEVICE_START_NAME(cartslot_specified); | |
| 195 | } | |
| 196 | break; | |
| 197 | case DEVINFO_FCT_IMAGE_LOAD: if ( device && device->static_config && ((cartslot_interface *)device->static_config)->device_load) { | |
| 198 | info->f = (genf *) ((cartslot_interface *)device->static_config)->device_load; | |
| 199 | } else { | |
| 200 | info->f = (genf *) DEVICE_IMAGE_LOAD_NAME(cartslot_specified); | |
| 201 | } | |
| 202 | break; | |
| 203 | case DEVINFO_FCT_IMAGE_UNLOAD: if ( device && device->static_config && ((cartslot_interface *)device->static_config)->device_unload) { | |
| 204 | info->f = (genf *) ((cartslot_interface *)device->static_config)->device_unload; | |
| 205 | } else { | |
| 206 | info->f = (genf *) DEVICE_IMAGE_UNLOAD_NAME(cartslot_specified); | |
| 207 | } | |
| 208 | break; | |
| 209 | case DEVINFO_FCT_IMAGE_PARTIAL_HASH: if ( device && device->static_config && ((cartslot_interface *)device->static_config)->device_unload) { | |
| 210 | info->f = (genf *)((cartslot_interface *)device->static_config)->device_partialhash; | |
| 211 | } else { | |
| 212 | info->f = NULL; | |
| 213 | } | |
| 214 | break; | |
| 218 | 215 | |
| 219 | 216 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 220 | case MESS_DEVINFO_STR_DEV_FILE: strcpy(info->s = device_temp_str(), __FILE__); break; | |
| 221 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: | |
| 222 | info->s = device_temp_str(); | |
| 223 | strcpy(info->s, file_extensions); | |
| 217 | case DEVINFO_STR_NAME: strcpy(info->s, "Cartslot"); break; | |
| 218 | case DEVINFO_STR_FAMILY: strcpy(info->s, "Cartslot"); break; | |
| 219 | case DEVINFO_STR_SOURCE_FILE: strcpy(info->s, __FILE__); break; | |
| 220 | case DEVINFO_STR_IMAGE_FILE_EXTENSIONS: | |
| 221 | if ( device && device->static_config ) | |
| 222 | { | |
| 223 | strcpy(info->s,((cartslot_interface *)device->static_config)->extensions); | |
| 224 | } | |
| 224 | 225 | break; |
| 225 | 226 | } |
| 226 | machine_config_free(config); | |
| 227 | 227 | } |
| r3978 | r3979 | |
|---|---|---|
| 11 | 11 | #include "image.h" |
| 12 | 12 | |
| 13 | 13 | |
| 14 | #define ROM_CART_LOAD(index,extensions,offset,length,flags) \ | |
| 15 | { NULL, "#" #index "\0" extensions, offset, length, ROMENTRYTYPE_CARTRIDGE | (flags) }, | |
| 14 | #define ROM_CART_LOAD(tag,offset,length,flags) \ | |
| 15 | { NULL, tag, offset, length, ROMENTRYTYPE_CARTRIDGE | (flags) }, | |
| 16 | 16 | |
| 17 | 17 | #define ROM_MIRROR 0x01000000 |
| 18 | 18 | #define ROM_NOMIRROR 0x00000000 |
| r3978 | r3979 | |
| 20 | 20 | #define ROM_FILL_FF 0x04000000 |
| 21 | 21 | #define ROM_NOCLEAR 0x08000000 |
| 22 | 22 | |
| 23 | ||
| 23 | # | |
| 24 | 24 | |
| 25 | /*************************************************************************** | |
| 26 | TYPE DEFINITIONS | |
| 27 | ***************************************************************************/ | |
| 25 | 28 | |
| 29 | typedef struct cartslot_interface_t cartslot_interface; | |
| 30 | struct cartslot_interface_t | |
| 31 | { | |
| 32 | const char *extensions; | |
| 33 | int must_be_loaded; | |
| 34 | device_start_func device_start; | |
| 35 | device_image_load_func device_load; | |
| 36 | device_image_unload_func device_unload; | |
| 37 | device_image_partialhash_func device_partialhash; | |
| 38 | }; | |
| 39 | ||
| 40 | extern const cartslot_interface default_cartslot; | |
| 41 | ||
| 42 | /*************************************************************************** | |
| 43 | FUNCTION PROTOTYPES | |
| 44 | ***************************************************************************/ | |
| 45 | DEVICE_GET_INFO(cartslot); | |
| 46 | ||
| 47 | /*************************************************************************** | |
| 48 | DEVICE CONFIGURATION MACROS | |
| 49 | ***************************************************************************/ | |
| 50 | ||
| 51 | #define MDRV_CARTSLOT_ADD(_tag, _config) \ | |
| 52 | MDRV_DEVICE_ADD(_tag, CARTSLOT, 0) \ | |
| 53 | MDRV_DEVICE_CONFIG(_config) | |
| 54 | ||
| 55 | #define MDRV_CARTSLOT_REMOVE(_tag) \ | |
| 56 | MDRV_DEVICE_REMOVE(_tag, CARTSLOT) | |
| 57 | ||
| 58 | #define MDRV_CARTSLOT_MODIFY(_tag, _config) \ | |
| 59 | MDRV_DEVICE_MODIFY(_tag, CARTSLOT) \ | |
| 60 | MDRV_DEVICE_CONFIG(_config) | |
| 61 | ||
| 26 | 62 | #endif /* CARTSLOT_H */ |
| r3978 | r3979 | |
|---|---|---|
| 127 | 127 | wswan_sh_start |
| 128 | 128 | }; |
| 129 | 129 | |
| 130 | static const cartslot_interface wswan_cartslot = | |
| 131 | { | |
| 132 | "ws,wsc,bin", | |
| 133 | 1, | |
| 134 | DEVICE_START_NAME(wswan_cart), | |
| 135 | DEVICE_IMAGE_LOAD_NAME(wswan_cart), | |
| 136 | NULL, | |
| 137 | NULL | |
| 138 | }; | |
| 139 | ||
| 130 | 140 | static MACHINE_DRIVER_START( wswan ) |
| 131 | 141 | /* Basic machine hardware */ |
| 132 | 142 | MDRV_CPU_ADD("main", V30MZ, 3072000) |
| r3978 | r3979 | |
| 159 | 169 | MDRV_SOUND_CONFIG(wswan_sound_interface) |
| 160 | 170 | MDRV_SOUND_ROUTE(0, "left", 0.50) |
| 161 | 171 | MDRV_SOUND_ROUTE(1, "right", 0.50) |
| 172 | ||
| 173 | MDRV_CARTSLOT_ADD("cart", wswan_cartslot) | |
| 162 | 174 | MACHINE_DRIVER_END |
| 163 | 175 | |
| 164 | 176 | static MACHINE_DRIVER_START( wscolor ) |
| r3978 | r3979 | |
| 170 | 182 | MDRV_PALETTE_INIT( wscolor ) |
| 171 | 183 | MACHINE_DRIVER_END |
| 172 | 184 | |
| 173 | static void wswan_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) | |
| 174 | { | |
| 175 | /* cartslot */ | |
| 176 | switch(state) | |
| 177 | { | |
| 178 | /* --- the following bits of info are returned as 64-bit signed integers --- */ | |
| 179 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 180 | case MESS_DEVINFO_INT_MUST_BE_LOADED: info->i = 1; break; | |
| 181 | ||
| 182 | /* --- the following bits of info are returned as pointers to data or functions --- */ | |
| 183 | case MESS_DEVINFO_PTR_START: info->start = DEVICE_START_NAME(wswan_cart); break; | |
| 184 | case MESS_DEVINFO_PTR_LOAD: info->load = DEVICE_IMAGE_LOAD_NAME(wswan_cart); break; | |
| 185 | ||
| 186 | /* --- the following bits of info are returned as NULL-terminated strings --- */ | |
| 187 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "ws,wsc,bin"); break; | |
| 188 | ||
| 189 | default: cartslot_device_getinfo(devclass, state, info); break; | |
| 190 | } | |
| 191 | } | |
| 192 | ||
| 193 | static SYSTEM_CONFIG_START(wswan) | |
| 194 | CONFIG_DEVICE(wswan_cartslot_getinfo) | |
| 195 | SYSTEM_CONFIG_END | |
| 196 | ||
| 197 | 185 | /*************************************************************************** |
| 198 | 186 | |
| 199 | 187 | Game driver(s) |
| r3978 | r3979 | |
| 211 | 199 | ROM_END |
| 212 | 200 | |
| 213 | 201 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME*/ |
| 214 | CONS( 1999, wswan, 0, 0, wswan, wswan, 0, wswan, "Bandai", "WonderSwan", GAME_IMPERFECT_SOUND ) | |
| 215 | CONS( 2000, wscolor, wswan, 0, wscolor, wswan, 0, wswan, "Bandai", "WonderSwan Color", GAME_IMPERFECT_SOUND ) | |
| 202 | CONS( 1999, wswan, 0, 0, wswan, wswan, 0, 0, "Bandai", "WonderSwan", GAME_IMPERFECT_SOUND ) | |
| 203 | CONS( 2000, wscolor, wswan, 0, wscolor, wswan, 0, 0, "Bandai", "WonderSwan Color", GAME_IMPERFECT_SOUND ) | |
| 216 | 204 |
| r3978 | r3979 | |
|---|---|---|
| 451 | 451 | jaguar_dsp_cpu_int |
| 452 | 452 | }; |
| 453 | 453 | |
| 454 | static const cartslot_interface jaguar_cartslot = | |
| 455 | { | |
| 456 | "jag,abs,bin,rom,j64", | |
| 457 | 1, | |
| 458 | NULL, | |
| 459 | NULL, | |
| 460 | NULL, | |
| 461 | NULL | |
| 462 | }; | |
| 463 | ||
| 454 | 464 | static MACHINE_DRIVER_START( jaguar ) |
| 455 | 465 | |
| 456 | 466 | /* basic machine hardware */ |
| r3978 | r3979 | |
| 487 | 497 | |
| 488 | 498 | /* quickload */ |
| 489 | 499 | MDRV_QUICKLOAD_ADD(jaguar, "bin", 0) |
| 500 | ||
| 501 | MDRV_CARTSLOT_ADD("cart", jaguar_cartslot) | |
| 490 | 502 | MACHINE_DRIVER_END |
| 491 | 503 | |
| 492 | 504 | |
| r3978 | r3979 | |
| 500 | 512 | ROM_START( jaguar ) |
| 501 | 513 | ROM_REGION( 0xe20000, "main", 0 ) /* 4MB for RAM at 0 */ |
| 502 | 514 | ROM_LOAD16_WORD( "jagboot.rom", 0xe00000, 0x020000, CRC(fb731aaa) SHA1(f8991b0c385f4e5002fa2a7e2f5e61e8c5213356)) |
| 503 | ROM_CART_LOAD( | |
| 515 | ROM_CART_LOAD( | |
| 504 | 516 | ROM_END |
| 505 | 517 | |
| 506 | ||
| 507 | ||
| 508 | 518 | /************************************* |
| 509 | 519 | * |
| 510 | 520 | * Driver initialization |
| r3978 | r3979 | |
| 529 | 539 | return INIT_PASS; |
| 530 | 540 | } |
| 531 | 541 | |
| 532 | static SYSTEM_CONFIG_START(jaguar) | |
| 533 | CONFIG_DEVICE(cartslot_device_getinfo) | |
| 534 | SYSTEM_CONFIG_END | |
| 535 | 542 | |
| 536 | ||
| 537 | ||
| 538 | 543 | /************************************* |
| 539 | 544 | * |
| 540 | 545 | * Game driver(s) |
| r3978 | r3979 | |
| 542 | 547 | *************************************/ |
| 543 | 548 | |
| 544 | 549 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME */ |
| 545 | CONS(1993, jaguar, 0, 0, jaguar, jaguar, jaguar, | |
| 550 | CONS(1993, jaguar, 0, 0, jaguar, jaguar, jaguar, 0 |
| r3978 | r3979 | |
|---|---|---|
| 242 | 242 | /* cia */ |
| 243 | 243 | MDRV_CIA6526_ADD("cia_0", CIA6526R1, 0, c64_ntsc_cia0) |
| 244 | 244 | MDRV_CIA6526_ADD("cia_1", CIA6526R1, 0, c64_ntsc_cia1) |
| 245 | ||
| 246 | MDRV_CARTSLOT_ADD("cart1", c64_cartslot) | |
| 247 | MDRV_CARTSLOT_ADD("cart2", c64_cartslot) | |
| 245 | 248 | MACHINE_DRIVER_END |
| 246 | 249 | |
| 247 | 250 | static MACHINE_DRIVER_START( c65pal ) |
| r3978 | r3979 | |
| 302 | 305 | |
| 303 | 306 | |
| 304 | 307 | static SYSTEM_CONFIG_START( c65 ) |
| 305 | | |
| 308 | | |
| 306 | 309 | CONFIG_DEVICE(cbmfloppy_device_getinfo) |
| 307 | 310 | CONFIG_RAM_DEFAULT(128 * 1024) |
| 308 | 311 | CONFIG_RAM((128 + 512) * 1024) |
| r3978 | r3979 | |
|---|---|---|
| 1673 | 1673 | |
| 1674 | 1674 | /**********************************************************************************************************/ |
| 1675 | 1675 | |
| 1676 | static const cartslot_interface nc_cartslot = | |
| 1677 | { | |
| 1678 | "crd,card", | |
| 1679 | 0, | |
| 1680 | DEVICE_START_NAME(nc_pcmcia_card), | |
| 1681 | DEVICE_IMAGE_LOAD_NAME(nc_pcmcia_card), | |
| 1682 | DEVICE_IMAGE_UNLOAD_NAME(nc_pcmcia_card), | |
| 1683 | NULL | |
| 1684 | }; | |
| 1676 | 1685 | |
| 1677 | 1686 | |
| 1678 | 1687 | static MACHINE_DRIVER_START( nc100 ) |
| r3978 | r3979 | |
| 1713 | 1722 | |
| 1714 | 1723 | /* rtc */ |
| 1715 | 1724 | MDRV_TC8521_ADD("rtc", nc100_tc8521_interface) |
| 1725 | ||
| 1726 | MDRV_CARTSLOT_ADD("cart", nc_cartslot) | |
| 1716 | 1727 | MACHINE_DRIVER_END |
| 1717 | 1728 | |
| 1718 | 1729 | |
| r3978 | r3979 | |
| 1752 | 1763 | ROM_START(nc100) |
| 1753 | 1764 | ROM_REGION(((64*1024)+(256*1024)), "main",0) |
| 1754 | 1765 | ROM_SYSTEM_BIOS(0, "106", "ROM v1.06") |
| 1755 | | |
| 1766 | | |
| 1756 | 1767 | ROM_SYSTEM_BIOS(1, "100", "ROM v1.00") |
| 1757 | 1768 | ROMX_LOAD("nc100.rom", 0x010000, 0x040000, CRC(a699eca3) SHA1(ce217d5a298b959ccc3d7bc5c93b1dba043f1339), ROM_BIOS(2)) |
| 1758 | 1769 | ROM_END |
| r3978 | r3979 | |
| 1762 | 1773 | ROM_LOAD("nc200.rom", 0x010000, 0x080000, CRC(bb8180e7) SHA1(fb5c93b0a3e199202c6a12548d2617f7a09bae47)) |
| 1763 | 1774 | ROM_END |
| 1764 | 1775 | |
| 1765 | static void nc_common_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) | |
| 1766 | { | |
| 1767 | /* cartslot */ | |
| 1768 | switch(state) | |
| 1769 | { | |
| 1770 | /* --- the following bits of info are returned as 64-bit signed integers --- */ | |
| 1771 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 1772 | ||
| 1773 | /* --- the following bits of info are returned as pointers to data or functions --- */ | |
| 1774 | case MESS_DEVINFO_PTR_START: info->start = DEVICE_START_NAME(nc_pcmcia_card); break; | |
| 1775 | case MESS_DEVINFO_PTR_LOAD: info->load = DEVICE_IMAGE_LOAD_NAME(nc_pcmcia_card); break; | |
| 1776 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = DEVICE_IMAGE_UNLOAD_NAME(nc_pcmcia_card); break; | |
| 1777 | ||
| 1778 | /* --- the following bits of info are returned as NULL-terminated strings --- */ | |
| 1779 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "crd,card"); break; | |
| 1780 | ||
| 1781 | default: cartslot_device_getinfo(devclass, state, info); break; | |
| 1782 | } | |
| 1783 | } | |
| 1784 | ||
| 1785 | 1776 | static void nc_common_serial_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 1786 | 1777 | { |
| 1787 | 1778 | /* serial */ |
| r3978 | r3979 | |
| 1805 | 1796 | } |
| 1806 | 1797 | |
| 1807 | 1798 | static SYSTEM_CONFIG_START(nc_common) |
| 1808 | CONFIG_DEVICE(nc_common_cartslot_getinfo) | |
| 1809 | 1799 | CONFIG_DEVICE(nc_common_serial_getinfo) |
| 1810 | 1800 | SYSTEM_CONFIG_END |
| 1811 | 1801 |
| r3978 | r3979 | |
|---|---|---|
| 684 | 684 | }; |
| 685 | 685 | |
| 686 | 686 | |
| 687 | static const cartslot_interface a400_cartslot = | |
| 688 | { | |
| 689 | "rom,bin", | |
| 690 | 0, | |
| 691 | NULL, | |
| 692 | DEVICE_IMAGE_LOAD_NAME(a800_cart), | |
| 693 | DEVICE_IMAGE_UNLOAD_NAME(a800_cart), | |
| 694 | NULL | |
| 695 | }; | |
| 687 | 696 | |
| 697 | static const cartslot_interface a800_cartslot = | |
| 698 | { | |
| 699 | "rom,bin", | |
| 700 | 0, | |
| 701 | NULL, | |
| 702 | DEVICE_IMAGE_LOAD_NAME(a800_cart), | |
| 703 | DEVICE_IMAGE_UNLOAD_NAME(a800_cart), | |
| 704 | NULL | |
| 705 | }; | |
| 706 | ||
| 707 | static const cartslot_interface a5200_cartslot = | |
| 708 | { | |
| 709 | "rom,bin", | |
| 710 | 0, | |
| 711 | NULL, | |
| 712 | DEVICE_IMAGE_LOAD_NAME(a5200_cart), | |
| 713 | DEVICE_IMAGE_UNLOAD_NAME(a5200_cart), | |
| 714 | NULL | |
| 715 | }; | |
| 716 | ||
| 688 | 717 | static MACHINE_DRIVER_START( atari_common_nodac ) |
| 689 | 718 | /* basic machine hardware */ |
| 690 | 719 | MDRV_CPU_ADD("main", M6510, FREQ_17_EXACT) |
| r3978 | r3979 | |
| 727 | 756 | MDRV_SCREEN_MODIFY("main") |
| 728 | 757 | MDRV_SCREEN_REFRESH_RATE(FRAME_RATE_60HZ) |
| 729 | 758 | MDRV_SCREEN_SIZE(HWIDTH*8, TOTAL_LINES_60HZ) |
| 759 | ||
| 760 | MDRV_CARTSLOT_ADD("cart1", a400_cartslot) | |
| 730 | 761 | MACHINE_DRIVER_END |
| 731 | 762 | |
| 732 | 763 | |
| r3978 | r3979 | |
| 742 | 773 | MDRV_SCREEN_MODIFY("main") |
| 743 | 774 | MDRV_SCREEN_REFRESH_RATE(FRAME_RATE_50HZ) |
| 744 | 775 | MDRV_SCREEN_SIZE(HWIDTH*8, TOTAL_LINES_50HZ) |
| 776 | ||
| 777 | MDRV_CARTSLOT_ADD("cart1", a400_cartslot) | |
| 745 | 778 | MACHINE_DRIVER_END |
| 746 | 779 | |
| 747 | 780 | |
| r3978 | r3979 | |
| 757 | 790 | MDRV_SCREEN_MODIFY("main") |
| 758 | 791 | MDRV_SCREEN_REFRESH_RATE(FRAME_RATE_60HZ) |
| 759 | 792 | MDRV_SCREEN_SIZE(HWIDTH*8, TOTAL_LINES_60HZ) |
| 793 | ||
| 794 | MDRV_CARTSLOT_ADD("cart1", a800_cartslot) | |
| 795 | MDRV_CARTSLOT_ADD("cart2", a800_cartslot) | |
| 760 | 796 | MACHINE_DRIVER_END |
| 761 | 797 | |
| 762 | 798 | |
| r3978 | r3979 | |
| 772 | 808 | MDRV_SCREEN_MODIFY("main") |
| 773 | 809 | MDRV_SCREEN_REFRESH_RATE(FRAME_RATE_50HZ) |
| 774 | 810 | MDRV_SCREEN_SIZE(HWIDTH*8, TOTAL_LINES_50HZ) |
| 811 | ||
| 812 | MDRV_CARTSLOT_ADD("cart1", a800_cartslot) | |
| 813 | MDRV_CARTSLOT_ADD("cart2", a800_cartslot) | |
| 775 | 814 | MACHINE_DRIVER_END |
| 776 | 815 | |
| 777 | 816 | |
| r3978 | r3979 | |
| 787 | 826 | MDRV_SCREEN_MODIFY("main") |
| 788 | 827 | MDRV_SCREEN_REFRESH_RATE(FRAME_RATE_60HZ) |
| 789 | 828 | MDRV_SCREEN_SIZE(HWIDTH*8, TOTAL_LINES_60HZ) |
| 829 | ||
| 830 | MDRV_CARTSLOT_ADD("cart1", a800_cartslot) | |
| 831 | MDRV_CARTSLOT_ADD("cart2", a800_cartslot) | |
| 790 | 832 | MACHINE_DRIVER_END |
| 791 | 833 | |
| 792 | 834 | |
| r3978 | r3979 | |
| 802 | 844 | MDRV_SCREEN_MODIFY( "main" ) |
| 803 | 845 | MDRV_SCREEN_REFRESH_RATE(FRAME_RATE_60HZ) |
| 804 | 846 | MDRV_SCREEN_SIZE(HWIDTH*8, TOTAL_LINES_60HZ) |
| 847 | ||
| 848 | MDRV_CARTSLOT_ADD("cart", a5200_cartslot) | |
| 805 | 849 | MACHINE_DRIVER_END |
| 806 | 850 | |
| 807 | 851 | |
| r3978 | r3979 | |
| 869 | 913 | CONFIG_DEVICE(atari_floppy_getinfo) |
| 870 | 914 | SYSTEM_CONFIG_END |
| 871 | 915 | |
| 872 | static void a400_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) | |
| 873 | { | |
| 874 | /* cartslot */ | |
| 875 | switch(state) | |
| 876 | { | |
| 877 | /* --- the following bits of info are returned as 64-bit signed integers --- */ | |
| 878 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 879 | ||
| 880 | /* --- the following bits of info are returned as pointers to data or functions --- */ | |
| 881 | case MESS_DEVINFO_PTR_LOAD: info->load = DEVICE_IMAGE_LOAD_NAME(a800_cart); break; | |
| 882 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = DEVICE_IMAGE_UNLOAD_NAME(a800_cart); break; | |
| 883 | ||
| 884 | /* --- the following bits of info are returned as NULL-terminated strings --- */ | |
| 885 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "rom,bin"); break; | |
| 886 | ||
| 887 | default: cartslot_device_getinfo(devclass, state, info); break; | |
| 888 | } | |
| 889 | } | |
| 890 | ||
| 891 | 916 | static SYSTEM_CONFIG_START(a400) |
| 892 | 917 | CONFIG_IMPORT_FROM(atari) |
| 893 | 918 | CONFIG_RAM_DEFAULT(40 * 1024) |
| 894 | CONFIG_DEVICE(a400_cartslot_getinfo) | |
| 895 | 919 | SYSTEM_CONFIG_END |
| 896 | 920 | |
| 897 | static void a800_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) | |
| 898 | { | |
| 899 | /* cartslot */ | |
| 900 | switch(state) | |
| 901 | { | |
| 902 | /* --- the following bits of info are returned as 64-bit signed integers --- */ | |
| 903 | case MESS_DEVINFO_INT_COUNT: info->i = 2; break; | |
| 904 | 921 | |
| 905 | /* --- the following bits of info are returned as pointers to data or functions --- */ | |
| 906 | case MESS_DEVINFO_PTR_LOAD: info->load = DEVICE_IMAGE_LOAD_NAME(a800_cart); break; | |
| 907 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = DEVICE_IMAGE_UNLOAD_NAME(a800_cart); break; | |
| 908 | ||
| 909 | /* --- the following bits of info are returned as NULL-terminated strings --- */ | |
| 910 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "rom,bin"); break; | |
| 911 | ||
| 912 | default: cartslot_device_getinfo(devclass, state, info); break; | |
| 913 | } | |
| 914 | } | |
| 915 | ||
| 916 | 922 | static SYSTEM_CONFIG_START(a800) |
| 917 | 923 | CONFIG_IMPORT_FROM(atari) |
| 918 | 924 | CONFIG_RAM_DEFAULT(40 * 1024) |
| 919 | CONFIG_DEVICE(a800_cartslot_getinfo) | |
| 920 | 925 | SYSTEM_CONFIG_END |
| 921 | 926 | |
| 922 | static void a5200_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) | |
| 923 | { | |
| 924 | /* cartslot */ | |
| 925 | switch(state) | |
| 926 | { | |
| 927 | /* --- the following bits of info are returned as 64-bit signed integers --- */ | |
| 928 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 929 | 927 | |
| 930 | /* --- the following bits of info are returned as pointers to data or functions --- */ | |
| 931 | case MESS_DEVINFO_PTR_LOAD: info->load = DEVICE_IMAGE_LOAD_NAME(a5200_cart); break; | |
| 932 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = DEVICE_IMAGE_UNLOAD_NAME(a5200_cart); break; | |
| 933 | ||
| 934 | /* --- the following bits of info are returned as NULL-terminated strings --- */ | |
| 935 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "rom,bin,a52"); break; | |
| 936 | ||
| 937 | default: cartslot_device_getinfo(devclass, state, info); break; | |
| 938 | } | |
| 939 | } | |
| 940 | ||
| 941 | 928 | static SYSTEM_CONFIG_START(a5200) |
| 942 | 929 | CONFIG_RAM_DEFAULT(16 * 1024) |
| 943 | CONFIG_DEVICE(a5200_cartslot_getinfo) | |
| 944 | 930 | SYSTEM_CONFIG_END |
| 945 | 931 | |
| 946 | 932 | /*************************************************************************** |
| r3978 | r3979 | |
|---|---|---|
| 620 | 620 | timer_pulse(machine, ATTOTIME_IN_MSEC(20), NULL, 0, adam_paddle_callback); |
| 621 | 621 | } |
| 622 | 622 | |
| 623 | static const cartslot_interface adam_cartslot = | |
| 624 | { | |
| 625 | "rom,col,bin", | |
| 626 | 0, | |
| 627 | NULL, | |
| 628 | NULL, | |
| 629 | NULL, | |
| 630 | NULL | |
| 631 | //case MESS_DEVINFO_PTR_VERIFY: info->imgverify = adam_cart_verify; break; | |
| 632 | }; | |
| 633 | ||
| 623 | 634 | static MACHINE_DRIVER_START( adam ) |
| 624 | 635 | /* Machine hardware */ |
| 625 | 636 | MDRV_CPU_ADD("main", Z80, 3579545) /* 3.579545 MHz */ |
| r3978 | r3979 | |
| 644 | 655 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 645 | 656 | MDRV_SOUND_ADD("sn76489a", SN76489A, 3579545) /* 3.579545 MHz */ |
| 646 | 657 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) |
| 658 | ||
| 659 | MDRV_CARTSLOT_ADD("cart", adam_cartslot) | |
| 647 | 660 | MACHINE_DRIVER_END |
| 648 | 661 | |
| 649 | 662 | |
| r3978 | r3979 | |
| 680 | 693 | ROM_LOAD ("os7.rom", 0x30000, 0x2000, CRC(3aa93ef3) SHA1(45bedc4cbdeac66c7df59e9e599195c778d86a92)) |
| 681 | 694 | ROM_LOAD ("eos.rom", 0x38000, 0x2000, CRC(05a37a34) SHA1(ad3c20ef444f10af7ae8eb75c81e500d9b1bba3d)) |
| 682 | 695 | |
| 683 | ROM_CART_LOAD( | |
| 696 | ROM_CART_LOAD( | |
| 684 | 697 | |
| 685 | 698 | //ROM_REGION( 0x10000, "cpu1", 0) |
| 686 | 699 | //ROM_LOAD ("master68.rom", 0x0100, 0x0E4, CRC(619a47b8)) /* Replacement 6801 Master ROM */ |
| 687 | 700 | ROM_END |
| 688 | 701 | |
| 689 | static void adam_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) | |
| 690 | { | |
| 691 | /* cartslot */ | |
| 692 | switch(state) | |
| 693 | { | |
| 694 | /* --- the following bits of info are returned as pointers to data or functions --- */ | |
| 695 | case MESS_DEVINFO_PTR_VERIFY: info->imgverify = adam_cart_verify; break; | |
| 696 | ||
| 697 | default: cartslot_device_getinfo(devclass, state, info); break; | |
| 698 | } | |
| 699 | } | |
| 700 | ||
| 701 | 702 | static void adam_floppy_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 702 | 703 | { |
| 703 | 704 | /* floppy */ |
| r3978 | r3979 | |
| 714 | 715 | } |
| 715 | 716 | |
| 716 | 717 | static SYSTEM_CONFIG_START(adam) |
| 717 | CONFIG_DEVICE(adam_cartslot_getinfo) | |
| 718 | 718 | CONFIG_DEVICE(adam_floppy_getinfo) |
| 719 | 719 | SYSTEM_CONFIG_END |
| 720 | 720 |
| r3978 | r3979 | |
|---|---|---|
| 387 | 387 | |
| 388 | 388 | /* cia */ |
| 389 | 389 | MDRV_CIA6526_ADD("cia", CIA6526R1, 0, cbmb_cia) |
| 390 | ||
| 391 | MDRV_CARTSLOT_ADD("cart1", cbmb_cartslot) | |
| 392 | MDRV_CARTSLOT_ADD("cart2", cbmb_cartslot) | |
| 390 | 393 | MACHINE_DRIVER_END |
| 391 | 394 | |
| 392 | 395 | |
| r3978 | r3979 | |
| 449 | 452 | |
| 450 | 453 | /* cia */ |
| 451 | 454 | MDRV_CIA6526_ADD("cia", CIA6526R1, 0, cbmb_cia) |
| 455 | ||
| 456 | MDRV_CARTSLOT_ADD("cart1", cbmb_cartslot) | |
| 457 | MDRV_CARTSLOT_ADD("cart2", cbmb_cartslot) | |
| 452 | 458 | MACHINE_DRIVER_END |
| 453 | 459 | |
| 454 | 460 | |
| r3978 | r3979 | |
| 592 | 598 | ROM_LOAD( "901225-01.bin", 0x100000, 0x1000, CRC(ec4272ee) SHA1(adc7c31e18c7c7413d54802ef2f4193da14711aa) ) |
| 593 | 599 | ROM_END |
| 594 | 600 | |
| 595 | ||
| 596 | ||
| 597 | /************************************* | |
| 598 | * | |
| 599 | * System configuration(s) | |
| 600 | * | |
| 601 | *************************************/ | |
| 602 | ||
| 603 | ||
| 604 | static SYSTEM_CONFIG_START(cbmb) | |
| 605 | CONFIG_DEVICE(cbmb_cartslot_getinfo) | |
| 606 | SYSTEM_CONFIG_END | |
| 607 | ||
| 608 | static SYSTEM_CONFIG_START(p500) | |
| 609 | CONFIG_DEVICE(cbmb_cartslot_getinfo) | |
| 610 | SYSTEM_CONFIG_END | |
| 611 | ||
| 612 | ||
| 613 | 601 | /*************************************************************************** |
| 614 | 602 | |
| 615 | 603 | Game driver(s) |
| r3978 | r3979 | |
| 618 | 606 | |
| 619 | 607 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME */ |
| 620 | 608 | |
| 621 | COMP( 1983, b500, cbm610, 0, cbm600, cbm600, cbm600, cbmb, "Commodore Business Machines Co.", "B500 (proto, 60Hz)", GAME_NOT_WORKING) | |
| 622 | COMP( 1983, b128, cbm610, 0, cbm600pal, cbm600pal, cbm600pal, cbmb, "Commodore Business Machines Co.", "B128 (60Hz)", GAME_NOT_WORKING) | |
| 623 | COMP( 1983, b256, cbm610, 0, cbm600pal, cbm600pal, cbm600hu, cbmb, "Commodore Business Machines Co.", "B256 (60Hz)", GAME_NOT_WORKING) | |
| 624 | COMP( 1983, cbm610, 0, 0, cbm600, cbm600, cbm600, cbmb, "Commodore Business Machines Co.", "CBM 610 (50Hz)", GAME_NOT_WORKING) | |
| 625 | COMP( 1983, cbm620, cbm610, 0, cbm600pal, cbm600pal, cbm600pal, cbmb, "Commodore Business Machines Co.", "CBM 620 (50Hz)", GAME_NOT_WORKING) | |
| 626 | COMP( 1983, cbm620hu, cbm610, 0, cbm600pal, cbm600pal, cbm600hu, cbmb, "Commodore Business Machines Co.", "CBM 620 (Hungary, 50Hz)", GAME_NOT_WORKING) | |
| 609 | COMP( 1983, b500, cbm610, 0, cbm600, cbm600, cbm600, 0, "Commodore Business Machines Co.", "B500 (proto, 60Hz)", GAME_NOT_WORKING) | |
| 610 | COMP( 1983, b128, cbm610, 0, cbm600pal, cbm600pal, cbm600pal, 0, "Commodore Business Machines Co.", "B128 (60Hz)", GAME_NOT_WORKING) | |
| 611 | COMP( 1983, b256, cbm610, 0, cbm600pal, cbm600pal, cbm600hu, 0, "Commodore Business Machines Co.", "B256 (60Hz)", GAME_NOT_WORKING) | |
| 612 | COMP( 1983, cbm610, 0, 0, cbm600, cbm600, cbm600, 0, "Commodore Business Machines Co.", "CBM 610 (50Hz)", GAME_NOT_WORKING) | |
| 613 | COMP( 1983, cbm620, cbm610, 0, cbm600pal, cbm600pal, cbm600pal, 0, "Commodore Business Machines Co.", "CBM 620 (50Hz)", GAME_NOT_WORKING) | |
| 614 | COMP( 1983, cbm620hu, cbm610, 0, cbm600pal, cbm600pal, cbm600hu, 0, "Commodore Business Machines Co.", "CBM 620 (Hungary, 50Hz)", GAME_NOT_WORKING) | |
| 627 | 615 | |
| 628 | COMP( 1983, b128hp, cbm610, 0, cbm700, cbm700, cbm700, cbmb, "Commodore Business Machines Co.", "B128-80HP (60Hz)", GAME_NOT_WORKING) | |
| 629 | COMP( 1983, b256hp, cbm610, 0, cbm700, cbm700, cbm700, cbmb, "Commodore Business Machines Co.", "B256-80HP (60Hz)", GAME_NOT_WORKING) | |
| 630 | COMP( 1983, cbm710, cbm610, 0, cbm700pal, cbm700, cbm700, cbmb, "Commodore Business Machines Co.", "CBM 710 (50Hz)", GAME_NOT_WORKING) | |
| 631 | COMP( 1983, cbm720, cbm610, 0, cbm700pal, cbm700, cbm700, cbmb, "Commodore Business Machines Co.", "CBM 720 (50Hz)", GAME_NOT_WORKING) | |
| 632 | COMP( 1983, cbm720se, cbm610, 0, cbm700pal, cbm700, cbm700, cbmb, "Commodore Business Machines Co.", "CBM 720 (Sweden/Finland, 50Hz)", GAME_NOT_WORKING) | |
| 616 | COMP( 1983, b128hp, cbm610, 0, cbm700, cbm700, cbm700, 0, "Commodore Business Machines Co.", "B128-80HP (60Hz)", GAME_NOT_WORKING) | |
| 617 | COMP( 1983, b256hp, cbm610, 0, cbm700, cbm700, cbm700, 0, "Commodore Business Machines Co.", "B256-80HP (60Hz)", GAME_NOT_WORKING) | |
| 618 | COMP( 1983, cbm710, cbm610, 0, cbm700pal, cbm700, cbm700, 0, "Commodore Business Machines Co.", "CBM 710 (50Hz)", GAME_NOT_WORKING) | |
| 619 | COMP( 1983, cbm720, cbm610, 0, cbm700pal, cbm700, cbm700, 0, "Commodore Business Machines Co.", "CBM 720 (50Hz)", GAME_NOT_WORKING) | |
| 620 | COMP( 1983, cbm720se, cbm610, 0, cbm700pal, cbm700, cbm700, 0, "Commodore Business Machines Co.", "CBM 720 (Sweden/Finland, 50Hz)", GAME_NOT_WORKING) | |
| 633 | 621 | |
| 634 | COMP( 1983, bx256hp, cbm610, 0, bx256hp, cbm700, cbm700, | |
| 622 | COMP( 1983, bx256hp, cbm610, 0, bx256hp, cbm700, cbm700, 0 | |
| 635 | 623 | |
| 636 | COMP( 1983, p500, 0, 0, p500, p500, p500, | |
| 624 | COMP( 1983, p500, 0, 0, p500, p500, p500, |
| r3978 | r3979 | |
|---|---|---|
| 647 | 647 | MDRV_PRINTER_ADD("printer") |
| 648 | 648 | |
| 649 | 649 | MDRV_CASSETTE_ADD( "cassette", sordm5_cassette_config ) |
| 650 | ||
| 650 | ||
| 651 | MDRV_CARTSLOT_ADD("cart", default_cartslot ) | |
| 651 | 652 | MACHINE_DRIVER_END |
| 652 | 653 | |
| 653 | 654 | |
| r3978 | r3979 | |
| 678 | 679 | ROM_REGION(0x010000, "main", 0) |
| 679 | 680 | ROM_LOAD("sordint.rom",0x0000, 0x02000, CRC(78848d39) SHA1(ac042c4ae8272ad6abe09ae83492ef9a0026d0b2)) |
| 680 | 681 | ROM_REGION(0x5000, "user1", 0) |
| 681 | ROM_CART_LOAD( | |
| 682 | ROM_CART_LOAD( | |
| 682 | 683 | ROM_END |
| 683 | 684 | |
| 684 | 685 | |
| r3978 | r3979 | |
| 688 | 689 | ROM_REGION(0x10000, "floppy", 0) |
| 689 | 690 | ROM_LOAD("sordfd5.rom",0x0000, 0x04000, NO_DUMP) |
| 690 | 691 | ROM_REGION(0x5000, "user1", 0) |
| 691 | ROM_CART_LOAD( | |
| 692 | ROM_CART_LOAD( | |
| 692 | 693 | ROM_END |
| 693 | 694 | |
| 694 | 695 | static FLOPPY_OPTIONS_START( sordm5 ) |
| r3978 | r3979 | |
| 703 | 704 | |
| 704 | 705 | static SYSTEM_CONFIG_START(sordm5) |
| 705 | 706 | CONFIG_RAM_DEFAULT(64 * 1024) |
| 706 | CONFIG_DEVICE(cartslot_device_getinfo) | |
| 707 | 707 | SYSTEM_CONFIG_END |
| 708 | 708 | |
| 709 | 709 | static void srdm5fd5_floppy_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| r3978 | r3979 | |
|---|---|---|
| 376 | 376 | mbee_vsync = 1; |
| 377 | 377 | } |
| 378 | 378 | |
| 379 | const cartslot_interface mbee_cartslot = | |
| 380 | { | |
| 381 | "rom", | |
| 382 | 0, | |
| 383 | NULL, | |
| 384 | DEVICE_IMAGE_LOAD_NAME(mbee_cart), | |
| 385 | NULL, | |
| 386 | NULL | |
| 387 | }; | |
| 388 | ||
| 379 | 389 | static MACHINE_DRIVER_START( mbee ) |
| 380 | 390 | /* basic machine hardware */ |
| 381 | 391 | MDRV_CPU_ADD("main", Z80, XTAL_12MHz / 6) /* 2 MHz */ |
| r3978 | r3979 | |
| 413 | 423 | MDRV_Z80BIN_QUICKLOAD_ADD(mbee, 2) |
| 414 | 424 | |
| 415 | 425 | MDRV_CASSETTE_ADD( "cassette", default_cassette_config ) |
| 426 | ||
| 427 | MDRV_CARTSLOT_ADD("cart", mbee_cartslot ) | |
| 416 | 428 | MACHINE_DRIVER_END |
| 417 | 429 | |
| 418 | 430 | |
| r3978 | r3979 | |
| 455 | 467 | MDRV_CASSETTE_ADD( "cassette", default_cassette_config ) |
| 456 | 468 | |
| 457 | 469 | MDRV_WD179X_ADD("wd179x", mbee_wd17xx_interface ) |
| 470 | ||
| 471 | MDRV_CARTSLOT_ADD("cart", mbee_cartslot ) | |
| 458 | 472 | MACHINE_DRIVER_END |
| 459 | 473 | |
| 460 | 474 | |
| r3978 | r3979 | |
| 628 | 642 | return INIT_PASS; |
| 629 | 643 | } |
| 630 | 644 | |
| 631 | ||
| 632 | static void mbee_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) | |
| 633 | { | |
| 634 | /* cartslot */ | |
| 635 | switch(state) | |
| 636 | { | |
| 637 | /* --- the following bits of info are returned as 64-bit signed integers --- */ | |
| 638 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 639 | ||
| 640 | /* --- the following bits of info are returned as pointers to data or functions --- */ | |
| 641 | case MESS_DEVINFO_PTR_LOAD: info->load = DEVICE_IMAGE_LOAD_NAME(mbee_cart); break; | |
| 642 | ||
| 643 | /* --- the following bits of info are returned as NULL-terminated strings --- */ | |
| 644 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "rom"); break; | |
| 645 | ||
| 646 | default: cartslot_device_getinfo(devclass, state, info); break; | |
| 647 | } | |
| 648 | } | |
| 649 | ||
| 650 | 645 | static void mbee_floppy_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 651 | 646 | { |
| 652 | 647 | /* floppy */ |
| r3978 | r3979 | |
| 666 | 661 | } |
| 667 | 662 | |
| 668 | 663 | |
| 669 | static SYSTEM_CONFIG_START(mbee) | |
| 670 | CONFIG_DEVICE(mbee_cartslot_getinfo) | |
| 671 | SYSTEM_CONFIG_END | |
| 672 | 664 | |
| 673 | 665 | static SYSTEM_CONFIG_START(mbeeic) |
| 674 | CONFIG_DEVICE(mbee_cartslot_getinfo) | |
| 675 | 666 | CONFIG_DEVICE(mbee_floppy_getinfo) |
| 676 | 667 | SYSTEM_CONFIG_END |
| 677 | 668 | |
| 678 | 669 | |
| 679 | 670 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME */ |
| 680 | COMP( 1982, mbee, 0, 0, mbee, mbee, mbee, | |
| 671 | COMP( 1982, mbee, 0, 0, mbee, mbee, mbee, 0 | |
| 681 | 672 | COMP( 1982, mbeeic, mbee, 0, mbeeic, mbee, mbee, mbeeic, "Applied Technology", "Microbee 32 IC" , 0) |
| 682 | 673 | COMP( 1982, mbeepc, mbee, 0, mbeeic, mbee, mbee, mbeeic, "Applied Technology", "Microbee 32 PC" , 0) |
| 683 | 674 | COMP( 1985?,mbeepc85, mbee, 0, mbeeic, mbee, mbee, mbeeic, "Applied Technology", "Microbee 32 PC85" , 0) |
| r3978 | r3979 | |
|---|---|---|
| 60 | 60 | NULL /* optional: level lookup table */ |
| 61 | 61 | }; |
| 62 | 62 | |
| 63 | static const cartslot_interface pokemini_cartslot = | |
| 64 | { | |
| 65 | "min,bin", | |
| 66 | 0, | |
| 67 | DEVICE_START_NAME(pokemini_cart), | |
| 68 | DEVICE_IMAGE_LOAD_NAME(pokemini_cart), | |
| 69 | NULL, | |
| 70 | NULL | |
| 71 | }; | |
| 63 | 72 | |
| 64 | 73 | static MACHINE_DRIVER_START( pokemini ) |
| 65 | 74 | /* basic machine hardware */ |
| r3978 | r3979 | |
| 91 | 100 | MDRV_SOUND_ADD("speaker", SPEAKER, 0) |
| 92 | 101 | MDRV_SOUND_CONFIG(pokemini_speaker_interface) |
| 93 | 102 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) |
| 103 | ||
| 104 | MDRV_CARTSLOT_ADD("cart", pokemini_cartslot ) | |
| 94 | 105 | MACHINE_DRIVER_END |
| 95 | 106 | |
| 96 | 107 | |
| r3978 | r3979 | |
| 99 | 110 | i2cmem_init( machine, 0, I2CMEM_SLAVE_ADDRESS, 0, 0x2000, NULL); |
| 100 | 111 | } |
| 101 | 112 | |
| 102 | ||
| 103 | static void pokemini_cartslot_getinfo( const mess_device_class *devclass, UINT32 state, union devinfo *info ) | |
| 104 | { | |
| 105 | switch( state ) | |
| 106 | { | |
| 107 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 108 | case MESS_DEVINFO_INT_MUST_BE_LOADED: info->i = 0; break; | |
| 109 | case MESS_DEVINFO_PTR_START: info->start = DEVICE_START_NAME(pokemini_cart); break; | |
| 110 | case MESS_DEVINFO_PTR_LOAD: info->load = DEVICE_IMAGE_LOAD_NAME(pokemini_cart); break; | |
| 111 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy( info->s = device_temp_str(), "min,bin"); break; | |
| 112 | default: cartslot_device_getinfo( devclass, state, info ); break; | |
| 113 | } | |
| 114 | } | |
| 115 | ||
| 116 | ||
| 117 | static SYSTEM_CONFIG_START( pokemini ) | |
| 118 | CONFIG_DEVICE( pokemini_cartslot_getinfo ) | |
| 119 | SYSTEM_CONFIG_END | |
| 120 | ||
| 121 | ||
| 122 | 113 | ROM_START( pokemini ) |
| 123 | 114 | ROM_REGION( 0x200000, "main", 0 ) |
| 124 | 115 | ROM_LOAD( "bios.min", 0x0000, 0x1000, CRC(aed3c14d) SHA1(daad4113713ed776fbd47727762bca81ba74915f) ) |
| 125 | 116 | ROM_END |
| 126 | 117 | |
| 127 | 118 | |
| 128 | CONS( 1999, pokemini, 0, 0, pokemini, pokemini, pokemini, | |
| 119 | CONS( 1999, pokemini, 0, 0, pokemini, pokemini, pokemini, 0 | |
| 129 | 120 |
| r3978 | r3979 | |
|---|---|---|
| 132 | 132 | ROM_LOAD("128p-1.rom", 0x014000, 0x4000, CRC(b96a36be) SHA1(80080644289ed93d71a1103992a154cc9802b2fa) ) |
| 133 | 133 | ROM_LOAD("gluck.rom", 0x018000, 0x4000, CRC(ca321d79) SHA1(015eb96dafb273d4f4512c467e9b43c305fd1bc4) ) |
| 134 | 134 | ROM_LOAD("trdos.rom", 0x01c000, 0x4000, CRC(10751aba) SHA1(21695e3f2a8f796386ce66eea8a246b0ac44810c) ) |
| 135 | ROM_CART_LOAD( | |
| 135 | ROM_CART_LOAD( | |
| 136 | 136 | ROM_END |
| 137 | 137 | |
| 138 | 138 | SYSTEM_CONFIG_EXTERN(spectrum) |
| 139 | 139 | |
| 140 | 140 | static SYSTEM_CONFIG_START(pentagon) |
| 141 | CONFIG_IMPORT_FROM(spectrum) | |
| 142 | 141 | CONFIG_RAM_DEFAULT(128 * 1024) |
| 143 | 142 | CONFIG_DEVICE(beta_floppy_getinfo) |
| 144 | 143 | SYSTEM_CONFIG_END |
| r3978 | r3979 | |
|---|---|---|
| 639 | 639 | CASSETTE_PLAY | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_MUTED |
| 640 | 640 | }; |
| 641 | 641 | |
| 642 | static const cartslot_interface coco_cartslot = | |
| 643 | { | |
| 644 | "ccc,rom", | |
| 645 | 0, | |
| 646 | NULL, | |
| 647 | DEVICE_IMAGE_LOAD_NAME(coco_rom), | |
| 648 | DEVICE_IMAGE_UNLOAD_NAME(coco_rom), | |
| 649 | NULL | |
| 650 | }; | |
| 651 | ||
| 652 | static const cartslot_interface coco3_cartslot = | |
| 653 | { | |
| 654 | "ccc,rom", | |
| 655 | 0, | |
| 656 | NULL, | |
| 657 | DEVICE_IMAGE_LOAD_NAME(coco3_rom), | |
| 658 | DEVICE_IMAGE_UNLOAD_NAME(coco3_rom), | |
| 659 | NULL | |
| 660 | }; | |
| 661 | ||
| 642 | 662 | static MACHINE_DRIVER_START( dragon32 ) |
| 643 | 663 | /* basic machine hardware */ |
| 644 | 664 | MDRV_CPU_ADD("main", M6809E, COCO_CPU_SPEED_HZ * 4) /* 0,894886 MHz */ |
| r3978 | r3979 | |
| 669 | 689 | MDRV_WD179X_ADD("wd179x", dragon_wd17xx_interface ) |
| 670 | 690 | |
| 671 | 691 | MDRV_SAM6883_ADD("sam", coco_sam_intf) |
| 692 | ||
| 693 | MDRV_CARTSLOT_ADD("cart", coco_cartslot) | |
| 672 | 694 | MACHINE_DRIVER_END |
| 673 | 695 | |
| 674 | 696 | static MACHINE_DRIVER_START( dragon64 ) |
| r3978 | r3979 | |
| 705 | 727 | MDRV_WD179X_ADD("wd179x", dragon_wd17xx_interface ) |
| 706 | 728 | |
| 707 | 729 | MDRV_SAM6883_ADD("sam", coco_sam_intf) |
| 730 | ||
| 731 | MDRV_CARTSLOT_ADD("cart", coco_cartslot) | |
| 708 | 732 | MACHINE_DRIVER_END |
| 709 | 733 | |
| 710 | 734 | static MACHINE_DRIVER_START( d64plus ) |
| r3978 | r3979 | |
| 741 | 765 | MDRV_WD179X_ADD("wd179x", dragon_wd17xx_interface ) |
| 742 | 766 | |
| 743 | 767 | MDRV_SAM6883_ADD("sam", coco_sam_intf) |
| 768 | ||
| 769 | MDRV_CARTSLOT_ADD("cart", coco_cartslot) | |
| 744 | 770 | MACHINE_DRIVER_END |
| 745 | 771 | |
| 746 | 772 | static MACHINE_DRIVER_START( dgnalpha ) |
| r3978 | r3979 | |
| 780 | 806 | MDRV_WD179X_ADD("wd179x", dgnalpha_wd17xx_interface ) |
| 781 | 807 | |
| 782 | 808 | MDRV_SAM6883_ADD("sam", coco_sam_intf) |
| 809 | ||
| 810 | MDRV_CARTSLOT_ADD("cart", coco_cartslot) | |
| 783 | 811 | MACHINE_DRIVER_END |
| 784 | 812 | |
| 785 | 813 | static MACHINE_DRIVER_START( tanodr64 ) |
| r3978 | r3979 | |
| 816 | 844 | MDRV_WD1773_ADD("wd1773", coco_wd17xx_interface ) |
| 817 | 845 | |
| 818 | 846 | MDRV_SAM6883_ADD("sam", coco_sam_intf) |
| 847 | ||
| 848 | MDRV_CARTSLOT_ADD("cart", coco_cartslot) | |
| 819 | 849 | MACHINE_DRIVER_END |
| 820 | 850 | |
| 821 | 851 | static MACHINE_DRIVER_START( coco ) |
| r3978 | r3979 | |
| 853 | 883 | MDRV_WD1773_ADD("wd1773", coco_wd17xx_interface ) |
| 854 | 884 | |
| 855 | 885 | MDRV_SAM6883_ADD("sam", coco_sam_intf) |
| 886 | ||
| 887 | MDRV_CARTSLOT_ADD("cart", coco_cartslot) | |
| 856 | 888 | MACHINE_DRIVER_END |
| 857 | 889 | |
| 858 | 890 | static MACHINE_DRIVER_START( coco2 ) |
| r3978 | r3979 | |
| 890 | 922 | MDRV_WD1773_ADD("wd1773", coco_wd17xx_interface ) |
| 891 | 923 | |
| 892 | 924 | MDRV_SAM6883_ADD("sam", coco_sam_intf) |
| 925 | ||
| 926 | MDRV_CARTSLOT_ADD("cart", coco_cartslot) | |
| 893 | 927 | MACHINE_DRIVER_END |
| 894 | 928 | |
| 895 | 929 | static MACHINE_DRIVER_START( coco2b ) |
| r3978 | r3979 | |
| 927 | 961 | MDRV_WD1773_ADD("wd1773", coco_wd17xx_interface ) |
| 928 | 962 | |
| 929 | 963 | MDRV_SAM6883_ADD("sam", coco_sam_intf) |
| 964 | ||
| 965 | MDRV_CARTSLOT_ADD("cart", coco_cartslot) | |
| 930 | 966 | MACHINE_DRIVER_END |
| 931 | 967 | |
| 932 | 968 | static MACHINE_DRIVER_START( coco3 ) |
| r3978 | r3979 | |
| 974 | 1010 | MDRV_WD1773_ADD("wd1773", coco_wd17xx_interface ) |
| 975 | 1011 | |
| 976 | 1012 | MDRV_SAM6883_GIME_ADD("sam", coco3_sam_intf) |
| 1013 | ||
| 1014 | MDRV_CARTSLOT_ADD("cart", coco3_cartslot) | |
| 977 | 1015 | MACHINE_DRIVER_END |
| 978 | 1016 | |
| 979 | 1017 | static MACHINE_DRIVER_START( coco3p ) |
| r3978 | r3979 | |
| 1115 | 1153 | } |
| 1116 | 1154 | } |
| 1117 | 1155 | |
| 1118 | ||
| 1119 | ||
| 1120 | static void coco_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) | |
| 1121 | { | |
| 1122 | switch(state) | |
| 1123 | { | |
| 1124 | /* --- the following bits of info are returned as 64-bit signed integers --- */ | |
| 1125 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 1126 | ||
| 1127 | /* --- the following bits of info are returned as pointers to data or functions --- */ | |
| 1128 | case MESS_DEVINFO_PTR_LOAD: info->load = DEVICE_IMAGE_LOAD_NAME(coco_rom); break; | |
| 1129 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = DEVICE_IMAGE_UNLOAD_NAME(coco_rom); break; | |
| 1130 | ||
| 1131 | /* --- the following bits of info are returned as NULL-terminated strings --- */ | |
| 1132 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "ccc,rom"); break; | |
| 1133 | ||
| 1134 | default: cartslot_device_getinfo(devclass, state, info); break; | |
| 1135 | } | |
| 1136 | } | |
| 1137 | ||
| 1138 | ||
| 1139 | ||
| 1140 | static void coco3_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) | |
| 1141 | { | |
| 1142 | switch(state) | |
| 1143 | { | |
| 1144 | /* --- the following bits of info are returned as 64-bit signed integers --- */ | |
| 1145 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 1146 | ||
| 1147 | /* --- the following bits of info are returned as pointers to data or functions --- */ | |
| 1148 | case MESS_DEVINFO_PTR_LOAD: info->load = DEVICE_IMAGE_LOAD_NAME(coco3_rom); break; | |
| 1149 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = DEVICE_IMAGE_UNLOAD_NAME(coco3_rom); break; | |
| 1150 | ||
| 1151 | /* --- the following bits of info are returned as NULL-terminated strings --- */ | |
| 1152 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "ccc,rom"); break; | |
| 1153 | ||
| 1154 | default: cartslot_device_getinfo(devclass, state, info); break; | |
| 1155 | } | |
| 1156 | } | |
| 1157 | ||
| 1158 | ||
| 1159 | ||
| 1160 | 1156 | /************************************* |
| 1161 | 1157 | * |
| 1162 | 1158 | * CoCo sysconfig structures |
| r3978 | r3979 | |
| 1170 | 1166 | |
| 1171 | 1167 | static SYSTEM_CONFIG_START( generic_coco12 ) |
| 1172 | 1168 | CONFIG_IMPORT_FROM( generic_coco ) |
| 1173 | CONFIG_DEVICE( coco_cartslot_getinfo ) | |
| 1174 | 1169 | SYSTEM_CONFIG_END |
| 1175 | 1170 | |
| 1176 | 1171 | /* These have to be split up, as the CoCo has a bitbanger */ |
| 1177 | 1172 | /* where the Dragon has a paralell printer port */ |
| 1178 | 1173 | static SYSTEM_CONFIG_START( generic_dragon ) |
| 1179 | 1174 | CONFIG_DEVICE( coco_floppy_getinfo ) |
| 1180 | CONFIG_DEVICE( coco_cartslot_getinfo ) | |
| 1181 | 1175 | SYSTEM_CONFIG_END |
| 1182 | 1176 | |
| 1183 | 1177 | |
| r3978 | r3979 | |
| 1211 | 1205 | |
| 1212 | 1206 | static SYSTEM_CONFIG_START(coco3) |
| 1213 | 1207 | CONFIG_IMPORT_FROM ( generic_coco ) |
| 1214 | CONFIG_DEVICE( coco3_cartslot_getinfo ) | |
| 1215 | 1208 | CONFIG_RAM (128 * 1024) |
| 1216 | 1209 | CONFIG_RAM_DEFAULT (512 * 1024) |
| 1217 | 1210 | CONFIG_RAM (2048 * 1024) |
| r3978 | r3979 | |
|---|---|---|
| 213 | 213 | ROM_END |
| 214 | 214 | |
| 215 | 215 | |
| 216 | static const cartslot_interface nes_cartslot = | |
| 217 | { | |
| 218 | "nes", | |
| 219 | 1, | |
| 220 | NULL, | |
| 221 | DEVICE_IMAGE_LOAD_NAME(nes_cart), | |
| 222 | NULL, | |
| 223 | nes_partialhash | |
| 224 | }; | |
| 216 | 225 | |
| 226 | static const cartslot_interface famicom_cartslot = | |
| 227 | { | |
| 228 | "nes", | |
| 229 | 0, | |
| 230 | NULL, | |
| 231 | DEVICE_IMAGE_LOAD_NAME(nes_cart), | |
| 232 | NULL, | |
| 233 | nes_partialhash | |
| 234 | }; | |
| 235 | ||
| 217 | 236 | static MACHINE_DRIVER_START( nes ) |
| 218 | 237 | /* basic machine hardware */ |
| 219 | 238 | MDRV_CPU_ADD("main", N2A03, NTSC_CLOCK) |
| r3978 | r3979 | |
| 243 | 262 | MDRV_SOUND_ADD("nessound", NES, NTSC_CLOCK) |
| 244 | 263 | MDRV_SOUND_CONFIG(nes_apu_interface) |
| 245 | 264 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) |
| 265 | ||
| 266 | MDRV_CARTSLOT_ADD("cart", nes_cartslot ) | |
| 246 | 267 | MACHINE_DRIVER_END |
| 247 | 268 | |
| 248 | 269 | static MACHINE_DRIVER_START( nespal ) |
| r3978 | r3979 | |
| 263 | 284 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) |
| 264 | 285 | MACHINE_DRIVER_END |
| 265 | 286 | |
| 266 | static void nes_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) | |
| 267 | { | |
| 268 | /* cartslot */ | |
| 269 | switch(state) | |
| 270 | { | |
| 271 | /* --- the following bits of info are returned as 64-bit signed integers --- */ | |
| 272 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 273 | case MESS_DEVINFO_INT_MUST_BE_LOADED: info->i = 1; break; | |
| 287 | static MACHINE_DRIVER_START( famicom ) | |
| 288 | MDRV_IMPORT_FROM( nes ) | |
| 289 | ||
| 290 | MDRV_CARTSLOT_MODIFY("cart", famicom_cartslot ) | |
| 291 | MACHINE_DRIVER_END | |
| 274 | 292 | |
| 275 | /* --- the following bits of info are returned as pointers to data or functions --- */ | |
| 276 | case MESS_DEVINFO_PTR_LOAD: info->load = DEVICE_IMAGE_LOAD_NAME(nes_cart); break; | |
| 277 | case MESS_DEVINFO_PTR_PARTIAL_HASH: info->partialhash = nes_partialhash; break; | |
| 278 | ||
| 279 | /* --- the following bits of info are returned as NULL-terminated strings --- */ | |
| 280 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "nes"); break; | |
| 281 | ||
| 282 | default: cartslot_device_getinfo(devclass, state, info); break; | |
| 283 | } | |
| 284 | } | |
| 285 | ||
| 286 | static SYSTEM_CONFIG_START(nes) | |
| 287 | CONFIG_DEVICE(nes_cartslot_getinfo) | |
| 288 | SYSTEM_CONFIG_END | |
| 289 | ||
| 290 | static void famicom_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) | |
| 291 | { | |
| 292 | /* cartslot */ | |
| 293 | switch(state) | |
| 294 | { | |
| 295 | /* --- the following bits of info are returned as 64-bit signed integers --- */ | |
| 296 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 297 | ||
| 298 | /* --- the following bits of info are returned as pointers to data or functions --- */ | |
| 299 | case MESS_DEVINFO_PTR_LOAD: info->load = DEVICE_IMAGE_LOAD_NAME(nes_cart); break; | |
| 300 | case MESS_DEVINFO_PTR_PARTIAL_HASH: info->partialhash = nes_partialhash; break; | |
| 301 | ||
| 302 | /* --- the following bits of info are returned as NULL-terminated strings --- */ | |
| 303 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "nes"); break; | |
| 304 | ||
| 305 | default: cartslot_device_getinfo(devclass, state, info); break; | |
| 306 | } | |
| 307 | } | |
| 308 | ||
| 309 | 293 | static void famicom_floppy_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 310 | 294 | { |
| 311 | 295 | /* floppy */ |
| r3978 | r3979 | |
| 328 | 312 | } |
| 329 | 313 | } |
| 330 | 314 | |
| 331 | static SYSTEM_CONFIG_START(famicom) | |
| 332 | CONFIG_DEVICE(famicom_cartslot_getinfo) | |
| 315 | static SYSTEM_CONFIG_START(famicom) | |
| 333 | 316 | CONFIG_DEVICE(famicom_floppy_getinfo) |
| 334 | 317 | SYSTEM_CONFIG_END |
| 335 | 318 | |
| r3978 | r3979 | |
| 342 | 325 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME */ |
| 343 | 326 | CONS( 1983, famicom, 0, 0, nes, famicom, 0, famicom, "Nintendo", "Famicom" , 0) |
| 344 | 327 | CONS( 1986, famitwin, famicom, 0, nes, famicom, 0, famicom, "Sharp", "Famicom Twin" , 0) |
| 345 | CONS( 1985, nes, 0, 0, nes, nes, 0, nes, "Nintendo", "Nintendo Entertainment System (NTSC)" , 0) | |
| 346 | CONS( 1987, nespal, nes, 0, nespal, nes, 0, nes, "Nintendo", "Nintendo Entertainment System (PAL)" , 0) | |
| 328 | CONS( 1985, nes, 0, 0, nes, nes, 0, 0, "Nintendo", "Nintendo Entertainment System (NTSC)" , 0) | |
| 329 | CONS( 1987, nespal, nes, 0, nespal, nes, 0, 0, "Nintendo", "Nintendo Entertainment System (PAL)" , 0) |
| r3978 | r3979 | |
|---|---|---|
| 552 | 552 | gameboy_sh_start, 0, 0 |
| 553 | 553 | }; |
| 554 | 554 | |
| 555 | static const cartslot_interface gameboy_cartslot = | |
| 556 | { | |
| 557 | "gb,gmb,cgb,gbc,sgb,bin", | |
| 558 | 1, | |
| 559 | DEVICE_START_NAME(gb_cart), | |
| 560 | DEVICE_IMAGE_LOAD_NAME(gb_cart), | |
| 561 | NULL, | |
| 562 | NULL | |
| 563 | }; | |
| 555 | 564 | |
| 565 | static const cartslot_interface gameboy_gb_cartslot = | |
| 566 | { | |
| 567 | "gb,gmb,cgb,gbc,sgb,bin", | |
| 568 | 0, | |
| 569 | DEVICE_START_NAME(gb_cart), | |
| 570 | DEVICE_IMAGE_LOAD_NAME(gb_cart), | |
| 571 | NULL, | |
| 572 | NULL | |
| 573 | }; | |
| 574 | ||
| 575 | static const cartslot_interface megaduck_cartslot = | |
| 576 | { | |
| 577 | "bin", | |
| 578 | 1, | |
| 579 | NULL, | |
| 580 | DEVICE_IMAGE_LOAD_NAME(megaduck_cart), | |
| 581 | NULL, | |
| 582 | NULL | |
| 583 | }; | |
| 584 | ||
| 556 | 585 | static MACHINE_DRIVER_START( gameboy ) |
| 557 | 586 | /* basic machine hardware */ |
| 558 | 587 | MDRV_CPU_ADD("main", LR35902, 4194304) /* 4.194304 MHz */ |
| r3978 | r3979 | |
| 586 | 615 | MDRV_SOUND_CONFIG(gameboy_sound_interface) |
| 587 | 616 | MDRV_SOUND_ROUTE(0, "left", 0.50) |
| 588 | 617 | MDRV_SOUND_ROUTE(1, "right", 0.50) |
| 618 | ||
| 619 | MDRV_CARTSLOT_ADD("cart", gameboy_gb_cartslot ) | |
| 589 | 620 | MACHINE_DRIVER_END |
| 590 | 621 | |
| 591 | 622 | static MACHINE_DRIVER_START( supergb ) |
| r3978 | r3979 | |
| 605 | 636 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 28*8-1) |
| 606 | 637 | MDRV_PALETTE_LENGTH(32768) |
| 607 | 638 | MDRV_PALETTE_INIT(sgb) |
| 639 | ||
| 640 | MDRV_CARTSLOT_MODIFY("cart", gameboy_cartslot ) | |
| 608 | 641 | MACHINE_DRIVER_END |
| 609 | 642 | |
| 610 | 643 | static MACHINE_DRIVER_START( gbpocket ) |
| r3978 | r3979 | |
| 613 | 646 | MDRV_CPU_CONFIG(mgb_cpu_reset) |
| 614 | 647 | MDRV_MACHINE_RESET( gbpocket ) |
| 615 | 648 | MDRV_PALETTE_INIT(gbp) |
| 649 | MDRV_CARTSLOT_MODIFY("cart", gameboy_cartslot ) | |
| 616 | 650 | MACHINE_DRIVER_END |
| 617 | 651 | |
| 618 | 652 | static MACHINE_DRIVER_START( gbcolor ) |
| r3978 | r3979 | |
| 625 | 659 | |
| 626 | 660 | MDRV_PALETTE_LENGTH(32768) |
| 627 | 661 | MDRV_PALETTE_INIT(gbc) |
| 662 | ||
| 663 | MDRV_CARTSLOT_MODIFY("cart", gameboy_cartslot ) | |
| 628 | 664 | MACHINE_DRIVER_END |
| 629 | 665 | |
| 630 | static void gameboy_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) | |
| 631 | { | |
| 632 | /* cartslot */ | |
| 633 | switch(state) | |
| 634 | { | |
| 635 | /* --- the following bits of info are returned as 64-bit signed integers --- */ | |
| 636 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 637 | case MESS_DEVINFO_INT_MUST_BE_LOADED: info->i = 1; break; | |
| 638 | ||
| 639 | /* --- the following bits of info are returned as pointers to data or functions --- */ | |
| 640 | case MESS_DEVINFO_PTR_START: info->start = DEVICE_START_NAME(gb_cart); break; | |
| 641 | case MESS_DEVINFO_PTR_LOAD: info->load = DEVICE_IMAGE_LOAD_NAME(gb_cart); break; | |
| 642 | ||
| 643 | /* --- the following bits of info are returned as NULL-terminated strings --- */ | |
| 644 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "gb,gmb,cgb,gbc,sgb,bin"); break; | |
| 645 | ||
| 646 | default: cartslot_device_getinfo(devclass, state, info); break; | |
| 647 | } | |
| 648 | } | |
| 649 | ||
| 650 | static void gameboy_cartslot_getinfo_gb(const mess_device_class *devclass, UINT32 state, union devinfo *info) | |
| 651 | { | |
| 652 | switch(state) | |
| 653 | { | |
| 654 | /* --- the following bits of info are returned as 64-bit signed integers --- */ | |
| 655 | case MESS_DEVINFO_INT_MUST_BE_LOADED: info->i = 0; break; | |
| 656 | ||
| 657 | default: gameboy_cartslot_getinfo(devclass, state, info); break; | |
| 658 | } | |
| 659 | } | |
| 660 | ||
| 661 | static SYSTEM_CONFIG_START(gameboy) | |
| 662 | CONFIG_DEVICE(gameboy_cartslot_getinfo) | |
| 663 | SYSTEM_CONFIG_END | |
| 664 | ||
| 665 | static SYSTEM_CONFIG_START(gameboy_gb) | |
| 666 | CONFIG_DEVICE(gameboy_cartslot_getinfo_gb) | |
| 667 | SYSTEM_CONFIG_END | |
| 668 | ||
| 669 | 666 | static SYSTEM_CONFIG_START(gb_cgb) |
| 670 | CONFIG_DEVICE(gameboy_cartslot_getinfo) | |
| 671 | 667 | CONFIG_RAM_DEFAULT(2 * 8 * 1024 + 8 * 4 * 1024) /* 2 pages of 8KB VRAM, 8 pages of 4KB RAM */ |
| 672 | 668 | SYSTEM_CONFIG_END |
| 673 | 669 | |
| r3978 | r3979 | |
| 701 | 697 | MDRV_SOUND_CONFIG(gameboy_sound_interface) |
| 702 | 698 | MDRV_SOUND_ROUTE(0, "left", 0.50) |
| 703 | 699 | MDRV_SOUND_ROUTE(1, "right", 0.50) |
| 700 | ||
| 701 | MDRV_CARTSLOT_ADD("cart", megaduck_cartslot ) | |
| 704 | 702 | MACHINE_DRIVER_END |
| 705 | 703 | |
| 706 | static void megaduck_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) | |
| 707 | { | |
| 708 | /* cartslot */ | |
| 709 | switch(state) | |
| 710 | { | |
| 711 | /* --- the following bits of info are returned as 64-bit signed integers --- */ | |
| 712 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 713 | case MESS_DEVINFO_INT_MUST_BE_LOADED: info->i = 1; break; | |
| 714 | ||
| 715 | /* --- the following bits of info are returned as pointers to data or functions --- */ | |
| 716 | case MESS_DEVINFO_PTR_LOAD: info->load = DEVICE_IMAGE_LOAD_NAME(megaduck_cart); break; | |
| 717 | ||
| 718 | /* --- the following bits of info are returned as NULL-terminated strings --- */ | |
| 719 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "bin"); break; | |
| 720 | ||
| 721 | default: cartslot_device_getinfo(devclass, state, info); break; | |
| 722 | } | |
| 723 | } | |
| 724 | ||
| 725 | static SYSTEM_CONFIG_START(megaduck) | |
| 726 | CONFIG_DEVICE(megaduck_cartslot_getinfo) | |
| 727 | SYSTEM_CONFIG_END | |
| 728 | ||
| 729 | 704 | /*************************************************************************** |
| 730 | 705 | |
| 731 | 706 | Game driver(s) |
| r3978 | r3979 | |
| 758 | 733 | ROM_END |
| 759 | 734 | |
| 760 | 735 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME */ |
| 761 | CONS( 1990, gameboy, 0, 0, gameboy, gameboy, 0, gameboy_gb, "Nintendo", "Game Boy" , 0) | |
| 762 | CONS( 1994, supergb, 0, gameboy, supergb, gameboy, 0, gameboy, "Nintendo", "Super Game Boy" , 0) | |
| 763 | CONS( 1996, gbpocket, gameboy, 0, gbpocket, gameboy, 0, gameboy, "Nintendo", "Game Boy Pocket" , 0) | |
| 736 | CONS( 1990, gameboy, 0, 0, gameboy, gameboy, 0, 0, "Nintendo", "Game Boy" , 0) | |
| 737 | CONS( 1994, supergb, 0, gameboy, supergb, gameboy, 0, 0, "Nintendo", "Super Game Boy" , 0) | |
| 738 | CONS( 1996, gbpocket, gameboy, 0, gbpocket, gameboy, 0, 0, "Nintendo", "Game Boy Pocket" , 0) | |
| 764 | 739 | CONS( 1998, gbcolor, 0, gameboy, gbcolor, gameboy, 0, gb_cgb, "Nintendo", "Game Boy Color" , 0) |
| 765 | 740 | |
| 766 | 741 | /* Sound is not 100% yet, it generates some sounds which could be ok. Since we're lacking a real |
| 767 | 742 | system there's no way to verify. Same goes for the colors of the LCD. We are no using the default |
| 768 | 743 | Game Boy green colors */ |
| 769 | CONS( 1993, megaduck, 0, 0, megaduck, gameboy, 0, | |
| 744 | CONS( 1993, megaduck, 0, 0, megaduck, gameboy, 0, 0 | |
| 770 | 745 |
| r3978 | r3979 | |
|---|---|---|
| 1027 | 1027 | CASSETTE_PLAY |
| 1028 | 1028 | }; |
| 1029 | 1029 | |
| 1030 | static const cartslot_interface msx_cartslot = | |
| 1031 | { | |
| 1032 | "mx1,rom", | |
| 1033 | 0, | |
| 1034 | NULL, | |
| 1035 | DEVICE_IMAGE_LOAD_NAME(msx_cart), | |
| 1036 | DEVICE_IMAGE_UNLOAD_NAME(msx_cart), | |
| 1037 | NULL | |
| 1038 | }; | |
| 1030 | 1039 | |
| 1031 | 1040 | static MACHINE_DRIVER_START( msx ) |
| 1032 | 1041 | /* basic machine hardware */ |
| r3978 | r3979 | |
| 1069 | 1078 | MDRV_CASSETTE_ADD( "cassette", msx_cassette_config ) |
| 1070 | 1079 | |
| 1071 | 1080 | MDRV_WD179X_ADD("wd179x", msx_wd17xx_interface ) |
| 1081 | ||
| 1082 | MDRV_CARTSLOT_ADD("cart1", msx_cartslot) | |
| 1083 | MDRV_CARTSLOT_ADD("cart2", msx_cartslot) | |
| 1072 | 1084 | MACHINE_DRIVER_END |
| 1073 | 1085 | |
| 1074 | 1086 | |
| r3978 | r3979 | |
| 1138 | 1150 | MDRV_TC8521_ADD("rtc", default_tc8521_interface) |
| 1139 | 1151 | |
| 1140 | 1152 | MDRV_WD179X_ADD("wd179x", msx_wd17xx_interface ) |
| 1153 | ||
| 1154 | MDRV_CARTSLOT_ADD("cart1", msx_cartslot) | |
| 1155 | MDRV_CARTSLOT_ADD("cart2", msx_cartslot) | |
| 1141 | 1156 | MACHINE_DRIVER_END |
| 1142 | 1157 | |
| 1143 | 1158 | |
| r3978 | r3979 | |
| 3540 | 3555 | } |
| 3541 | 3556 | } |
| 3542 | 3557 | |
| 3543 | static void msx_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) | |
| 3544 | { | |
| 3545 | /* cartslot */ | |
| 3546 | switch(state) | |
| 3547 | { | |
| 3548 | /* --- the following bits of info are returned as 64-bit signed integers --- */ | |
| 3549 | case MESS_DEVINFO_INT_COUNT: info->i = MSX_MAX_CARTS; break; | |
| 3550 | 3558 | |
| 3551 | /* --- the following bits of info are returned as pointers to data or functions --- */ | |
| 3552 | case MESS_DEVINFO_PTR_LOAD: info->load = DEVICE_IMAGE_LOAD_NAME(msx_cart); break; | |
| 3553 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = DEVICE_IMAGE_UNLOAD_NAME(msx_cart); break; | |
| 3554 | ||
| 3555 | /* --- the following bits of info are returned as NULL-terminated strings --- */ | |
| 3556 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "mx1,rom"); break; | |
| 3557 | ||
| 3558 | default: cartslot_device_getinfo(devclass, state, info); break; | |
| 3559 | } | |
| 3560 | } | |
| 3561 | ||
| 3562 | ||
| 3563 | 3559 | static SYSTEM_CONFIG_START(msx) |
| 3564 | 3560 | CONFIG_DEVICE(msx_floppy_getinfo) |
| 3565 | CONFIG_DEVICE(msx_cartslot_getinfo) | |
| 3566 | 3561 | SYSTEM_CONFIG_END |
| 3567 | 3562 | |
| 3568 | 3563 | MSX_DRIVER_LIST |
| r3978 | r3979 | |
|---|---|---|
| 88 | 88 | } |
| 89 | 89 | } |
| 90 | 90 | |
| 91 | static const cartslot_interface gamecom_cartslot = | |
| 92 | { | |
| 93 | "bin,tgc", | |
| 94 | 0, | |
| 95 | DEVICE_START_NAME(gamecom_cart), | |
| 96 | DEVICE_IMAGE_LOAD_NAME(gamecom_cart), | |
| 97 | NULL, | |
| 98 | NULL | |
| 99 | }; | |
| 100 | ||
| 91 | 101 | static MACHINE_DRIVER_START( gamecom ) |
| 92 | 102 | /* basic machine hardware */ |
| 93 | 103 | MDRV_CPU_ADD( "main", SM8500, XTAL_11_0592MHz/2 ) /* actually it's an sm8521 microcontroller containing an sm8500 cpu */ |
| r3978 | r3979 | |
| 121 | 131 | MDRV_SOUND_ROUTE( 0, "left", 0.50 ) |
| 122 | 132 | MDRV_SOUND_ROUTE( 1, "right", 0.50 ) |
| 123 | 133 | #endif |
| 134 | MDRV_CARTSLOT_ADD("cart", gamecom_cartslot ) | |
| 124 | 135 | MACHINE_DRIVER_END |
| 125 | 136 | |
| 126 | static void gamecom_cartslot_getinfo( const mess_device_class *devclass, UINT32 state, union devinfo *info ) { | |
| 127 | switch( state ) { | |
| 128 | case MESS_DEVINFO_INT_COUNT: | |
| 129 | info->i = 1; | |
| 130 | break; | |
| 131 | case MESS_DEVINFO_PTR_START: | |
| 132 | info->start = DEVICE_START_NAME(gamecom_cart); | |
| 133 | break; | |
| 134 | case MESS_DEVINFO_PTR_LOAD: | |
| 135 | info->load = DEVICE_IMAGE_LOAD_NAME(gamecom_cart); | |
| 136 | break; | |
| 137 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: | |
| 138 | strcpy(info->s = device_temp_str(), "bin,tgc"); | |
| 139 | break; | |
| 140 | default: | |
| 141 | cartslot_device_getinfo( devclass, state, info ); | |
| 142 | break; | |
| 143 | } | |
| 144 | } | |
| 145 | ||
| 146 | static SYSTEM_CONFIG_START( gamecom ) | |
| 147 | CONFIG_DEVICE( gamecom_cartslot_getinfo ) | |
| 148 | SYSTEM_CONFIG_END | |
| 149 | ||
| 150 | 137 | ROM_START( gamecom ) |
| 151 | 138 | ROM_REGION( 0x2000, "main", 0 ) |
| 152 | 139 | ROM_LOAD( "internal.bin", 0x1000, 0x1000, CRC(a0cec361) SHA1(03368237e8fed4a8724f3b4a1596cf4b17c96d33) ) |
| r3978 | r3979 | |
| 155 | 142 | ROM_END |
| 156 | 143 | |
| 157 | 144 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME */ |
| 158 | CONS( 1997, gamecom, 0, 0, gamecom, gamecom, 0, | |
| 145 | CONS( 1997, gamecom, 0, 0, gamecom, gamecom, 0, 0 | |
| 159 | 146 | |
| 160 | 147 |
| r3978 | r3979 | |
|---|---|---|
| 67 | 67 | COP400_MICROBUS_DISABLED |
| 68 | 68 | }; |
| 69 | 69 | |
| 70 | static const cartslot_interface advision_cartslot = | |
| 71 | { | |
| 72 | "bin", | |
| 73 | 1, | |
| 74 | NULL, | |
| 75 | NULL, | |
| 76 | NULL, | |
| 77 | NULL | |
| 78 | }; | |
| 79 | ||
| 70 | 80 | static MACHINE_DRIVER_START( advision ) |
| 71 | 81 | MDRV_DRIVER_DATA(advision_state) |
| 72 | 82 | |
| r3978 | r3979 | |
| 100 | 110 | |
| 101 | 111 | MDRV_SOUND_ADD("dac", DAC, 0) |
| 102 | 112 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 113 | ||
| 114 | MDRV_CARTSLOT_ADD("cart", advision_cartslot) | |
| 103 | 115 | MACHINE_DRIVER_END |
| 104 | 116 | |
| 105 | 117 | /* ROMs */ |
| 106 | 118 | |
| 107 | 119 | ROM_START( advision ) |
| 108 | 120 | ROM_REGION( 0x1000, "main", 0 ) |
| 109 | ROM_CART_LOAD( | |
| 121 | ROM_CART_LOAD( | |
| 110 | 122 | |
| 111 | 123 | ROM_REGION( 0x400, "bios", 0 ) |
| 112 | 124 | ROM_LOAD( "avbios.u5", 0x000, 0x400, CRC(279e33d1) SHA1(bf7b0663e9125c9bfb950232eab627d9dbda8460) ) |
| r3978 | r3979 | |
| 115 | 127 | ROM_LOAD( "avsound.u8", 0x000, 0x200, CRC(81e95975) SHA1(8b6f8c30dd3e9d8e43f1ea20fba2361b383790eb) ) |
| 116 | 128 | ROM_END |
| 117 | 129 | |
| 118 | /* System Configuration */ | |
| 119 | ||
| 120 | static SYSTEM_CONFIG_START( advision ) | |
| 121 | CONFIG_DEVICE( cartslot_device_getinfo ) | |
| 122 | SYSTEM_CONFIG_END | |
| 123 | ||
| 124 | 130 | /* Game Driver */ |
| 125 | 131 | |
| 126 | 132 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME FLAGS */ |
| 127 | CONS( 1982, advision, 0, 0, advision, advision, 0, | |
| 133 | CONS( 1982, advision, 0, 0, advision, advision, 0, 0 |
| r3978 | r3979 | |
|---|---|---|
| 93 | 93 | 0 |
| 94 | 94 | }; |
| 95 | 95 | |
| 96 | static const cartslot_interface vectrex_cartslot = | |
| 97 | { | |
| 98 | "bin,gam,vec", | |
| 99 | 0, | |
| 100 | NULL, | |
| 101 | DEVICE_IMAGE_LOAD_NAME(vectrex_cart), | |
| 102 | NULL, | |
| 103 | NULL | |
| 104 | }; | |
| 96 | 105 | |
| 97 | 106 | static MACHINE_DRIVER_START(vectrex) |
| 98 | 107 | /* basic machine hardware */ |
| r3978 | r3979 | |
| 120 | 129 | |
| 121 | 130 | /* via */ |
| 122 | 131 | MDRV_VIA6522_ADD("via6522_0", 0, vectrex_via6522_interface) |
| 132 | ||
| 133 | MDRV_CARTSLOT_ADD("cart", vectrex_cartslot) | |
| 123 | 134 | MACHINE_DRIVER_END |
| 124 | 135 | |
| 125 | static void vectrex_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) | |
| 126 | { | |
| 127 | /* cartslot */ | |
| 128 | switch(state) | |
| 129 | { | |
| 130 | /* --- the following bits of info are returned as 64-bit signed integers --- */ | |
| 131 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 132 | ||
| 133 | /* --- the following bits of info are returned as pointers to data or functions --- */ | |
| 134 | case MESS_DEVINFO_PTR_LOAD: info->load = DEVICE_IMAGE_LOAD_NAME(vectrex_cart); break; | |
| 135 | ||
| 136 | /* --- the following bits of info are returned as NULL-terminated strings --- */ | |
| 137 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "bin,gam,vec"); break; | |
| 138 | ||
| 139 | default: cartslot_device_getinfo(devclass, state, info); break; | |
| 140 | } | |
| 141 | } | |
| 142 | ||
| 143 | static SYSTEM_CONFIG_START(vectrex) | |
| 144 | CONFIG_DEVICE(vectrex_cartslot_getinfo) | |
| 145 | SYSTEM_CONFIG_END | |
| 146 | ||
| 147 | 136 | ROM_START(vectrex) |
| 148 | 137 | ROM_REGION(0x10000,"main", 0) |
| 149 | 138 | ROM_LOAD("system.img", 0xe000, 0x2000, CRC(ba13fb57) SHA1(65d07426b520ddd3115d40f255511e0fd2e20ae7)) |
| r3978 | r3979 | |
| 224 | 213 | /* via */ |
| 225 | 214 | MDRV_VIA6522_REMOVE("via6522_0") |
| 226 | 215 | MDRV_VIA6522_ADD("via6522_0", 0, spectrum1_via6522_interface) |
| 216 | ||
| 217 | MDRV_CARTSLOT_REMOVE("cart") | |
| 227 | 218 | MACHINE_DRIVER_END |
| 228 | 219 | |
| 229 | 220 | ROM_START(raaspec) |
| r3978 | r3979 | |
| 239 | 230 | ***************************************************************************/ |
| 240 | 231 | |
| 241 | 232 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME */ |
| 242 | CONS(1982, vectrex, 0, 0, vectrex, vectrex, vectrex, vectrex, "General Consumer Electronics", "Vectrex" , ROT270) | |
| 243 | CONS(1984, raaspec, vectrex, 0, raaspec, raaspec, vectrex, NULL, "Roy Abel & Associates", "Spectrum I+" , ROT270) | |
| 233 | CONS(1982, vectrex, 0, 0, vectrex, vectrex, vectrex, 0, "General Consumer Electronics", "Vectrex" , ROT270) | |
| 234 | CONS(1984, raaspec, vectrex, 0, raaspec, raaspec, vectrex, 0, "Roy Abel & Associates", "Spectrum I+" , ROT270) |
| r3978 | r3979 | |
|---|---|---|
| 185 | 185 | NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL |
| 186 | 186 | }; |
| 187 | 187 | |
| 188 | static const cartslot_interface aim65_cartslot_1 = | |
| 189 | { | |
| 190 | "z26", | |
| 191 | 0, | |
| 192 | NULL, | |
| 193 | NULL, | |
| 194 | NULL, | |
| 195 | NULL | |
| 196 | }; | |
| 188 | 197 | |
| 198 | static const cartslot_interface aim65_cartslot_2 = | |
| 199 | { | |
| 200 | "z25", | |
| 201 | 0, | |
| 202 | NULL, | |
| 203 | NULL, | |
| 204 | NULL, | |
| 205 | NULL | |
| 206 | }; | |
| 207 | ||
| 208 | static const cartslot_interface aim65_cartslot_3 = | |
| 209 | { | |
| 210 | "z24", | |
| 211 | 0, | |
| 212 | NULL, | |
| 213 | NULL, | |
| 214 | NULL, | |
| 215 | NULL | |
| 216 | }; | |
| 217 | ||
| 189 | 218 | /****************************************************************************** |
| 190 | 219 | Machine Drivers |
| 191 | 220 | ******************************************************************************/ |
| r3978 | r3979 | |
| 212 | 241 | MDRV_RIOT6532_ADD("riot", AIM65_CLOCK, aim65_riot_interface) |
| 213 | 242 | MDRV_VIA6522_ADD("via6522_0", 0, aim65_system_via) |
| 214 | 243 | MDRV_VIA6522_ADD("via6522_1", 0, aim65_user_via) |
| 244 | ||
| 245 | MDRV_CARTSLOT_ADD("cart1", aim65_cartslot_1 ) | |
| 246 | MDRV_CARTSLOT_ADD("cart2", aim65_cartslot_2 ) | |
| 247 | MDRV_CARTSLOT_ADD("cart3", aim65_cartslot_3 ) | |
| 215 | 248 | MACHINE_DRIVER_END |
| 216 | 249 | |
| 217 | 250 | |
| r3978 | r3979 | |
| 223 | 256 | |
| 224 | 257 | ROM_START( aim65 ) |
| 225 | 258 | ROM_REGION(0x10000, "main", 0) |
| 226 | ROM_CART_LOAD(0, "z26", 0xb000, 0x1000, ROM_OPTIONAL) | |
| 227 | ROM_CART_LOAD(1, "z25", 0xc000, 0x1000, ROM_OPTIONAL) | |
| 228 | ROM_CART_LOAD(2, "z24", 0xd000, 0x1000, ROM_OPTIONAL) | |
| 259 | ROM_CART_LOAD("cart1", 0xb000, 0x1000, ROM_OPTIONAL) | |
| 260 | ROM_CART_LOAD("cart2", 0xc000, 0x1000, ROM_OPTIONAL) | |
| 261 | ROM_CART_LOAD("cart3", 0xd000, 0x1000, ROM_OPTIONAL) | |
| 229 | 262 | ROM_SYSTEM_BIOS(0, "aim65", "Rockwell AIM-65") |
| 230 | 263 | ROMX_LOAD("aim65mon.z23", 0xe000, 0x1000, CRC(90e44afe) SHA1(78e38601edf6bfc787b58750555a636b0cf74c5c), ROM_BIOS(1)) |
| 231 | 264 | ROMX_LOAD("aim65mon.z22", 0xf000, 0x1000, CRC(d01914b0) SHA1(e5b5ddd4cd43cce073a718ee4ba5221f2bc84eaf), ROM_BIOS(1)) |
| r3978 | r3979 | |
| 261 | 294 | |
| 262 | 295 | |
| 263 | 296 | static SYSTEM_CONFIG_START( aim65 ) |
| 264 | CONFIG_DEVICE(cartslot_device_getinfo) | |
| 265 | 297 | CONFIG_RAM_DEFAULT(4 * 1024) /* 4KB RAM */ |
| 266 | 298 | CONFIG_RAM (3 * 1024) /* 3KB RAM */ |
| 267 | 299 | CONFIG_RAM (2 * 1024) /* 2KB RAM */ |
| r3978 | r3979 | |
|---|---|---|
| 441 | 441 | colortable_entry_set_value(machine->colortable, i, arcadia_palette[i]); |
| 442 | 442 | } |
| 443 | 443 | |
| 444 | static MACHINE_DRIVER_START( arcadia ) | |
| 445 | /* basic machine hardware */ | |
| 446 | MDRV_CPU_ADD("main", S2650, 3580000/4) /* 0.895 MHz */ | |
| 447 | MDRV_CPU_PROGRAM_MAP(arcadia_mem, 0) | |
| 448 | MDRV_CPU_IO_MAP(arcadia_io, 0) | |
| 449 | MDRV_CPU_PERIODIC_INT(arcadia_video_line, 262*60) | |
| 450 | MDRV_QUANTUM_TIME(HZ(60)) | |
| 451 | ||
| 452 | /* video hardware */ | |
| 453 | MDRV_SCREEN_ADD("main", RASTER) | |
| 454 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 455 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 456 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 457 | MDRV_SCREEN_SIZE(128+2*XPOS, 262) | |
| 458 | MDRV_SCREEN_VISIBLE_AREA(0, 2*XPOS+128-1, 0, 262-1) | |
| 459 | MDRV_GFXDECODE( arcadia ) | |
| 460 | MDRV_PALETTE_LENGTH(ARRAY_LENGTH(arcadia_palette)) | |
| 461 | MDRV_PALETTE_INIT( arcadia ) | |
| 462 | ||
| 463 | MDRV_VIDEO_START( arcadia ) | |
| 464 | MDRV_VIDEO_UPDATE( arcadia ) | |
| 465 | ||
| 466 | /* sound hardware */ | |
| 467 | MDRV_SPEAKER_STANDARD_MONO("mono") | |
| 468 | MDRV_SOUND_ADD("custom", CUSTOM, 0) | |
| 469 | MDRV_SOUND_CONFIG(arcadia_sound_interface) | |
| 470 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) | |
| 471 | MACHINE_DRIVER_END | |
| 472 | ||
| 473 | ||
| 474 | ROM_START(arcadia) | |
| 475 | ROM_REGION(0x8000,"main", ROMREGION_ERASEFF) | |
| 476 | ROM_REGION(0x100,"gfx1", ROMREGION_ERASEFF) | |
| 477 | ROM_END | |
| 478 | ||
| 479 | ROM_START(vcg) | |
| 480 | ROM_REGION(0x8000,"main", ROMREGION_ERASEFF) | |
| 481 | ROM_REGION(0x100,"gfx1", ROMREGION_ERASEFF) | |
| 482 | ROM_END | |
| 483 | ||
| 484 | 444 | static DEVICE_IMAGE_LOAD( arcadia_cart ) |
| 485 | 445 | { |
| 486 | 446 | UINT8 *rom = memory_region(image->machine, "main"); |
| r3978 | r3979 | |
| 542 | 502 | return INIT_PASS; |
| 543 | 503 | } |
| 544 | 504 | |
| 545 | static | |
| 505 | static const | |
| 546 | 506 | { |
| 547 | /* cartslot */ | |
| 548 | switch(state) | |
| 549 | { | |
| 550 | /* --- the following bits of info are returned as 64-bit signed integers --- */ | |
| 551 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 552 | case MESS_DEVINFO_INT_MUST_BE_LOADED: info->i = 1; break; | |
| 507 | "bin", | |
| 508 | 1, | |
| 509 | NULL, | |
| 510 | DEVICE_IMAGE_LOAD_NAME(arcadia_cart), | |
| 511 | NULL, | |
| 512 | NULL | |
| 513 | }; | |
| 553 | 514 | |
| 554 | /* --- the following bits of info are returned as pointers to data or functions --- */ | |
| 555 | case MESS_DEVINFO_PTR_LOAD: info->load = DEVICE_IMAGE_LOAD_NAME(arcadia_cart); break; | |
| 515 | static MACHINE_DRIVER_START( arcadia ) | |
| 516 | /* basic machine hardware */ | |
| 517 | MDRV_CPU_ADD("main", S2650, 3580000/4) /* 0.895 MHz */ | |
| 518 | MDRV_CPU_PROGRAM_MAP(arcadia_mem, 0) | |
| 519 | MDRV_CPU_IO_MAP(arcadia_io, 0) | |
| 520 | MDRV_CPU_PERIODIC_INT(arcadia_video_line, 262*60) | |
| 521 | MDRV_QUANTUM_TIME(HZ(60)) | |
| 556 | 522 | |
| 557 | /* --- the following bits of info are returned as NULL-terminated strings --- */ | |
| 558 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "bin"); break; | |
| 523 | /* video hardware */ | |
| 524 | MDRV_SCREEN_ADD("main", RASTER) | |
| 525 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 526 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 527 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 528 | MDRV_SCREEN_SIZE(128+2*XPOS, 262) | |
| 529 | MDRV_SCREEN_VISIBLE_AREA(0, 2*XPOS+128-1, 0, 262-1) | |
| 530 | MDRV_GFXDECODE( arcadia ) | |
| 531 | MDRV_PALETTE_LENGTH(ARRAY_LENGTH(arcadia_palette)) | |
| 532 | MDRV_PALETTE_INIT( arcadia ) | |
| 559 | 533 | |
| 560 | default: cartslot_device_getinfo(devclass, state, info); break; | |
| 561 | } | |
| 562 | } | |
| 534 | MDRV_VIDEO_START( arcadia ) | |
| 535 | MDRV_VIDEO_UPDATE( arcadia ) | |
| 563 | 536 | |
| 564 | static SYSTEM_CONFIG_START(arcadia) | |
| 565 | CONFIG_DEVICE(arcadia_cartslot_getinfo) | |
| 566 | SYSTEM_CONFIG_END | |
| 537 | /* sound hardware */ | |
| 538 | MDRV_SPEAKER_STANDARD_MONO("mono") | |
| 539 | MDRV_SOUND_ADD("custom", CUSTOM, 0) | |
| 540 | MDRV_SOUND_CONFIG(arcadia_sound_interface) | |
| 541 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) | |
| 542 | ||
| 543 | MDRV_CARTSLOT_ADD("cart", arcadia_cartslot) | |
| 544 | MACHINE_DRIVER_END | |
| 567 | 545 | |
| 546 | ||
| 547 | ROM_START(arcadia) | |
| 548 | ROM_REGION(0x8000,"main", ROMREGION_ERASEFF) | |
| 549 | ROM_REGION(0x100,"gfx1", ROMREGION_ERASEFF) | |
| 550 | ROM_END | |
| 551 | ||
| 552 | ROM_START(vcg) | |
| 553 | ROM_REGION(0x8000,"main", ROMREGION_ERASEFF) | |
| 554 | ROM_REGION(0x100,"gfx1", ROMREGION_ERASEFF) | |
| 555 | ROM_END | |
| 556 | ||
| 557 | ||
| 568 | 558 | /*************************************************************************** |
| 569 | 559 | |
| 570 | 560 | Game driver(s) |
| r3978 | r3979 | |
| 708 | 698 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT COMPANY FULLNAME */ |
| 709 | 699 | // marketed from several firms/names |
| 710 | 700 | |
| 711 | CONS(1982, arcadia, 0, 0, arcadia, arcadia, arcadia, | |
| 701 | CONS(1982, arcadia, 0, 0, arcadia, arcadia, arcadia, 0 | |
| 712 | 702 | // schmid tvg 2000 (developer? PAL) |
| 713 | 703 | |
| 714 | 704 | // different cartridge connector |
| r3978 | r3979 | |
| 716 | 706 | |
| 717 | 707 | // different cartridge connector (same size as mpt03, but different pinout!) |
| 718 | 708 | // 16 keys instead of 12 |
| 719 | CONS(198?, vcg, arcadia, 0, arcadia, vcg, arcadia, | |
| 709 | CONS(198?, vcg, arcadia, 0, arcadia, vcg, arcadia, 0 |
| r3978 | r3979 | |
|---|---|---|
| 198 | 198 | |
| 199 | 199 | /* ------------ cartridge ------------ */ |
| 200 | 200 | |
| 201 | ||
| 201 | ||
| 202 | 202 | { |
| 203 | switch ( state ) { | |
| 204 | case MESS_DEVINFO_INT_COUNT: | |
| 205 | info->i = 1; | |
| 206 | break; | |
| 207 | case MESS_DEVINFO_PTR_LOAD: | |
| 208 | info->load = DEVICE_IMAGE_LOAD_NAME(to7_cartridge); | |
| 209 | break; | |
| 210 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: | |
| 211 | strcpy( info->s = device_temp_str(), "m7,rom" ); | |
| 212 | break; | |
| 213 | default: | |
| 214 | cartslot_device_getinfo( devclass, state, info ); | |
| 215 | } | |
| 216 | } | |
| 203 | "m7,rom", | |
| 204 | 0, | |
| 205 | NULL, | |
| 206 | DEVICE_IMAGE_LOAD_NAME(to7_cartridge), | |
| 207 | NULL, | |
| 208 | NULL | |
| 209 | }; | |
| 217 | 210 | |
| 218 | st | |
| 211 | const | |
| 219 | 212 | { |
| 220 | switch ( state ) { | |
| 221 | case MESS_DEVINFO_INT_COUNT: | |
| 222 | info->i = 1; | |
| 223 | break; | |
| 224 | case MESS_DEVINFO_PTR_LOAD: | |
| 225 | info->load = DEVICE_IMAGE_LOAD_NAME(mo5_cartridge); | |
| 226 | break; | |
| 227 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: | |
| 228 | strcpy( info->s = device_temp_str(), "m5,rom" ); | |
| 229 | break; | |
| 230 | default: | |
| 231 | cartslot_device_getinfo( devclass, state, info ); | |
| 232 | } | |
| 233 | } | |
| 213 | "m5,rom", | |
| 214 | 0, | |
| 215 | NULL, | |
| 216 | DEVICE_IMAGE_LOAD_NAME(mo5_cartridge), | |
| 217 | NULL, | |
| 218 | NULL | |
| 219 | }; | |
| 234 | 220 | |
| 235 | ||
| 236 | 221 | /* ------------ serial ------------ */ |
| 237 | 222 | |
| 238 | 223 | static const char *const thom_serial_names[3][3]= |
| r3978 | r3979 | |
| 684 | 669 | /* ------------ config ------------ */ |
| 685 | 670 | |
| 686 | 671 | static SYSTEM_CONFIG_START ( to ) |
| 687 | CONFIG_DEVICE ( to7_cartridge_getinfo ) | |
| 688 | 672 | CONFIG_DEVICE ( thom_floppy_getinfo ) |
| 689 | 673 | CONFIG_DEVICE ( thom_serial_getinfo ) |
| 690 | 674 | SYSTEM_CONFIG_END |
| r3978 | r3979 | |
| 760 | 744 | MDRV_ACIA6850_ADD( "acia6850", to7_modem ) |
| 761 | 745 | |
| 762 | 746 | MDRV_WD2793_ADD("wd2793", default_wd17xx_interface ) |
| 747 | ||
| 748 | MDRV_CARTSLOT_ADD("cart", to7_cartslot ) | |
| 763 | 749 | MACHINE_DRIVER_END |
| 764 | 750 | |
| 765 | 751 | static MACHINE_DRIVER_START ( t9000 ) |
| r3978 | r3979 | |
| 1123 | 1109 | /* ------------ config ------------ */ |
| 1124 | 1110 | |
| 1125 | 1111 | static SYSTEM_CONFIG_START ( mo ) |
| 1126 | CONFIG_DEVICE ( mo5_cartridge_getinfo ) | |
| 1127 | 1112 | CONFIG_DEVICE ( thom_floppy_getinfo ) |
| 1128 | 1113 | CONFIG_DEVICE ( thom_serial_getinfo ) |
| 1129 | 1114 | SYSTEM_CONFIG_END |
| r3978 | r3979 | |
| 1151 | 1136 | MDRV_CASSETTE_MODIFY( "cassette", mo5_cassette_config ) |
| 1152 | 1137 | |
| 1153 | 1138 | MDRV_MC6846_REMOVE( "mc6846" ) |
| 1139 | ||
| 1140 | MDRV_CARTSLOT_MODIFY("cart", mo5_cartslot ) | |
| 1154 | 1141 | MACHINE_DRIVER_END |
| 1155 | 1142 | |
| 1156 | 1143 | static MACHINE_DRIVER_START ( mo5e ) |
| r3978 | r3979 | |
| 2234 | 2221 | MDRV_CPU_PROGRAM_MAP ( mo6, 0 ) |
| 2235 | 2222 | |
| 2236 | 2223 | MDRV_MC6846_REMOVE( "mc6846" ) |
| 2224 | ||
| 2225 | MDRV_CARTSLOT_MODIFY("cart", mo5_cartslot ) | |
| 2237 | 2226 | MACHINE_DRIVER_END |
| 2238 | 2227 | |
| 2239 | 2228 | static MACHINE_DRIVER_START ( pro128 ) |
| r3978 | r3979 | |
| 2460 | 2449 | MDRV_CPU_PROGRAM_MAP ( mo5nr, 0 ) |
| 2461 | 2450 | |
| 2462 | 2451 | MDRV_MC6846_REMOVE( "mc6846" ) |
| 2452 | ||
| 2453 | MDRV_CARTSLOT_MODIFY("cart", mo5_cartslot ) | |
| 2463 | 2454 | MACHINE_DRIVER_END |
| 2464 | 2455 | |
| 2465 | 2456 | COMP ( 1986, mo5nr, 0, 0, mo5nr, mo5nr, 0, mo5nr, "Thomson", "MO5 NR", 0 ) |
| r3978 | r3979 | |
|---|---|---|
| 474 | 474 | pasogo_pic8259_set_int_line |
| 475 | 475 | }; |
| 476 | 476 | |
| 477 | static DEVICE_IMAGE_LOAD( pasogo_cart ) | |
| 478 | { | |
| 479 | UINT8 *user = memory_region(image->machine, "user1"); | |
| 480 | int size; | |
| 481 | size = image_length(image); | |
| 477 | 482 | |
| 483 | if (image_fread(image, user, size) != size) | |
| 484 | { | |
| 485 | logerror("%s load error\n", image_filename(image)); | |
| 486 | return 1; | |
| 487 | } | |
| 488 | ||
| 489 | return 0; | |
| 490 | } | |
| 491 | ||
| 492 | static const cartslot_interface pasogo_cartslot = | |
| 493 | { | |
| 494 | "bin", | |
| 495 | 0, | |
| 496 | NULL, | |
| 497 | DEVICE_IMAGE_LOAD_NAME(pasogo_cart), | |
| 498 | NULL, | |
| 499 | NULL | |
| 500 | }; | |
| 501 | ||
| 478 | 502 | static MACHINE_DRIVER_START( pasogo ) |
| 479 | 503 | MDRV_CPU_ADD("main", I80188/*V30HL in vadem vg230*/, 10000000/*?*/) |
| 480 | 504 | MDRV_CPU_PROGRAM_MAP(pasogo_mem, 0) |
| r3978 | r3979 | |
| 501 | 525 | MDRV_SOUND_CONFIG(gmaster_sound_interface) |
| 502 | 526 | MDRV_SOUND_ROUTE(0, "gmaster", 0.50) |
| 503 | 527 | #endif |
| 528 | ||
| 529 | MDRV_CARTSLOT_ADD("cart", pasogo_cartslot ) | |
| 504 | 530 | MACHINE_DRIVER_END |
| 505 | 531 | |
| 506 | 532 | |
| r3978 | r3979 | |
| 520 | 546 | memory_set_bankptr( machine, 28, memory_region(machine, "main") + 0xb8000/*?*/ ); |
| 521 | 547 | } |
| 522 | 548 | |
| 523 | ||
| 524 | static DEVICE_IMAGE_LOAD( pasogo_cart ) | |
| 525 | { | |
| 526 | UINT8 *user = memory_region(image->machine, "user1"); | |
| 527 | int size; | |
| 528 | size = image_length(image); | |
| 529 | ||
| 530 | if (image_fread(image, user, size) != size) | |
| 531 | { | |
| 532 | logerror("%s load error\n", image_filename(image)); | |
| 533 | return 1; | |
| 534 | } | |
| 535 | ||
| 536 | return 0; | |
| 537 | } | |
| 538 | ||
| 539 | static void pasogo_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) | |
| 540 | { | |
| 541 | /* cartslot */ | |
| 542 | switch(state) | |
| 543 | { | |
| 544 | /* --- the following bits of info are returned as 64-bit signed integers --- */ | |
| 545 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 546 | ||
| 547 | /* --- the following bits of info are returned as pointers to data or functions --- */ | |
| 548 | case MESS_DEVINFO_PTR_LOAD: info->load = DEVICE_IMAGE_LOAD_NAME(pasogo_cart); break; | |
| 549 | ||
| 550 | /* --- the following bits of info are returned as NULL-terminated strings --- */ | |
| 551 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "bin"); break; | |
| 552 | ||
| 553 | default: cartslot_device_getinfo(devclass, state, info); break; | |
| 554 | } | |
| 555 | } | |
| 556 | ||
| 557 | static SYSTEM_CONFIG_START(pasogo) | |
| 558 | CONFIG_DEVICE(pasogo_cartslot_getinfo) | |
| 559 | SYSTEM_CONFIG_END | |
| 560 | ||
| 561 | 549 | /* YEAR NAME PARENT MACHINE INPUT INIT |
| 562 | 550 | COMPANY FULLNAME */ |
| 563 | CONS( 1996, pasogo, 0, 0, pasogo, pasogo, pasogo, | |
| 551 | CONS( 1996, pasogo, 0, 0, pasogo, pasogo, pasogo, 0 | |
| 564 | 552 |
| r3978 | r3979 | |
|---|---|---|
| 102 | 102 | |
| 103 | 103 | /* devices */ |
| 104 | 104 | MDRV_QUICKLOAD_ADD(lynx, "o,lnx", 0) |
| 105 | ||
| 106 | MDRV_CARTSLOT_ADD("cart", lynx_cartslot ) | |
| 105 | 107 | MACHINE_DRIVER_END |
| 106 | 108 | |
| 107 | 109 | |
| r3978 | r3979 | |
| 182 | 184 | return INIT_PASS; |
| 183 | 185 | } |
| 184 | 186 | |
| 185 | static SYSTEM_CONFIG_START(lynx) | |
| 186 | CONFIG_DEVICE(lynx_cartslot_getinfo) | |
| 187 | SYSTEM_CONFIG_END | |
| 188 | ||
| 189 | 187 | /*************************************************************************** |
| 190 | 188 | |
| 191 | 189 | Game driver(s) |
| r3978 | r3979 | |
| 193 | 191 | ***************************************************************************/ |
| 194 | 192 | |
| 195 | 193 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME FLAGS */ |
| 196 | CONS( 1989, lynx, 0, 0, lynx, lynx, 0, lynx, "Atari", "Lynx", GAME_NOT_WORKING | GAME_IMPERFECT_SOUND ) | |
| 197 | CONS( 1991, lynx2, lynx, 0, lynx2, lynx, 0, lynx, "Atari", "Lynx II", GAME_NOT_WORKING | GAME_IMPERFECT_SOUND ) | |
| 194 | CONS( 1989, lynx, 0, 0, lynx, lynx, 0, 0, "Atari", "Lynx", GAME_NOT_WORKING | GAME_IMPERFECT_SOUND ) | |
| 195 | CONS( 1991, lynx2, lynx, 0, lynx2, lynx, 0, 0, "Atari", "Lynx II", GAME_NOT_WORKING | GAME_IMPERFECT_SOUND ) |
| r3978 | r3979 | |
|---|---|---|
| 394 | 394 | memory_set_bank(machine, 2, 0); |
| 395 | 395 | } |
| 396 | 396 | |
| 397 | static DEVICE_IMAGE_LOAD( aquarius_cart ) | |
| 398 | { | |
| 399 | int size = image_length(image); | |
| 400 | UINT8 *ptr = memory_region(image->machine, "main") + 0xc000; | |
| 401 | ||
| 402 | if (image_fread(image, ptr, size) != size) | |
| 403 | { | |
| 404 | return INIT_FAIL; | |
| 405 | } | |
| 406 | ||
| 407 | switch (size) | |
| 408 | { | |
| 409 | case 8 * 1024: | |
| 410 | memory_install_readwrite8_handler(cpu_get_address_space(image->machine->cpu[0], ADDRESS_SPACE_PROGRAM), 0xc000, 0xdfff, 0, 0x2000, SMH_BANK2, SMH_UNMAP); | |
| 411 | break; | |
| 412 | ||
| 413 | case 16 * 1024: | |
| 414 | memory_install_readwrite8_handler(cpu_get_address_space(image->machine->cpu[0], ADDRESS_SPACE_PROGRAM), 0xc000, 0xffff, 0, 0, SMH_BANK2, SMH_UNMAP); | |
| 415 | break; | |
| 416 | } | |
| 417 | ||
| 418 | return INIT_PASS; | |
| 419 | } | |
| 420 | ||
| 397 | 421 | /* Machine Driver */ |
| 398 | 422 | static const cassette_config aquarius_cassette_config = |
| 399 | 423 | { |
| r3978 | r3979 | |
| 402 | 426 | CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_MUTED |
| 403 | 427 | }; |
| 404 | 428 | |
| 429 | static const cartslot_interface aquarius_cartslot = | |
| 430 | { | |
| 431 | "bin", | |
| 432 | 0, | |
| 433 | NULL, | |
| 434 | DEVICE_IMAGE_LOAD_NAME(aquarius_cart), | |
| 435 | NULL, | |
| 436 | NULL | |
| 437 | }; | |
| 405 | 438 | |
| 406 | 439 | static MACHINE_DRIVER_START( aquarius ) |
| 407 | 440 | /* basic machine hardware */ |
| r3978 | r3979 | |
| 440 | 473 | MDRV_PRINTER_ADD("printer") |
| 441 | 474 | |
| 442 | 475 | MDRV_CASSETTE_ADD( "cassette", aquarius_cassette_config ) |
| 476 | ||
| 477 | MDRV_CARTSLOT_ADD("cart", aquarius_cartslot) | |
| 443 | 478 | MACHINE_DRIVER_END |
| 444 | 479 | |
| 445 | 480 | /* ROMs */ |
| r3978 | r3979 | |
| 455 | 490 | |
| 456 | 491 | /* System Configuration */ |
| 457 | 492 | |
| 458 | static DEVICE_IMAGE_LOAD( aquarius_cart ) | |
| 459 | { | |
| 460 | int size = image_length(image); | |
| 461 | UINT8 *ptr = memory_region(image->machine, "main") + 0xc000; | |
| 462 | ||
| 463 | if (image_fread(image, ptr, size) != size) | |
| 464 | { | |
| 465 | return INIT_FAIL; | |
| 466 | } | |
| 467 | ||
| 468 | switch (size) | |
| 469 | { | |
| 470 | case 8 * 1024: | |
| 471 | memory_install_readwrite8_handler(cpu_get_address_space(image->machine->cpu[0], ADDRESS_SPACE_PROGRAM), 0xc000, 0xdfff, 0, 0x2000, SMH_BANK2, SMH_UNMAP); | |
| 472 | break; | |
| 473 | ||
| 474 | case 16 * 1024: | |
| 475 | memory_install_readwrite8_handler(cpu_get_address_space(image->machine->cpu[0], ADDRESS_SPACE_PROGRAM), 0xc000, 0xffff, 0, 0, SMH_BANK2, SMH_UNMAP); | |
| 476 | break; | |
| 477 | } | |
| 478 | ||
| 479 | return INIT_PASS; | |
| 480 | } | |
| 481 | ||
| 482 | static void aquarius_cartslot_getinfo( const mess_device_class *devclass, UINT32 state, union devinfo *info ) | |
| 483 | { | |
| 484 | switch( state ) | |
| 485 | { | |
| 486 | /* --- the following bits of info are returned as 64-bit signed integers --- */ | |
| 487 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 488 | ||
| 489 | /* --- the following bits of info are returned as pointers to data or functions --- */ | |
| 490 | case MESS_DEVINFO_PTR_LOAD: info->load = DEVICE_IMAGE_LOAD_NAME(aquarius_cart); break; | |
| 491 | ||
| 492 | /* --- the following bits of info are returned as NULL-terminated strings --- */ | |
| 493 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "bin"); break; | |
| 494 | ||
| 495 | default: cartslot_device_getinfo( devclass, state, info ); break; | |
| 496 | } | |
| 497 | } | |
| 498 | ||
| 499 | 493 | static DEVICE_IMAGE_LOAD( aquarius_floppy ) |
| 500 | 494 | { |
| 501 | 495 | // 128K images, 64K/side |
| r3978 | r3979 | |
| 525 | 519 | CONFIG_RAM ( 8 * 1024) |
| 526 | 520 | CONFIG_RAM (20 * 1024) |
| 527 | 521 | CONFIG_RAM (36 * 1024) |
| 528 | CONFIG_DEVICE(aquarius_cartslot_getinfo) | |
| 529 | 522 | CONFIG_DEVICE(aquarius_floppy_getinfo) |
| 530 | 523 | SYSTEM_CONFIG_END |
| 531 | 524 |
| r3978 | r3979 | |
|---|---|---|
| 397 | 397 | CASSETTE_STOPPED |
| 398 | 398 | }; |
| 399 | 399 | |
| 400 | static const cartslot_interface cgenie_cartslot = | |
| 401 | { | |
| 402 | "rom", | |
| 403 | 0, | |
| 404 | NULL, | |
| 405 | NULL, | |
| 406 | NULL, | |
| 407 | NULL | |
| 408 | }; | |
| 400 | 409 | |
| 401 | 410 | static MACHINE_DRIVER_START( cgenie ) |
| 402 | 411 | /* basic machine hardware */ |
| r3978 | r3979 | |
| 435 | 444 | MDRV_CASSETTE_ADD( "cassette", cgenie_cassette_config ) |
| 436 | 445 | |
| 437 | 446 | MDRV_WD179X_ADD("wd179x", cgenie_wd17xx_interface ) |
| 447 | ||
| 448 | MDRV_CARTSLOT_ADD("cart", cgenie_cartslot) | |
| 438 | 449 | MACHINE_DRIVER_END |
| 439 | 450 | |
| 440 | 451 | /*************************************************************************** |
| r3978 | r3979 | |
| 447 | 458 | ROM_REGION(0x13000,"main",0) |
| 448 | 459 | ROM_LOAD ("cgenie.rom", 0x00000, 0x4000, CRC(d359ead7) SHA1(d8c2fc389ad38c45fba0ed556a7d91abac5463f4)) |
| 449 | 460 | ROM_LOAD ("cgdos.rom", 0x10000, 0x2000, CRC(2a96cf74) SHA1(6dcac110f87897e1ee7521aefbb3d77a14815893)) |
| 450 | ROM_CART_LOAD( | |
| 461 | ROM_CART_LOAD( | |
| 451 | 462 | |
| 452 | 463 | ROM_REGION(0x0c00,"gfx1",0) |
| 453 | 464 | ROM_LOAD ("cgenie1.fnt", 0x0000, 0x0800, CRC(4fed774a) SHA1(d53df8212b521892cc56be690db0bb474627d2ff)) |
| r3978 | r3979 | |
| 477 | 488 | |
| 478 | 489 | |
| 479 | 490 | static SYSTEM_CONFIG_START(cgenie) |
| 480 | CONFIG_DEVICE(cartslot_device_getinfo) | |
| 481 | 491 | CONFIG_DEVICE(cgenie_floppy_getinfo) |
| 482 | 492 | CONFIG_RAM_DEFAULT (16 * 1024) |
| 483 | 493 | CONFIG_RAM (32 * 1024) |
| r3978 | r3979 | |
|---|---|---|
| 324 | 324 | MDRV_CPU_IO_MAP(scorpion_io, 0) |
| 325 | 325 | MDRV_MACHINE_RESET( scorpion ) |
| 326 | 326 | |
| 327 | MDRV_WD179X_ADD("wd179x", beta_wd17xx_interface ) | |
| 327 | MDRV_WD179X_ADD("wd179x", beta_wd17xx_interface ) | |
| 328 | 328 | MACHINE_DRIVER_END |
| 329 | 329 | |
| 330 | 330 | |
| r3978 | r3979 | |
| 341 | 341 | ROM_LOAD("scorp1.rom", 0x014000, 0x4000, CRC(9d513013) SHA1(367b5a102fb663beee8e7930b8c4acc219c1f7b3) ) |
| 342 | 342 | ROM_LOAD("scorp2.rom", 0x018000, 0x4000, CRC(fd0d3ce1) SHA1(07783ee295274d8ff15d935bfd787c8ac1d54900) ) |
| 343 | 343 | ROM_LOAD("scorp3.rom", 0x01c000, 0x4000, CRC(1fe1d003) SHA1(33703e97cc93b7edfcc0334b64233cf81b7930db) ) |
| 344 | ROM_CART_LOAD( | |
| 344 | ROM_CART_LOAD( | |
| 345 | 345 | ROM_END |
| 346 | 346 | |
| 347 | 347 | SYSTEM_CONFIG_EXTERN(spectrum) |
| 348 | 348 | |
| 349 | 349 | static SYSTEM_CONFIG_START(scorpion) |
| 350 | CONFIG_IMPORT_FROM(spectrum) | |
| 351 | 350 | CONFIG_RAM_DEFAULT(256 * 1024) |
| 352 | 351 | CONFIG_DEVICE(beta_floppy_getinfo) |
| 353 | 352 | SYSTEM_CONFIG_END |
| r3978 | r3979 | |
|---|---|---|
| 385 | 385 | ROM_LOAD("p2a41_1.rom",0x14000,0x4000, CRC(a7916b3f) SHA1(1a7812c383a3701e90e88d1da086efb0c033ac72)) |
| 386 | 386 | ROM_LOAD("p2a41_2.rom",0x18000,0x4000, CRC(c9a0b748) SHA1(8df145d10ff78f98138682ea15ebccb2874bf759)) |
| 387 | 387 | ROM_LOAD("p2a41_3.rom",0x1c000,0x4000, CRC(b88fd6e3) SHA1(be365f331942ec7ec35456b641dac56a0dbfe1f0)) |
| 388 | ROM_CART_LOAD( | |
| 388 | ROM_CART_LOAD( | |
| 389 | 389 | ROM_END |
| 390 | 390 | |
| 391 | 391 | ROM_START(specpls3) |
| r3978 | r3979 | |
| 408 | 408 | ROM_SYSTEM_BIOS( 4, "12ms", "Customize 3.5\" 12ms" ) |
| 409 | 409 | ROMX_LOAD("p3_01_cm.rom",0x10000,0x8000, CRC(ad99380a) SHA1(4e5d114b72d464cefdde0566457f52a3c0c1cae2), ROM_BIOS(5)) |
| 410 | 410 | ROMX_LOAD("p3_23_cm.rom",0x18000,0x8000, CRC(61f2b50c) SHA1(d062765ceb1f3cd2c94ea51cb737cac7ad6151b4), ROM_BIOS(5)) |
| 411 | ROM_CART_LOAD( | |
| 411 | ROM_CART_LOAD( | |
| 412 | 412 | ROM_END |
| 413 | 413 | |
| 414 | 414 | ROM_START(specpl3e) |
| r3978 | r3979 | |
| 419 | 419 | ROM_SYSTEM_BIOS( 1, "sp", "Spanish" ) |
| 420 | 420 | ROMX_LOAD("roma-es.rom",0x10000,0x8000, CRC(ba694b4b) SHA1(d15d9e43950483cffc79f1cfa89ecb114a88f6c2), ROM_BIOS(2)) |
| 421 | 421 | ROMX_LOAD("romb-es.rom",0x18000,0x8000, CRC(61ed94db) SHA1(935b14c13db75d872de8ad0d591aade0adbbc355), ROM_BIOS(2)) |
| 422 | ROM_CART_LOAD( | |
| 422 | ROM_CART_LOAD( | |
| 423 | 423 | ROM_END |
| 424 | 424 | |
| 425 | 425 | ROM_START(sp3e8bit) |
| r3978 | r3979 | |
| 428 | 428 | ROMX_LOAD("3e8biten.rom",0x10000,0x10000, CRC(beee3bf6) SHA1(364ec903916282d5401901c5fb0cb93a142038b3), ROM_BIOS(1)) |
| 429 | 429 | ROM_SYSTEM_BIOS( 1, "sp", "Spanish" ) |
| 430 | 430 | ROMX_LOAD("3e8bites.rom",0x10000,0x10000, CRC(cafe4c35) SHA1(8331d273d29d3e37ec1324053bb050874d2c1434), ROM_BIOS(2)) |
| 431 | ROM_CART_LOAD( | |
| 431 | ROM_CART_LOAD( | |
| 432 | 432 | ROM_END |
| 433 | 433 | |
| 434 | 434 | ROM_START(sp3ezcf) |
| r3978 | r3979 | |
| 437 | 437 | ROMX_LOAD("3ezcfen.rom",0x10000,0x10000, CRC(43993f11) SHA1(27cbfbe8b5ef9eec6056026fa0b84fe158ba2f45), ROM_BIOS(1)) |
| 438 | 438 | ROM_SYSTEM_BIOS( 1, "sp", "Spanish" ) |
| 439 | 439 | ROMX_LOAD("3ezcfes.rom",0x10000,0x10000, CRC(1325a0d7) SHA1(521cf47e10f46c8a621c8889ef1f008454c7e10b), ROM_BIOS(2)) |
| 440 | ROM_CART_LOAD( | |
| 440 | ROM_CART_LOAD( | |
| 441 | 441 | ROM_END |
| 442 | 442 | |
| 443 | 443 | ROM_START(sp3eata) |
| r3978 | r3979 | |
| 446 | 446 | ROMX_LOAD("3ezxaen.rom",0x10000,0x10000, CRC(dfb676dc) SHA1(37618bc66ae33dbf686be8a92867e4a9144b65dc), ROM_BIOS(1)) |
| 447 | 447 | ROM_SYSTEM_BIOS( 1, "sp", "Spanish" ) |
| 448 | 448 | ROMX_LOAD("3ezxaes.rom",0x10000,0x10000, CRC(8f0ae91a) SHA1(71693e18b30c90914be58cba26682ca025c924ea), ROM_BIOS(2)) |
| 449 | ROM_CART_LOAD( | |
| 449 | ROM_CART_LOAD( | |
| 450 | 450 | ROM_END |
| 451 | 451 | |
| 452 | 452 | static void specpls3_floppy_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| r3978 | r3979 | |
|---|---|---|
| 454 | 454 | CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED | CASSETTE_MOTOR_ENABLED |
| 455 | 455 | }; |
| 456 | 456 | |
| 457 | const cartslot_interface spectrum_cartslot = | |
| 458 | { | |
| 459 | "rom", | |
| 460 | 0, | |
| 461 | NULL, | |
| 462 | NULL, | |
| 463 | NULL, | |
| 464 | NULL | |
| 465 | }; | |
| 466 | ||
| 457 | 467 | MACHINE_DRIVER_START( spectrum ) |
| 458 | 468 | /* basic machine hardware */ |
| 459 | 469 | MDRV_CPU_ADD("main", Z80, 3500000) /* 3.5 MHz */ |
| r3978 | r3979 | |
| 491 | 501 | MDRV_QUICKLOAD_ADD(spectrum, "scr", 0) |
| 492 | 502 | |
| 493 | 503 | MDRV_CASSETTE_ADD( "cassette", spectrum_cassette_config ) |
| 504 | ||
| 505 | MDRV_CARTSLOT_ADD("cart", spectrum_cartslot ) | |
| 494 | 506 | MACHINE_DRIVER_END |
| 495 | 507 | |
| 496 | 508 | /*************************************************************************** |
| r3978 | r3979 | |
| 539 | 551 | ROMX_LOAD("isomoje.rom",0x0000,0x4000, CRC(62ab3640) SHA1(04adbdb1380d6ccd4ab26ddd61b9ccbba462a60f), ROM_BIOS(18)) |
| 540 | 552 | ROM_SYSTEM_BIOS(18, "iso8", "ISO ROM 8") |
| 541 | 553 | ROMX_LOAD("iso8bm.rom",0x0000,0x4000, CRC(43e9c2fd) SHA1(5752e6f789769475711b91e0a75911fa5232c767), ROM_BIOS(19)) |
| 542 | ROM_CART_LOAD( | |
| 554 | ROM_CART_LOAD( | |
| 543 | 555 | ROM_END |
| 544 | 556 | |
| 545 | 557 | ROM_START(specide) |
| 546 | 558 | ROM_REGION(0x10000,"main",0) |
| 547 | 559 | ROM_LOAD("zxide.rom", 0x0000, 0x4000, CRC(bd48db54) SHA1(54c2aa958902b5395c260770a0b25c7ba5685de9)) |
| 548 | ROM_CART_LOAD( | |
| 560 | ROM_CART_LOAD( | |
| 549 | 561 | ROM_END |
| 550 | 562 | |
| 551 | 563 | ROM_START(spec80k) |
| 552 | 564 | ROM_REGION(0x10000,"main",0) |
| 553 | 565 | ROM_LOAD("80-lec.rom", 0x0000, 0x4000, CRC(5b5c92b1) SHA1(bb7a77d66e95d2e28ebb610e543c065e0d428619)) |
| 554 | ROM_CART_LOAD( | |
| 566 | ROM_CART_LOAD( | |
| 555 | 567 | ROM_END |
| 556 | 568 | |
| 557 | 569 | ROM_START(tk90x) |
| 558 | 570 | ROM_REGION(0x10000,"main",0) |
| 559 | 571 | ROM_LOAD("tk90x.rom",0x0000,0x4000, CRC(3e785f6f) SHA1(9a943a008be13194fb006bddffa7d22d2277813f)) |
| 560 | ROM_CART_LOAD( | |
| 572 | ROM_CART_LOAD( | |
| 561 | 573 | ROM_END |
| 562 | 574 | |
| 563 | 575 | ROM_START(tk95) |
| 564 | 576 | ROM_REGION(0x10000,"main",0) |
| 565 | 577 | ROM_LOAD("tk95.rom",0x0000,0x4000, CRC(17368e07) SHA1(94edc401d43b0e9a9cdc1d35de4b6462dc414ab3)) |
| 566 | ROM_CART_LOAD( | |
| 578 | ROM_CART_LOAD( | |
| 567 | 579 | ROM_END |
| 568 | 580 | |
| 569 | 581 | ROM_START(inves) |
| 570 | 582 | ROM_REGION(0x10000,"main",0) |
| 571 | 583 | ROM_LOAD("inves.rom",0x0000,0x4000, CRC(8ff7a4d1) SHA1(d020440638aff4d39467128413ef795677be9c23)) |
| 572 | ROM_CART_LOAD( | |
| 584 | ROM_CART_LOAD( | |
| 573 | 585 | ROM_END |
| 574 | 586 | |
| 575 | 587 | /* Romanian clones */ |
| 576 | 588 | ROM_START(hc85) |
| 577 | 589 | ROM_REGION(0x10000,"main",0) |
| 578 | 590 | ROM_LOAD("hc85.rom",0x0000,0x4000, CRC(3ab60fb5) SHA1(a4189db0bcdf8b39ed782b398828efb408fc4817)) |
| 579 | ROM_CART_LOAD( | |
| 591 | ROM_CART_LOAD( | |
| 580 | 592 | ROM_END |
| 581 | 593 | |
| 582 | 594 | ROM_START(hc90) |
| 583 | 595 | ROM_REGION(0x10000,"main",0) |
| 584 | 596 | ROM_LOAD("hc90.rom",0x0000,0x4000, CRC(78c14d9a) SHA1(25ef81905bed90497a749770170c24632efb2039)) |
| 585 | ROM_CART_LOAD( | |
| 597 | ROM_CART_LOAD( | |
| 586 | 598 | ROM_END |
| 587 | 599 | |
| 588 | 600 | ROM_START(hc91) |
| 589 | 601 | ROM_REGION(0x10000,"main",0) |
| 590 | 602 | ROM_LOAD("hc91.rom",0x0000,0x4000, CRC(8bf53761) SHA1(967d5179ba2823e9c8dd9ddfb0430465aaddb554)) |
| 591 | ROM_CART_LOAD( | |
| 603 | ROM_CART_LOAD( | |
| 592 | 604 | ROM_END |
| 593 | 605 | |
| 594 | 606 | ROM_START(cip03) |
| 595 | 607 | ROM_REGION(0x10000,"main",0) |
| 596 | 608 | ROM_LOAD("cip03.rom",0x0000,0x4000, CRC(c7d0cd3c) SHA1(811055b44fc74076137e2bf8db206b2a70287cc2)) |
| 597 | ROM_CART_LOAD( | |
| 609 | ROM_CART_LOAD( | |
| 598 | 610 | ROM_END |
| 599 | 611 | |
| 600 | 612 | ROM_START(jet) |
| 601 | 613 | ROM_REGION(0x10000,"main",0) |
| 602 | 614 | ROM_LOAD("jet.rom",0x0000,0x4000, CRC(e56a7d11) SHA1(e76be9ee71bae6aa1c2ff969276fb599ed68cb50)) |
| 603 | ROM_CART_LOAD( | |
| 615 | ROM_CART_LOAD( | |
| 604 | 616 | ROM_END |
| 605 | 617 | |
| 606 | 618 | /* Czechoslovakian clones*/ |
| r3978 | r3979 | |
| 610 | 622 | ROM_START(dgama87) |
| 611 | 623 | ROM_REGION(0x10000,"main",0) |
| 612 | 624 | ROM_LOAD("dgama87.rom",0x0000,0x4000, CRC(43104909) SHA1(f62d1f3f35fda467cae468e890995614f6ec2357)) |
| 613 | ROM_CART_LOAD( | |
| 625 | ROM_CART_LOAD( | |
| 614 | 626 | ROM_END |
| 615 | 627 | |
| 616 | 628 | ROM_START(dgama88) |
| 617 | 629 | ROM_REGION(0x10000,"main",0) |
| 618 | 630 | ROM_LOAD("dgama88.rom",0x0000,0x4000, CRC(4ec7e078) SHA1(09a91f85e82efa7f974d1b88c69636a02063d563)) |
| 619 | ROM_CART_LOAD( | |
| 631 | ROM_CART_LOAD( | |
| 620 | 632 | ROM_END |
| 621 | 633 | |
| 622 | 634 | ROM_START(dgama89) |
| r3978 | r3979 | |
| 629 | 641 | ROMX_LOAD("iso.rom",0x0000,0x4000, CRC(2ee3a992) SHA1(2e39995dd032036d33a6dd88a38b750057bca19d), ROM_BIOS(3)) |
| 630 | 642 | ROM_SYSTEM_BIOS(3, "isopolak", "ISO Polak") |
| 631 | 643 | ROMX_LOAD("isopolak.rom",0x0000,0x4000, CRC(5e3f1f66) SHA1(61713117c944fc6afcb96c647bdba5ad36fd6a4b), ROM_BIOS(4)) |
| 632 | ROM_CART_LOAD( | |
| 644 | ROM_CART_LOAD( | |
| 633 | 645 | ROM_END |
| 634 | 646 | |
| 635 | 647 | ROM_START(didakt90) |
| 636 | 648 | ROM_REGION(0x10000,"main",0) |
| 637 | 649 | ROM_LOAD("didakt90.rom",0x0000,0x4000, CRC(76f2db1e) SHA1(daee355a8ee58bc406873c1dd81eecb6161dd4bd)) |
| 638 | ROM_CART_LOAD( | |
| 650 | ROM_CART_LOAD( | |
| 639 | 651 | ROM_END |
| 640 | 652 | |
| 641 | 653 | ROM_START(didakm91) |
| 642 | 654 | ROM_REGION(0x10000,"main",0) |
| 643 | 655 | ROM_LOAD("didakm91.rom",0x0000,0x4000, CRC(beab69b8) SHA1(71d4d1a05fb936f616bcb05c3a276f79343ecd4d)) |
| 644 | ROM_CART_LOAD( | |
| 656 | ROM_CART_LOAD( | |
| 645 | 657 | ROM_END |
| 646 | 658 | |
| 647 | 659 | ROM_START(didaktk) |
| 648 | 660 | ROM_REGION(0x10000,"main",0) |
| 649 | 661 | ROM_LOAD("didaktk.rom",0x0000,0x4000, CRC(8ec8a625) SHA1(cba35517d33a5c97e3d9110f12a417c6c5cdeca8)) |
| 650 | ROM_CART_LOAD( | |
| 662 | ROM_CART_LOAD( | |
| 651 | 663 | ROM_END |
| 652 | 664 | |
| 653 | 665 | ROM_START(didakm93) |
| 654 | 666 | ROM_REGION(0x10000,"main",0) |
| 655 | 667 | ROM_LOAD("didakm93.rom",0x0000,0x4000, CRC(ec274b1b) SHA1(a3470d8d1a996ee2a1ffff8bd8044da6e907e07e)) |
| 656 | ROM_CART_LOAD( | |
| 668 | ROM_CART_LOAD( | |
| 657 | 669 | ROM_END |
| 658 | 670 | |
| 659 | 671 | ROM_START(mistrum) |
| 660 | 672 | ROM_REGION(0x10000,"main",0) |
| 661 | 673 | ROM_LOAD("mistrum.rom",0x0000,0x4000, CRC(d496103e) SHA1(cca1c5b059dc3a29ca4282e8621e34a65efaa1a3)) |
| 662 | ROM_CART_LOAD( | |
| 674 | ROM_CART_LOAD( | |
| 663 | 675 | ROM_END |
| 664 | 676 | |
| 665 | 677 | /* Russian clones */ |
| r3978 | r3979 | |
| 667 | 679 | ROM_START(blitz) |
| 668 | 680 | ROM_REGION(0x10000,"main",0) |
| 669 | 681 | ROM_LOAD("blitz.rom",0x0000,0x4000, CRC(91e535a8) SHA1(14f09d45dc3803cbdb05c33adb28eb12dbad9dd0)) |
| 670 | ROM_CART_LOAD( | |
| 682 | ROM_CART_LOAD( | |
| 671 | 683 | ROM_END |
| 672 | 684 | |
| 673 | 685 | ROM_START(byte) |
| 674 | 686 | ROM_REGION(0x10000,"main",0) |
| 675 | 687 | ROM_LOAD("byte.rom",0x0000,0x4000, CRC(c13ba473) SHA1(99f40727185abbb2413f218d69df021ae2e99e45)) |
| 676 | ROM_CART_LOAD( | |
| 688 | ROM_CART_LOAD( | |
| 677 | 689 | ROM_END |
| 678 | 690 | |
| 679 | 691 | ROM_START(orizon) |
| 680 | 692 | ROM_REGION(0x10000,"main",0) |
| 681 | 693 | ROM_LOAD("orizon.rom",0x0000,0x4000, CRC(ed4d9787) SHA1(3e8b29862e06be03344393c320a64a109fd9aff5)) |
| 682 | ROM_CART_LOAD( | |
| 694 | ROM_CART_LOAD( | |
| 683 | 695 | ROM_END |
| 684 | 696 | |
| 685 | 697 | ROM_START(quorum48) |
| 686 | 698 | ROM_REGION(0x10000,"main",0) |
| 687 | 699 | ROM_LOAD("quorum48.rom",0x0000,0x4000, CRC(48085b0e) SHA1(8e01581643f7bdfa773f68207a6437911b631e53)) |
| 688 | ROM_CART_LOAD( | |
| 700 | ROM_CART_LOAD( | |
| 689 | 701 | ROM_END |
| 690 | 702 | |
| 691 | 703 | ROM_START(magic6) |
| 692 | 704 | ROM_REGION(0x10000,"main",0) |
| 693 | 705 | ROM_LOAD("magic6.rom",0x0000,0x4000, CRC(cb63ae06) SHA1(533ad1f50534e6bdeec50eb5a9a4976c3d010dc7)) |
| 694 | ROM_CART_LOAD( | |
| 706 | ROM_CART_LOAD( | |
| 695 | 707 | ROM_END |
| 696 | 708 | |
| 697 | 709 | ROM_START(compani1) |
| 698 | 710 | ROM_REGION(0x10000,"main",0) |
| 699 | 711 | ROM_LOAD("compani1.rom",0x0000,0x4000, CRC(bcfa6068) SHA1(40074b55c91a947698598e9d6ac5b8495e8cc840)) |
| 700 | ROM_CART_LOAD( | |
| 712 | ROM_CART_LOAD( | |
| 701 | 713 | ROM_END |
| 702 | 714 | |
| 703 | SYSTEM_CONFIG_START(spectrum) | |
| 704 | CONFIG_DEVICE(cartslot_device_getinfo) | |
| 705 | SYSTEM_CONFIG_END | |
| 706 | ||
| 707 | 715 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME */ |
| 708 | COMP( 1982, spectrum, 0, 0, spectrum, spectrum, 0, spectrum, "Sinclair Research", "ZX Spectrum" , 0) | |
| 709 | COMP( 1987, spec80k, spectrum, 0, spectrum, spectrum, 0, spectrum, "", "ZX Spectrum 80K" , GAME_COMPUTER_MODIFIED) | |
| 710 | COMP( 1995, specide, spectrum, 0, spectrum, spectrum, 0, spectrum, "", "ZX Spectrum IDE" , GAME_COMPUTER_MODIFIED) | |
| 711 | COMP( 1986, inves, spectrum, 0, spectrum, spectrum, 0, spectrum, "Investronica", "Inves Spectrum 48K+" , 0) | |
| 712 | COMP( 1985, tk90x, spectrum, 0, spectrum, spectrum, 0, spectrum, "Micro Digital", "TK-90x Color Computer" , 0) | |
| 713 | COMP( 1986, tk95, spectrum, 0, spectrum, spectrum, 0, spectrum, "Micro Digital", "TK-95 Color Computer" , 0) | |
| 714 | COMP( 1985, hc85, spectrum, 0, spectrum, spectrum, 0, spectrum, "ICE-Felix", "HC-85" , 0) | |
| 715 | COMP( 1990, hc90, spectrum, 0, spectrum, spectrum, 0, spectrum, "ICE-Felix", "HC-90" , 0) | |
| 716 | COMP( 1991, hc91, spectrum, 0, spectrum, spectrum, 0, spectrum, "ICE-Felix", "HC-91" , 0) | |
| 717 | COMP( 1988, cip03, spectrum, 0, spectrum, spectrum, 0, spectrum, "Electronica", "CIP-03" , 0) | |
| 718 | COMP( 1990, jet, spectrum, 0, spectrum, spectrum, 0, spectrum, "Electromagnetica", "JET" , 0) | |
| 719 | COMP( 1987, dgama87, spectrum, 0, spectrum, spectrum, 0, spectrum, "Didaktik Skalica", "Didaktik Gama 87" , 0) | |
| 720 | COMP( 1988, dgama88, spectrum, 0, spectrum, spectrum, 0, spectrum, "Didaktik Skalica", "Didaktik Gama 88" , 0) | |
| 721 | COMP( 1989, dgama89, spectrum, 0, spectrum, spectrum, 0, spectrum, "Didaktik Skalica", "Didaktik Gama 89" , 0) | |
| 722 | COMP( 1990, didakt90, spectrum, 0, spectrum, spectrum, 0, spectrum, "Didaktik Skalica", "Didaktik 90" , 0) | |
| 723 | COMP( 1991, didakm91, spectrum, 0, spectrum, spectrum, 0, spectrum, "Didaktik Skalica", "Didaktik M 91" , 0) | |
| 724 | COMP( 1992, didaktk, spectrum, 0, spectrum, spectrum, 0, spectrum, "Didaktik Skalica", "Didaktik Kompakt" , 0) | |
| 725 | COMP( 1993, didakm93, spectrum, 0, spectrum, spectrum, 0, spectrum, "Didaktik Skalica", "Didaktik M 93" , 0) | |
| 726 | COMP( 1988, mistrum, spectrum, 0, spectrum, spectrum, 0, spectrum, "Amaterske RADIO", "Mistrum" , 0) | |
| 727 | COMP( 1990, blitz, spectrum, 0, spectrum, spectrum, 0, spectrum, "", "Blic" , 0) | |
| 728 | COMP( 1990, byte, spectrum, 0, spectrum, spectrum, 0, spectrum, "", "Byte" , 0) | |
| 729 | COMP( 199?, orizon, spectrum, 0, spectrum, spectrum, 0, spectrum, "", "Orizon-Micro" , 0) | |
| 730 | COMP( 1993, quorum48, spectrum, 0, spectrum, spectrum, 0, spectrum, "", "Kvorum 48K" , 0) | |
| 731 | COMP( 1993, magic6, spectrum, 0, spectrum, spectrum, 0, spectrum, "", "Magic 6" , 0) | |
| 732 | COMP( 1990, compani1, spectrum, 0, spectrum, spectrum, 0, spectrum, "", "Kompanion 1" , 0) | |
| 716 | COMP( 1982, spectrum, 0, 0, spectrum, spectrum, 0, 0, "Sinclair Research", "ZX Spectrum" , 0) | |
| 717 | COMP( 1987, spec80k, spectrum, 0, spectrum, spectrum, 0, 0, "", "ZX Spectrum 80K" , GAME_COMPUTER_MODIFIED) | |
| 718 | COMP( 1995, specide, spectrum, 0, spectrum, spectrum, 0, 0, "", "ZX Spectrum IDE" , GAME_COMPUTER_MODIFIED) | |
| 719 | COMP( 1986, inves, spectrum, 0, spectrum, spectrum, 0, 0, "Investronica", "Inves Spectrum 48K+" , 0) | |
| 720 | COMP( 1985, tk90x, spectrum, 0, spectrum, spectrum, 0, 0, "Micro Digital", "TK-90x Color Computer" , 0) | |
| 721 | COMP( 1986, tk95, spectrum, 0, spectrum, spectrum, 0, 0, "Micro Digital", "TK-95 Color Computer" , 0) | |
| 722 | COMP( 1985, hc85, spectrum, 0, spectrum, spectrum, 0, 0, "ICE-Felix", "HC-85" , 0) | |
| 723 | COMP( 1990, hc90, spectrum, 0, spectrum, spectrum, 0, 0, "ICE-Felix", "HC-90" , 0) | |
| 724 | COMP( 1991, hc91, spectrum, 0, spectrum, spectrum, 0, 0, "ICE-Felix", "HC-91" , 0) | |
| 725 | COMP( 1988, cip03, spectrum, 0, spectrum, spectrum, 0, 0, "Electronica", "CIP-03" , 0) | |
| 726 | COMP( 1990, jet, spectrum, 0, spectrum, spectrum, 0, 0, "Electromagnetica", "JET" , 0) | |
| 727 | COMP( 1987, dgama87, spectrum, 0, spectrum, spectrum, 0, 0, "Didaktik Skalica", "Didaktik Gama 87" , 0) | |
| 728 | COMP( 1988, dgama88, spectrum, 0, spectrum, spectrum, 0, 0, "Didaktik Skalica", "Didaktik Gama 88" , 0) | |
| 729 | COMP( 1989, dgama89, spectrum, 0, spectrum, spectrum, 0, 0, "Didaktik Skalica", "Didaktik Gama 89" , 0) | |
| 730 | COMP( 1990, didakt90, spectrum, 0, spectrum, spectrum, 0, 0, "Didaktik Skalica", "Didaktik 90" , 0) | |
| 731 | COMP( 1991, didakm91, spectrum, 0, spectrum, spectrum, 0, 0, "Didaktik Skalica", "Didaktik M 91" , 0) | |
| 732 | COMP( 1992, didaktk, spectrum, 0, spectrum, spectrum, 0, 0, "Didaktik Skalica", "Didaktik Kompakt" , 0) | |
| 733 | COMP( 1993, didakm93, spectrum, 0, spectrum, spectrum, 0, 0, "Didaktik Skalica", "Didaktik M 93" , 0) | |
| 734 | COMP( 1988, mistrum, spectrum, 0, spectrum, spectrum, 0, 0, "Amaterske RADIO", "Mistrum" , 0) | |
| 735 | COMP( 1990, blitz, spectrum, 0, spectrum, spectrum, 0, 0, "", "Blic" , 0) | |
| 736 | COMP( 1990, byte, spectrum, 0, spectrum, spectrum, 0, 0, "", "Byte" , 0) | |
| 737 | COMP( 199?, orizon, spectrum, 0, spectrum, spectrum, 0, 0, "", "Orizon-Micro" , 0) | |
| 738 | COMP( 1993, quorum48, spectrum, 0, spectrum, spectrum, 0, 0, "", "Kvorum 48K" , 0) | |
| 739 | COMP( 1993, magic6, spectrum, 0, spectrum, spectrum, 0, 0, "", "Magic 6" , 0) | |
| 740 | COMP( 1990, compani1, spectrum, 0, spectrum, spectrum, 0, 0, "", "Kompanion 1" , 0) |
| r3978 | r3979 | |
|---|---|---|
| 167 | 167 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 168 | 168 | MDRV_SOUND_ADD("astrocade", ASTROCADE, ASTROCADE_CLOCK/4) |
| 169 | 169 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) |
| 170 | ||
| 171 | MDRV_CARTSLOT_ADD("cart", default_cartslot) | |
| 170 | 172 | MACHINE_DRIVER_END |
| 171 | 173 | |
| 172 | 174 | |
| r3978 | r3979 | |
| 180 | 182 | ROM_START( astrocde ) |
| 181 | 183 | ROM_REGION( 0x10000, "main", 0 ) |
| 182 | 184 | ROM_LOAD( "astro.bin", 0x0000, 0x2000, CRC(ebc77f3a) SHA1(b902c941997c9d150a560435bf517c6a28137ecc)) |
| 183 | ROM_CART_LOAD( | |
| 185 | ROM_CART_LOAD( | |
| 184 | 186 | ROM_END |
| 185 | 187 | |
| 186 | 188 | ROM_START( astrocdw ) |
| 187 | 189 | ROM_REGION( 0x10000, "main", 0 ) |
| 188 | 190 | ROM_LOAD( "bioswhit.bin", 0x0000, 0x2000, CRC(6eb53e79) SHA1(d84341feec1a0a0e8aa6151b649bc3cf6ef69fbf)) |
| 189 | ROM_CART_LOAD( | |
| 191 | ROM_CART_LOAD( | |
| 190 | 192 | ROM_END |
| 191 | 193 | |
| 192 | ||
| 193 | ||
| 194 | 194 | /************************************* |
| 195 | 195 | * |
| 196 | * System configs | |
| 197 | * | |
| 198 | *************************************/ | |
| 199 | ||
| 200 | static SYSTEM_CONFIG_START(astrocde) | |
| 201 | CONFIG_DEVICE(cartslot_device_getinfo) | |
| 202 | SYSTEM_CONFIG_END | |
| 203 | ||
| 204 | ||
| 205 | ||
| 206 | /************************************* | |
| 207 | * | |
| 208 | 196 | * Driver initialization |
| 209 | 197 | * |
| 210 | 198 | *************************************/ |
| r3978 | r3979 | |
| 223 | 211 | *************************************/ |
| 224 | 212 | |
| 225 | 213 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME FLAGS */ |
| 226 | CONS( 1978, astrocde, 0, 0, astrocde, astrocde, astrocde, astrocde, "Bally Manufacturing", "Bally Professional Arcade", GAME_SUPPORTS_SAVE ) | |
| 227 | CONS( 1977, astrocdw, astrocde, 0, astrocde, astrocde, astrocde, astrocde, "Bally Manufacturing", "Bally Computer System", GAME_SUPPORTS_SAVE ) | |
| 214 | CONS( 1978, astrocde, 0, 0, astrocde, astrocde, astrocde, 0, "Bally Manufacturing", "Bally Professional Arcade", GAME_SUPPORTS_SAVE ) | |
| 215 | CONS( 1977, astrocdw, astrocde, 0, astrocde, astrocde, astrocde, 0, "Bally Manufacturing", "Bally Computer System", GAME_SUPPORTS_SAVE ) |
| r3978 | r3979 | |
|---|---|---|
| 1013 | 1013 | CASSETTE_STOPPED | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_ENABLED |
| 1014 | 1014 | }; |
| 1015 | 1015 | |
| 1016 | ||
| 1017 | static DEVICE_IMAGE_LOAD( super80_cart ) | |
| 1018 | { | |
| 1019 | image_fread(image, memory_region(image->machine, "main") + 0xc000, 0x3000); | |
| 1020 | ||
| 1021 | return INIT_PASS; | |
| 1022 | } | |
| 1023 | ||
| 1024 | static const cartslot_interface super80_cartslot = | |
| 1025 | { | |
| 1026 | "rom", | |
| 1027 | 0, | |
| 1028 | NULL, | |
| 1029 | DEVICE_IMAGE_LOAD_NAME(super80_cart), | |
| 1030 | NULL, | |
| 1031 | NULL | |
| 1032 | }; | |
| 1033 | ||
| 1016 | 1034 | static MACHINE_DRIVER_START( super80 ) |
| 1017 | 1035 | /* basic machine hardware */ |
| 1018 | 1036 | MDRV_CPU_ADD("main", Z80, MASTER_CLOCK/6) /* 2 MHz */ |
| r3978 | r3979 | |
| 1048 | 1066 | MDRV_Z80BIN_QUICKLOAD_ADD(default, 1) |
| 1049 | 1067 | |
| 1050 | 1068 | MDRV_CASSETTE_ADD( "cassette", super80_cassette_config ) |
| 1069 | ||
| 1070 | MDRV_CARTSLOT_ADD("cart", super80_cartslot ) | |
| 1051 | 1071 | MACHINE_DRIVER_END |
| 1052 | 1072 | |
| 1053 | 1073 | static MACHINE_DRIVER_START( super80d ) |
| r3978 | r3979 | |
| 1214 | 1234 | ROM_LOAD("s80hmce.ic24", 0xf000, 0x0800, CRC(a6488a1e) SHA1(7ba613d70a37a6b738dcd80c2bb9988ff1f011ef) ) |
| 1215 | 1235 | ROM_END |
| 1216 | 1236 | |
| 1217 | /**************************** DEVICES *****************************************************************/ | |
| 1218 | ||
| 1219 | static DEVICE_IMAGE_LOAD( super80_cart ) | |
| 1220 | { | |
| 1221 | image_fread(image, memory_region(image->machine, "main") + 0xc000, 0x3000); | |
| 1222 | ||
| 1223 | return INIT_PASS; | |
| 1224 | } | |
| 1225 | ||
| 1226 | static void super80_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) | |
| 1227 | { | |
| 1228 | /* cartslot */ | |
| 1229 | switch(state) | |
| 1230 | { | |
| 1231 | /* --- the following bits of info are returned as 64-bit signed integers --- */ | |
| 1232 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 1233 | ||
| 1234 | /* --- the following bits of info are returned as pointers to data or functions --- */ | |
| 1235 | case MESS_DEVINFO_PTR_LOAD: info->load = DEVICE_IMAGE_LOAD_NAME(super80_cart); break; | |
| 1236 | ||
| 1237 | /* --- the following bits of info are returned as NULL-terminated strings --- */ | |
| 1238 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "rom"); break; | |
| 1239 | ||
| 1240 | default: cartslot_device_getinfo(devclass, state, info); break; | |
| 1241 | } | |
| 1242 | } | |
| 1243 | ||
| 1244 | static SYSTEM_CONFIG_START(super80) | |
| 1245 | CONFIG_DEVICE(super80_cartslot_getinfo) | |
| 1246 | SYSTEM_CONFIG_END | |
| 1247 | ||
| 1248 | 1237 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME */ |
| 1249 | COMP( 1981, super80, 0, 0, super80, super80, super80, super80, "Dick Smith Electronics","Super-80 (V1.2)" , 0) | |
| 1250 | COMP( 1981, super80d, super80, 0, super80d, super80d, super80d, super80, "Dick Smith Electronics","Super-80 (V2.2)" , 0) | |
| 1251 | COMP( 1981, super80e, super80, 0, super80d, super80d, super80, super80, "Dick Smith Electronics","Super-80 (El Graphix 4)" , 0) | |
| 1252 | COMP( 1981, super80m, super80, 0, super80m, super80m, super80d, super80, "Dick Smith Electronics","Super-80 (8R0)" , 0) | |
| 1253 | COMP( 1981, super80r, super80, 0, super80r, super80r, super80v, super80, "Dick Smith Electronics","Super-80 (with VDUEB)" , 0) | |
| 1254 | COMP( 1981, super80v, super80, 0, super80v, super80v, super80v, super80, "Dick Smith Electronics","Super-80 (with enhanced VDUEB)" , 0) | |
| 1238 | COMP( 1981, super80, 0, 0, super80, super80, super80, 0, "Dick Smith Electronics","Super-80 (V1.2)" , 0) | |
| 1239 | COMP( 1981, super80d, super80, 0, super80d, super80d, super80d, 0, "Dick Smith Electronics","Super-80 (V2.2)" , 0) | |
| 1240 | COMP( 1981, super80e, super80, 0, super80d, super80d, super80, 0, "Dick Smith Electronics","Super-80 (El Graphix 4)" , 0) | |
| 1241 | COMP( 1981, super80m, super80, 0, super80m, super80m, super80d, 0, "Dick Smith Electronics","Super-80 (8R0)" , 0) | |
| 1242 | COMP( 1981, super80r, super80, 0, super80r, super80r, super80v, 0, "Dick Smith Electronics","Super-80 (with VDUEB)" , 0) | |
| 1243 | COMP( 1981, super80v, super80, 0, super80v, super80v, super80v, 0, "Dick Smith Electronics","Super-80 (with enhanced VDUEB)" , 0) | |
| 1255 | 1244 |
| r3978 | r3979 | |
|---|---|---|
| 79 | 79 | n64_machine_reset(machine); |
| 80 | 80 | } |
| 81 | 81 | |
| 82 | static MACHINE_DRIVER_START( n64 ) | |
| 83 | /* basic machine hardware */ | |
| 84 | MDRV_CPU_ADD("main", R4600BE, 93750000) | |
| 85 | MDRV_CPU_CONFIG(config) | |
| 86 | MDRV_CPU_PROGRAM_MAP(n64_map, 0) | |
| 87 | MDRV_CPU_VBLANK_INT("main", n64_vblank) | |
| 88 | ||
| 89 | MDRV_CPU_ADD("rsp", RSP, 62500000) | |
| 90 | MDRV_CPU_CONFIG(n64_rsp_config) | |
| 91 | MDRV_CPU_PROGRAM_MAP(rsp_map, 0) | |
| 92 | ||
| 93 | MDRV_MACHINE_RESET( n64 ) | |
| 94 | MDRV_QUANTUM_TIME(HZ(600)) | |
| 95 | ||
| 96 | /* video hardware */ | |
| 97 | MDRV_SCREEN_ADD("main", RASTER) | |
| 98 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 99 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 100 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) | |
| 101 | MDRV_SCREEN_SIZE(640, 525) | |
| 102 | MDRV_SCREEN_VISIBLE_AREA(0, 639, 0, 239) | |
| 103 | MDRV_PALETTE_LENGTH(0x1000) | |
| 104 | ||
| 105 | MDRV_VIDEO_START(n64) | |
| 106 | MDRV_VIDEO_UPDATE(n64) | |
| 107 | ||
| 108 | MDRV_SPEAKER_STANDARD_STEREO("left", "right") | |
| 109 | ||
| 110 | MDRV_SOUND_ADD("dmadac.l", DMADAC, 0) | |
| 111 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "left", 1.0) | |
| 112 | MDRV_SOUND_ADD("dmadac.r", DMADAC, 0) | |
| 113 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "right", 1.0) | |
| 114 | MACHINE_DRIVER_END | |
| 115 | ||
| 116 | #ifdef UNUSED_FUNCTION | |
| 117 | DRIVER_INIT( n64 ) | |
| 118 | { | |
| 119 | } | |
| 120 | #endif | |
| 121 | ||
| 122 | ROM_START( n64) | |
| 123 | ROM_REGION( 0x800000, "main", ROMREGION_ERASEFF ) /* dummy region for R4300 */ | |
| 124 | ROM_REGION32_BE( 0x800, "user1", 0 ) | |
| 125 | ROM_LOAD( "pifdata.bin", 0x0000, 0x0800, CRC(5ec82be9) SHA1(9174eadc0f0ea2654c95fd941406ab46b9dc9bdd) ) | |
| 126 | ROM_REGION32_BE( 0x4000000, "user2", ROMREGION_ERASEFF) | |
| 127 | ROM_END | |
| 128 | ||
| 129 | 82 | static DEVICE_IMAGE_LOAD(n64_cart) |
| 130 | 83 | { |
| 131 | 84 | int i, length; |
| r3978 | r3979 | |
| 166 | 119 | return INIT_PASS; |
| 167 | 120 | } |
| 168 | 121 | |
| 169 | static | |
| 122 | static co | |
| 170 | 123 | { |
| 171 | /* cartslot */ | |
| 172 | switch(state) | |
| 173 | { | |
| 174 | /* --- the following bits of info are returned as 64-bit signed integers --- */ | |
| 175 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 176 | case MESS_DEVINFO_INT_MUST_BE_LOADED: info->i = 1; break; | |
| 124 | "v64,z64,rom,n64,bin", | |
| 125 | 1, | |
| 126 | NULL, | |
| 127 | DEVICE_IMAGE_LOAD_NAME(n64_cart), | |
| 128 | NULL, | |
| 129 | NULL | |
| 130 | }; | |
| 177 | 131 | |
| 178 | /* --- the following bits of info are returned as pointers to data or functions --- */ | |
| 179 | case MESS_DEVINFO_PTR_LOAD: info->load = DEVICE_IMAGE_LOAD_NAME(n64_cart); break; | |
| 132 | static MACHINE_DRIVER_START( n64 ) | |
| 133 | /* basic machine hardware */ | |
| 134 | MDRV_CPU_ADD("main", R4600BE, 93750000) | |
| 135 | MDRV_CPU_CONFIG(config) | |
| 136 | MDRV_CPU_PROGRAM_MAP(n64_map, 0) | |
| 137 | MDRV_CPU_VBLANK_INT("main", n64_vblank) | |
| 180 | 138 | |
| 181 | /* --- the following bits of info are returned as NULL-terminated strings --- */ | |
| 182 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "v64,z64,rom,n64,bin"); break; | |
| 139 | MDRV_CPU_ADD("rsp", RSP, 62500000) | |
| 140 | MDRV_CPU_CONFIG(n64_rsp_config) | |
| 141 | MDRV_CPU_PROGRAM_MAP(rsp_map, 0) | |
| 183 | 142 | |
| 184 | default: cartslot_device_getinfo(devclass, state, info); break; | |
| 185 | } | |
| 186 | } | |
| 143 | MDRV_MACHINE_RESET( n64 ) | |
| 144 | MDRV_QUANTUM_TIME(HZ(600)) | |
| 187 | 145 | |
| 188 | static SYSTEM_CONFIG_START(n64) | |
| 189 | CONFIG_DEVICE(n64_cartslot_getinfo) | |
| 190 | SYSTEM_CONFIG_END | |
| 146 | /* video hardware */ | |
| 147 | MDRV_SCREEN_ADD("main", RASTER) | |
| 148 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 149 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 150 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) | |
| 151 | MDRV_SCREEN_SIZE(640, 525) | |
| 152 | MDRV_SCREEN_VISIBLE_AREA(0, 639, 0, 239) | |
| 153 | MDRV_PALETTE_LENGTH(0x1000) | |
| 191 | 154 | |
| 155 | MDRV_VIDEO_START(n64) | |
| 156 | MDRV_VIDEO_UPDATE(n64) | |
| 192 | 157 | |
| 193 | CONS(1996, n64, 0, 0, n64, n64, 0, n64, "Nintendo", "Nintendo 64", 0 ) | |
| 158 | MDRV_SPEAKER_STANDARD_STEREO("left", "right") | |
| 159 | ||
| 160 | MDRV_SOUND_ADD("dmadac.l", DMADAC, 0) | |
| 161 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "left", 1.0) | |
| 162 | MDRV_SOUND_ADD("dmadac.r", DMADAC, 0) | |
| 163 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "right", 1.0) | |
| 164 | ||
| 165 | MDRV_CARTSLOT_ADD("cart", n64_cartslot ) | |
| 166 | MACHINE_DRIVER_END | |
| 167 | ||
| 168 | ROM_START( n64) | |
| 169 | ROM_REGION( 0x800000, "main", ROMREGION_ERASEFF ) /* dummy region for R4300 */ | |
| 170 | ROM_REGION32_BE( 0x800, "user1", 0 ) | |
| 171 | ROM_LOAD( "pifdata.bin", 0x0000, 0x0800, CRC(5ec82be9) SHA1(9174eadc0f0ea2654c95fd941406ab46b9dc9bdd) ) | |
| 172 | ROM_REGION32_BE( 0x4000000, "user2", ROMREGION_ERASEFF) | |
| 173 | ROM_END | |
| 174 | ||
| 175 | CONS(1996, n64, 0, 0, n64, n64, 0, 0, "Nintendo", "Nintendo 64", 0 ) |
| r3978 | r3979 | |
|---|---|---|
| 1763 | 1763 | state_save_register_global(machine, ktxd); |
| 1764 | 1764 | } |
| 1765 | 1765 | |
| 1766 | static DEVICE_IMAGE_LOAD( atarist_cart ) | |
| 1767 | { | |
| 1768 | UINT8 *RAM = memory_region(image->machine, "main"); | |
| 1769 | UINT8 *ptr = RAM + 0xfa0000; | |
| 1770 | int filesize = image_length(image); | |
| 1771 | ||
| 1772 | if (filesize <= 128 * 1024) | |
| 1773 | { | |
| 1774 | if (image_fread(image, ptr, filesize) == filesize) | |
| 1775 | { | |
| 1776 | memory_install_readwrite16_handler(cputag_get_address_space(image->machine, "main", ADDRESS_SPACE_PROGRAM), 0xfa0000, 0xfbffff, 0, 0, SMH_BANK3, SMH_BANK3); | |
| 1777 | ||
| 1778 | return INIT_PASS; | |
| 1779 | } | |
| 1780 | } | |
| 1781 | ||
| 1782 | return INIT_FAIL; | |
| 1783 | } | |
| 1784 | ||
| 1785 | static const cartslot_interface atarist_cartslot = | |
| 1786 | { | |
| 1787 | "stc", | |
| 1788 | 0, | |
| 1789 | NULL, | |
| 1790 | DEVICE_IMAGE_LOAD_NAME(atarist_cart), | |
| 1791 | NULL, | |
| 1792 | NULL | |
| 1793 | }; | |
| 1794 | ||
| 1766 | 1795 | static const scc8530_interface atarist_scc8530_interface = |
| 1767 | 1796 | { |
| 1768 | 1797 | NULL |
| r3978 | r3979 | |
| 1808 | 1837 | MDRV_ACIA6850_ADD("acia_1", acia_midi_intf) |
| 1809 | 1838 | |
| 1810 | 1839 | MDRV_WD1772_ADD("wd1772", atarist_wd17xx_interface ) |
| 1840 | ||
| 1841 | MDRV_CARTSLOT_ADD("cart", atarist_cartslot) | |
| 1811 | 1842 | MACHINE_DRIVER_END |
| 1812 | 1843 | |
| 1813 | 1844 | static MACHINE_DRIVER_START( megast ) |
| r3978 | r3979 | |
| 1867 | 1898 | MDRV_ACIA6850_ADD("acia_1", acia_midi_intf) |
| 1868 | 1899 | |
| 1869 | 1900 | MDRV_WD1772_ADD("wd1772", atarist_wd17xx_interface ) |
| 1901 | ||
| 1902 | MDRV_CARTSLOT_ADD("cart", atarist_cartslot) | |
| 1870 | 1903 | MACHINE_DRIVER_END |
| 1871 | 1904 | |
| 1872 | 1905 | static MACHINE_DRIVER_START( megaste ) |
| r3978 | r3979 | |
| 1919 | 1952 | MDRV_ACIA6850_ADD("acia_1", acia_midi_intf) |
| 1920 | 1953 | |
| 1921 | 1954 | MDRV_WD1772_ADD("wd1772", atarist_wd17xx_interface ) |
| 1955 | ||
| 1956 | MDRV_CARTSLOT_ADD("cart", atarist_cartslot) | |
| 1922 | 1957 | MACHINE_DRIVER_END |
| 1923 | 1958 | |
| 1924 | 1959 | /* ROMs */ |
| r3978 | r3979 | |
| 2161 | 2196 | } |
| 2162 | 2197 | } |
| 2163 | 2198 | |
| 2164 | static DEVICE_IMAGE_LOAD( atarist_cart ) | |
| 2165 | { | |
| 2166 | UINT8 *RAM = memory_region(image->machine, "main"); | |
| 2167 | UINT8 *ptr = RAM + 0xfa0000; | |
| 2168 | int filesize = image_length(image); | |
| 2169 | ||
| 2170 | if (filesize <= 128 * 1024) | |
| 2171 | { | |
| 2172 | if (image_fread(image, ptr, filesize) == filesize) | |
| 2173 | { | |
| 2174 | memory_install_readwrite16_handler(cputag_get_address_space(image->machine, "main", ADDRESS_SPACE_PROGRAM), 0xfa0000, 0xfbffff, 0, 0, SMH_BANK3, SMH_BANK3); | |
| 2175 | ||
| 2176 | return INIT_PASS; | |
| 2177 | } | |
| 2178 | } | |
| 2179 | ||
| 2180 | return INIT_FAIL; | |
| 2181 | } | |
| 2182 | ||
| 2183 | static void atarist_cartslot_getinfo( const mess_device_class *devclass, UINT32 state, union devinfo *info ) | |
| 2184 | { | |
| 2185 | switch( state ) | |
| 2186 | { | |
| 2187 | case MESS_DEVINFO_INT_COUNT: | |
| 2188 | info->i = 1; | |
| 2189 | break; | |
| 2190 | case MESS_DEVINFO_PTR_LOAD: | |
| 2191 | info->load = DEVICE_IMAGE_LOAD_NAME(atarist_cart); | |
| 2192 | break; | |
| 2193 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: | |
| 2194 | strcpy(info->s = device_temp_str(), "stc"); | |
| 2195 | break; | |
| 2196 | default: | |
| 2197 | cartslot_device_getinfo( devclass, state, info ); | |
| 2198 | break; | |
| 2199 | } | |
| 2200 | } | |
| 2201 | ||
| 2202 | 2199 | static SYSTEM_CONFIG_START( atarist ) |
| 2203 | 2200 | CONFIG_RAM_DEFAULT(1024 * 1024) // 1040ST |
| 2204 | 2201 | CONFIG_RAM ( 512 * 1024) // 520ST |
| 2205 | 2202 | CONFIG_RAM ( 256 * 1024) // 260ST |
| 2206 | 2203 | CONFIG_DEVICE(atarist_floppy_getinfo) |
| 2207 | 2204 | CONFIG_DEVICE(atarist_serial_getinfo) |
| 2208 | CONFIG_DEVICE(atarist_cartslot_getinfo) | |
| 2209 | 2205 | // MIDI |
| 2210 | 2206 | SYSTEM_CONFIG_END |
| 2211 | 2207 | |
| r3978 | r3979 | |
| 2215 | 2211 | CONFIG_RAM (1024 * 1024) // Mega ST 1 |
| 2216 | 2212 | CONFIG_DEVICE(atarist_floppy_getinfo) |
| 2217 | 2213 | CONFIG_DEVICE(atarist_serial_getinfo) |
| 2218 | CONFIG_DEVICE(atarist_cartslot_getinfo) | |
| 2219 | 2214 | // MIDI |
| 2220 | 2215 | SYSTEM_CONFIG_END |
| 2221 | 2216 | |
| r3978 | r3979 | |
| 2224 | 2219 | CONFIG_RAM ( 512 * 1024) // 520STe |
| 2225 | 2220 | CONFIG_DEVICE(atarist_floppy_getinfo) |
| 2226 | 2221 | CONFIG_DEVICE(atarist_serial_getinfo) |
| 2227 | CONFIG_DEVICE(atarist_cartslot_getinfo) | |
| 2228 | 2222 | // MIDI |
| 2229 | 2223 | SYSTEM_CONFIG_END |
| 2230 | 2224 | |
| r3978 | r3979 | |
| 2234 | 2228 | CONFIG_RAM (1024 * 1024) // Mega STe 1 |
| 2235 | 2229 | CONFIG_DEVICE(atarist_floppy_getinfo) |
| 2236 | 2230 | CONFIG_DEVICE(megaste_serial_getinfo) |
| 2237 | CONFIG_DEVICE(atarist_cartslot_getinfo) | |
| 2238 | 2231 | // MIDI |
| 2239 | 2232 | // LAN |
| 2240 | 2233 | SYSTEM_CONFIG_END |
| r3978 | r3979 | |
| 2244 | 2237 | CONFIG_RAM (1024 * 1024) |
| 2245 | 2238 | CONFIG_DEVICE(atarist_floppy_getinfo) |
| 2246 | 2239 | CONFIG_DEVICE(megaste_serial_getinfo) |
| 2247 | CONFIG_DEVICE(atarist_cartslot_getinfo) | |
| 2248 | 2240 | // MIDI |
| 2249 | 2241 | // IDE Hard Disk |
| 2250 | 2242 | SYSTEM_CONFIG_END |
| r3978 | r3979 | |
|---|---|---|
| 756 | 756 | memory_set_bank(machine, 2, 0); |
| 757 | 757 | } |
| 758 | 758 | |
| 759 | static void sg1000_map_cartridge_memory(running_machine *machine, UINT8 *ptr, int size) | |
| 760 | { | |
| 761 | const address_space *program = cputag_get_address_space(machine, "main", ADDRESS_SPACE_PROGRAM); | |
| 762 | ||
| 763 | switch (size) | |
| 764 | { | |
| 765 | case 40 * 1024: | |
| 766 | memory_install_readwrite8_handler(program, 0x8000, 0x9fff, 0, 0, SMH_BANK1, SMH_UNMAP); | |
| 767 | memory_configure_bank(machine, 1, 0, 1, memory_region(machine, "main") + 0x8000, 0); | |
| 768 | memory_set_bank(machine, 1, 0); | |
| 769 | break; | |
| 770 | ||
| 771 | case 48 * 1024: | |
| 772 | memory_install_readwrite8_handler(program, 0x8000, 0xbfff, 0, 0, SMH_BANK1, SMH_UNMAP); | |
| 773 | memory_configure_bank(machine, 1, 0, 1, memory_region(machine, "main") + 0x8000, 0); | |
| 774 | memory_set_bank(machine, 1, 0); | |
| 775 | break; | |
| 776 | ||
| 777 | default: | |
| 778 | if (IS_CARTRIDGE_TV_DRAW(ptr)) | |
| 779 | { | |
| 780 | memory_install_write8_handler(program, 0x6000, 0x6000, 0, 0, &tvdraw_axis_w); | |
| 781 | memory_install_read8_handler(program, 0x8000, 0x8000, 0, 0, &tvdraw_status_r); | |
| 782 | memory_install_readwrite8_handler(program, 0xa000, 0xa000, 0, 0, &tvdraw_data_r, SMH_NOP); | |
| 783 | } | |
| 784 | else if (IS_CARTRIDGE_THE_CASTLE(ptr)) | |
| 785 | { | |
| 786 | memory_install_readwrite8_handler(program, 0x8000, 0x9fff, 0, 0, SMH_BANK1, SMH_BANK1); | |
| 787 | } | |
| 788 | break; | |
| 789 | } | |
| 790 | } | |
| 791 | ||
| 792 | static DEVICE_IMAGE_LOAD( sg1000_cart ) | |
| 793 | { | |
| 794 | const address_space *program = cputag_get_address_space(image->machine, "main", ADDRESS_SPACE_PROGRAM); | |
| 795 | int size = image_length(image); | |
| 796 | UINT8 *ptr = memory_region(image->machine, "main"); | |
| 797 | ||
| 798 | if (image_fread(image, ptr, size ) != size) | |
| 799 | { | |
| 800 | return INIT_FAIL; | |
| 801 | } | |
| 802 | ||
| 803 | /* cartridge ROM banking */ | |
| 804 | sg1000_map_cartridge_memory(image->machine, ptr, size); | |
| 805 | ||
| 806 | /* work RAM banking */ | |
| 807 | memory_install_readwrite8_handler(program, 0xc000, 0xc3ff, 0, 0x3c00, SMH_BANK2, SMH_BANK2); | |
| 808 | ||
| 809 | return INIT_PASS; | |
| 810 | } | |
| 811 | ||
| 812 | static const cartslot_interface sg1000_cartslot = | |
| 813 | { | |
| 814 | "sg,bin", | |
| 815 | 1, | |
| 816 | NULL, | |
| 817 | DEVICE_IMAGE_LOAD_NAME(sg1000_cart), | |
| 818 | NULL, | |
| 819 | NULL | |
| 820 | }; | |
| 821 | ||
| 822 | static void sc3000_map_cartridge_memory(running_machine *machine, UINT8 *ptr, int size) | |
| 823 | { | |
| 824 | const address_space *program = cputag_get_address_space(machine, "main", ADDRESS_SPACE_PROGRAM); | |
| 825 | ||
| 826 | /* include SG-1000 mapping */ | |
| 827 | sg1000_map_cartridge_memory(machine, ptr, size); | |
| 828 | ||
| 829 | if (IS_CARTRIDGE_BASIC_LEVEL_III(ptr)) | |
| 830 | { | |
| 831 | memory_install_readwrite8_handler(program, 0x8000, 0xbfff, 0, 0, SMH_BANK1, SMH_BANK1); | |
| 832 | memory_install_readwrite8_handler(program, 0xc000, 0xffff, 0, 0, SMH_BANK2, SMH_BANK2); | |
| 833 | } | |
| 834 | else if (IS_CARTRIDGE_MUSIC_EDITOR(ptr)) | |
| 835 | { | |
| 836 | memory_install_readwrite8_handler(program, 0x8000, 0x9fff, 0, 0, SMH_BANK1, SMH_BANK1); | |
| 837 | memory_install_readwrite8_handler(program, 0xc000, 0xc7ff, 0, 0x3800, SMH_BANK2, SMH_BANK2); | |
| 838 | } | |
| 839 | else | |
| 840 | { | |
| 841 | /* regular cartridges */ | |
| 842 | memory_install_readwrite8_handler(program, 0xc000, 0xc7ff, 0, 0x3800, SMH_BANK2, SMH_BANK2); | |
| 843 | } | |
| 844 | } | |
| 845 | ||
| 846 | static DEVICE_IMAGE_LOAD( sc3000_cart ) | |
| 847 | { | |
| 848 | // const address_space *program = cputag_get_address_space(image->machine, "main", ADDRESS_SPACE_PROGRAM); | |
| 849 | int size = image_length(image); | |
| 850 | UINT8 *ptr = memory_region(image->machine, "main"); | |
| 851 | ||
| 852 | if (image_fread(image, ptr, size ) != size) | |
| 853 | { | |
| 854 | return INIT_FAIL; | |
| 855 | } | |
| 856 | ||
| 857 | /* cartridge ROM and work RAM banking */ | |
| 858 | sc3000_map_cartridge_memory(image->machine, ptr, size); | |
| 859 | ||
| 860 | return INIT_PASS; | |
| 861 | } | |
| 862 | ||
| 863 | static const cartslot_interface sc3000_cartslot = | |
| 864 | { | |
| 865 | "sg,sc,bin", | |
| 866 | 1, | |
| 867 | NULL, | |
| 868 | DEVICE_IMAGE_LOAD_NAME(sc3000_cart), | |
| 869 | NULL, | |
| 870 | NULL | |
| 871 | }; | |
| 872 | ||
| 873 | static const cartslot_interface omv_cartslot = | |
| 874 | { | |
| 875 | "sg,bin", | |
| 876 | 0, | |
| 877 | NULL, | |
| 878 | DEVICE_IMAGE_LOAD_NAME(sg1000_cart), | |
| 879 | NULL, | |
| 880 | NULL | |
| 881 | }; | |
| 882 | ||
| 759 | 883 | /* Machine Drivers */ |
| 760 | 884 | |
| 761 | 885 | static MACHINE_DRIVER_START( sg1000 ) |
| r3978 | r3979 | |
| 779 | 903 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 780 | 904 | MDRV_SOUND_ADD("sn76489an", SN76489A, XTAL_10_738635MHz/3) |
| 781 | 905 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) |
| 906 | ||
| 907 | MDRV_CARTSLOT_ADD("cart", sg1000_cartslot ) | |
| 782 | 908 | MACHINE_DRIVER_END |
| 783 | 909 | |
| 784 | 910 | static MACHINE_DRIVER_START( omv ) |
| 785 | 911 | MDRV_IMPORT_FROM(sg1000) |
| 912 | ||
| 913 | MDRV_CARTSLOT_MODIFY("cart", omv_cartslot ) | |
| 786 | 914 | MACHINE_DRIVER_END |
| 787 | 915 | |
| 788 | 916 | static const cassette_config sc3000_cassette_config = |
| r3978 | r3979 | |
| 821 | 949 | |
| 822 | 950 | /* cassette */ |
| 823 | 951 | MDRV_CASSETTE_ADD( "cassette", sc3000_cassette_config ) |
| 952 | ||
| 953 | MDRV_CARTSLOT_ADD("cart", sc3000_cartslot ) | |
| 824 | 954 | MACHINE_DRIVER_END |
| 825 | 955 | |
| 826 | 956 | static MACHINE_DRIVER_START( sf7000 ) |
| r3978 | r3979 | |
| 898 | 1028 | |
| 899 | 1029 | /* System Configuration */ |
| 900 | 1030 | |
| 901 | static void sg1000_map_cartridge_memory(running_machine *machine, UINT8 *ptr, int size) | |
| 902 | { | |
| 903 | const address_space *program = cputag_get_address_space(machine, "main", ADDRESS_SPACE_PROGRAM); | |
| 904 | ||
| 905 | switch (size) | |
| 906 | { | |
| 907 | case 40 * 1024: | |
| 908 | memory_install_readwrite8_handler(program, 0x8000, 0x9fff, 0, 0, SMH_BANK1, SMH_UNMAP); | |
| 909 | memory_configure_bank(machine, 1, 0, 1, memory_region(machine, "main") + 0x8000, 0); | |
| 910 | memory_set_bank(machine, 1, 0); | |
| 911 | break; | |
| 912 | ||
| 913 | case 48 * 1024: | |
| 914 | memory_install_readwrite8_handler(program, 0x8000, 0xbfff, 0, 0, SMH_BANK1, SMH_UNMAP); | |
| 915 | memory_configure_bank(machine, 1, 0, 1, memory_region(machine, "main") + 0x8000, 0); | |
| 916 | memory_set_bank(machine, 1, 0); | |
| 917 | break; | |
| 918 | ||
| 919 | default: | |
| 920 | if (IS_CARTRIDGE_TV_DRAW(ptr)) | |
| 921 | { | |
| 922 | memory_install_write8_handler(program, 0x6000, 0x6000, 0, 0, &tvdraw_axis_w); | |
| 923 | memory_install_read8_handler(program, 0x8000, 0x8000, 0, 0, &tvdraw_status_r); | |
| 924 | memory_install_readwrite8_handler(program, 0xa000, 0xa000, 0, 0, &tvdraw_data_r, SMH_NOP); | |
| 925 | } | |
| 926 | else if (IS_CARTRIDGE_THE_CASTLE(ptr)) | |
| 927 | { | |
| 928 | memory_install_readwrite8_handler(program, 0x8000, 0x9fff, 0, 0, SMH_BANK1, SMH_BANK1); | |
| 929 | } | |
| 930 | break; | |
| 931 | } | |
| 932 | } | |
| 933 | ||
| 934 | static DEVICE_IMAGE_LOAD( sg1000_cart ) | |
| 935 | { | |
| 936 | const address_space *program = cputag_get_address_space(image->machine, "main", ADDRESS_SPACE_PROGRAM); | |
| 937 | int size = image_length(image); | |
| 938 | UINT8 *ptr = memory_region(image->machine, "main"); | |
| 939 | ||
| 940 | if (image_fread(image, ptr, size ) != size) | |
| 941 | { | |
| 942 | return INIT_FAIL; | |
| 943 | } | |
| 944 | ||
| 945 | /* cartridge ROM banking */ | |
| 946 | sg1000_map_cartridge_memory(image->machine, ptr, size); | |
| 947 | ||
| 948 | /* work RAM banking */ | |
| 949 | memory_install_readwrite8_handler(program, 0xc000, 0xc3ff, 0, 0x3c00, SMH_BANK2, SMH_BANK2); | |
| 950 | ||
| 951 | return INIT_PASS; | |
| 952 | } | |
| 953 | ||
| 954 | static void sg1000_cartslot_getinfo( const mess_device_class *devclass, UINT32 state, union devinfo *info ) | |
| 955 | { | |
| 956 | switch( state ) | |
| 957 | { | |
| 958 | /* --- the following bits of info are returned as 64-bit signed integers --- */ | |
| 959 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 960 | case MESS_DEVINFO_INT_MUST_BE_LOADED: info->i = 1; break; | |
| 961 | ||
| 962 | /* --- the following bits of info are returned as pointers to data or functions --- */ | |
| 963 | case MESS_DEVINFO_PTR_LOAD: info->load = DEVICE_IMAGE_LOAD_NAME(sg1000_cart); break; | |
| 964 | ||
| 965 | /* --- the following bits of info are returned as NULL-terminated strings --- */ | |
| 966 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "sg,bin"); break; | |
| 967 | ||
| 968 | default: cartslot_device_getinfo( devclass, state, info ); break; | |
| 969 | } | |
| 970 | } | |
| 971 | ||
| 972 | static void sc3000_map_cartridge_memory(running_machine *machine, UINT8 *ptr, int size) | |
| 973 | { | |
| 974 | const address_space *program = cputag_get_address_space(machine, "main", ADDRESS_SPACE_PROGRAM); | |
| 975 | ||
| 976 | /* include SG-1000 mapping */ | |
| 977 | sg1000_map_cartridge_memory(machine, ptr, size); | |
| 978 | ||
| 979 | if (IS_CARTRIDGE_BASIC_LEVEL_III(ptr)) | |
| 980 | { | |
| 981 | memory_install_readwrite8_handler(program, 0x8000, 0xbfff, 0, 0, SMH_BANK1, SMH_BANK1); | |
| 982 | memory_install_readwrite8_handler(program, 0xc000, 0xffff, 0, 0, SMH_BANK2, SMH_BANK2); | |
| 983 | } | |
| 984 | else if (IS_CARTRIDGE_MUSIC_EDITOR(ptr)) | |
| 985 | { | |
| 986 | memory_install_readwrite8_handler(program, 0x8000, 0x9fff, 0, 0, SMH_BANK1, SMH_BANK1); | |
| 987 | memory_install_readwrite8_handler(program, 0xc000, 0xc7ff, 0, 0x3800, SMH_BANK2, SMH_BANK2); | |
| 988 | } | |
| 989 | else | |
| 990 | { | |
| 991 | /* regular cartridges */ | |
| 992 | memory_install_readwrite8_handler(program, 0xc000, 0xc7ff, 0, 0x3800, SMH_BANK2, SMH_BANK2); | |
| 993 | } | |
| 994 | } | |
| 995 | ||
| 996 | static DEVICE_IMAGE_LOAD( sc3000_cart ) | |
| 997 | { | |
| 998 | // const address_space *program = cputag_get_address_space(image->machine, "main", ADDRESS_SPACE_PROGRAM); | |
| 999 | int size = image_length(image); | |
| 1000 | UINT8 *ptr = memory_region(image->machine, "main"); | |
| 1001 | ||
| 1002 | if (image_fread(image, ptr, size ) != size) | |
| 1003 | { | |
| 1004 | return INIT_FAIL; | |
| 1005 | } | |
| 1006 | ||
| 1007 | /* cartridge ROM and work RAM banking */ | |
| 1008 | sc3000_map_cartridge_memory(image->machine, ptr, size); | |
| 1009 | ||
| 1010 | return INIT_PASS; | |
| 1011 | } | |
| 1012 | ||
| 1013 | static void sc3000_cartslot_getinfo( const mess_device_class *devclass, UINT32 state, union devinfo *info ) | |
| 1014 | { | |
| 1015 | switch( state ) | |
| 1016 | { | |
| 1017 | /* --- the following bits of info are returned as 64-bit signed integers --- */ | |
| 1018 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 1019 | case MESS_DEVINFO_INT_MUST_BE_LOADED: info->i = 1; break; | |
| 1020 | ||
| 1021 | /* --- the following bits of info are returned as pointers to data or functions --- */ | |
| 1022 | case MESS_DEVINFO_PTR_LOAD: info->load = DEVICE_IMAGE_LOAD_NAME(sc3000_cart); break; | |
| 1023 | ||
| 1024 | /* --- the following bits of info are returned as NULL-terminated strings --- */ | |
| 1025 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "sg,sc,bin"); break; | |
| 1026 | ||
| 1027 | default: cartslot_device_getinfo( devclass, state, info ); break; | |
| 1028 | } | |
| 1029 | } | |
| 1030 | ||
| 1031 | static void omv_cartslot_getinfo( const mess_device_class *devclass, UINT32 state, union devinfo *info ) | |
| 1032 | { | |
| 1033 | switch( state ) | |
| 1034 | { | |
| 1035 | /* --- the following bits of info are returned as 64-bit signed integers --- */ | |
| 1036 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 1037 | ||
| 1038 | /* --- the following bits of info are returned as pointers to data or functions --- */ | |
| 1039 | case MESS_DEVINFO_PTR_LOAD: info->load = DEVICE_IMAGE_LOAD_NAME(sg1000_cart); break; | |
| 1040 | ||
| 1041 | /* --- the following bits of info are returned as NULL-terminated strings --- */ | |
| 1042 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "sg,bin"); break; | |
| 1043 | ||
| 1044 | default: cartslot_device_getinfo( devclass, state, info ); break; | |
| 1045 | } | |
| 1046 | } | |
| 1047 | ||
| 1048 | 1031 | static DEVICE_IMAGE_LOAD( sf7000_floppy ) |
| 1049 | 1032 | { |
| 1050 | 1033 | if (image_has_been_created(image)) |
| r3978 | r3979 | |
| 1102 | 1085 | |
| 1103 | 1086 | static SYSTEM_CONFIG_START( sg1000 ) |
| 1104 | 1087 | CONFIG_RAM_DEFAULT (1 * 1024) |
| 1105 | CONFIG_DEVICE(sg1000_cartslot_getinfo) | |
| 1106 | 1088 | SYSTEM_CONFIG_END |
| 1107 | 1089 | |
| 1108 | 1090 | static SYSTEM_CONFIG_START( sc3000 ) |
| 1109 | 1091 | CONFIG_RAM_DEFAULT (2 * 1024) |
| 1110 | CONFIG_DEVICE(sc3000_cartslot_getinfo) | |
| 1111 | 1092 | SYSTEM_CONFIG_END |
| 1112 | 1093 | |
| 1113 | 1094 | static SYSTEM_CONFIG_START( sf7000 ) |
| r3978 | r3979 | |
| 1116 | 1097 | CONFIG_DEVICE(sf7000_serial_getinfo) |
| 1117 | 1098 | SYSTEM_CONFIG_END |
| 1118 | 1099 | |
| 1119 | static SYSTEM_CONFIG_START( omv ) | |
| 1120 | CONFIG_DEVICE(omv_cartslot_getinfo) | |
| 1121 | SYSTEM_CONFIG_END | |
| 1122 | 1100 | |
| 1123 | 1101 | /* System Drivers */ |
| 1124 | 1102 | |
| r3978 | r3979 | |
| 1128 | 1106 | COMP( 1983, sc3000, 0, 0, sc3000, sc3000, 0, sc3000, "Sega", "SC-3000", GAME_SUPPORTS_SAVE ) |
| 1129 | 1107 | COMP( 1983, sc3000h, sc3000, 0, sc3000, sc3000, 0, sc3000, "Sega", "SC-3000H", GAME_SUPPORTS_SAVE ) |
| 1130 | 1108 | COMP( 1983, sf7000, sc3000, 0, sf7000, sf7000, 0, sf7000, "Sega", "SC-3000/Super Control Station SF-7000", GAME_SUPPORTS_SAVE ) |
| 1131 | CONS( 1984, omv1000, sg1000, 0, omv, omv, 0, omv, "Tsukuda Original", "Othello Multivision FG-1000", GAME_NOT_WORKING ) | |
| 1132 | CONS( 1984, omv2000, sg1000, 0, omv, omv, 0, omv, "Tsukuda Original", "Othello Multivision FG-2000", GAME_NOT_WORKING ) | |
| 1109 | CONS( 1984, omv1000, sg1000, 0, omv, omv, 0, 0, "Tsukuda Original", "Othello Multivision FG-1000", GAME_NOT_WORKING ) | |
| 1110 | CONS( 1984, omv2000, sg1000, 0, omv, omv, 0, 0, "Tsukuda Original", "Othello Multivision FG-2000", GAME_NOT_WORKING ) |
| r3978 | r3979 | |
|---|---|---|
| 623 | 623 | /* cia */ |
| 624 | 624 | MDRV_CIA6526_ADD("cia_0", CIA6526R1, 0, c64_ntsc_cia0) |
| 625 | 625 | MDRV_CIA6526_ADD("cia_1", CIA6526R1, 0, c64_ntsc_cia1) |
| 626 | ||
| 627 | MDRV_CARTSLOT_ADD("cart1", c64_cartslot) | |
| 628 | MDRV_CARTSLOT_ADD("cart2", c64_cartslot) | |
| 626 | 629 | MACHINE_DRIVER_END |
| 627 | 630 | |
| 628 | 631 | |
| r3978 | r3979 | |
| 864 | 867 | |
| 865 | 868 | |
| 866 | 869 | static SYSTEM_CONFIG_START(c128) |
| 867 | CONFIG_DEVICE(c64_cartslot_getinfo) | |
| 868 | 870 | CONFIG_DEVICE(cbmfloppy_device_getinfo) |
| 869 | 871 | SYSTEM_CONFIG_END |
| 870 | 872 | |
| 871 | 873 | static SYSTEM_CONFIG_START(c128d) |
| 872 | CONFIG_DEVICE(c64_cartslot_getinfo) | |
| 873 | 874 | CONFIG_DEVICE(c1571_device_getinfo) |
| 874 | 875 | SYSTEM_CONFIG_END |
| 875 | 876 |
| r3978 | r3979 | |
|---|---|---|
| 785 | 785 | CASSETTE_PLAY | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_ENABLED |
| 786 | 786 | }; |
| 787 | 787 | |
| 788 | static const cartslot_interface exidy_cartslot = | |
| 789 | { | |
| 790 | "rom", | |
| 791 | 0, | |
| 792 | NULL, | |
| 793 | NULL, | |
| 794 | NULL, | |
| 795 | NULL | |
| 796 | }; | |
| 788 | 797 | |
| 789 | 798 | static MACHINE_DRIVER_START( exidy ) |
| 790 | 799 | /* basic machine hardware */ |
| r3978 | r3979 | |
| 828 | 837 | MDRV_CASSETTE_ADD( "cassette2", exidy_cassette_config ) |
| 829 | 838 | |
| 830 | 839 | MDRV_WD179X_ADD("wd179x", default_wd17xx_interface ) |
| 840 | ||
| 841 | MDRV_CARTSLOT_ADD("cart", exidy_cartslot) | |
| 831 | 842 | MACHINE_DRIVER_END |
| 832 | 843 | |
| 833 | 844 | static MACHINE_DRIVER_START( exidyd ) |
| r3978 | r3979 | |
| 858 | 869 | ROM_LOAD("exmo1-2.dat", 0xe800, 0x0800, CRC(ead1d0f6) SHA1(c68bed7344091bca135e427b4793cc7d49ca01be) ) |
| 859 | 870 | ROM_LOAD("exchr-1.dat", 0xf800, 0x0400, CRC(4a7e1cdd) SHA1(2bf07a59c506b6e0c01ec721fb7b747b20f5dced) ) /* char rom */ |
| 860 | 871 | ROM_LOAD_OPTIONAL("diskboot.dat",0xbc00, 0x0100, BAD_DUMP CRC(d82a40d6) SHA1(cd1ef5fb0312cd1640e0853d2442d7d858bc3e3b)) |
| 861 | ROM_CART_LOAD( | |
| 872 | ROM_CART_LOAD( | |
| 862 | 873 | |
| 863 | 874 | ROM_REGION( 0x0020, "proms", 0 ) |
| 864 | 875 | ROM_LOAD_OPTIONAL("bruce.dat", 0x0000, 0x0020, CRC(fae922cb) SHA1(470a86844cfeab0d9282242e03ff1d8a1b2238d1)) /* video prom */ |
| r3978 | r3979 | |
| 869 | 880 | ROM_LOAD("exmo1-1.dat", 0xe000, 0x0800, CRC(ac924f67) SHA1(72fcad6dd1ed5ec0527f967604401284d0e4b6a1) ) /* monitor roms */ |
| 870 | 881 | ROM_LOAD("exmo1-2.dat", 0xe800, 0x0800, CRC(ead1d0f6) SHA1(c68bed7344091bca135e427b4793cc7d49ca01be) ) |
| 871 | 882 | ROM_LOAD("exchr-1.dat", 0xf800, 0x0400, CRC(4a7e1cdd) SHA1(2bf07a59c506b6e0c01ec721fb7b747b20f5dced) ) /* char rom */ |
| 872 | ROM_CART_LOAD( | |
| 883 | ROM_CART_LOAD( | |
| 873 | 884 | |
| 874 | 885 | ROM_REGION( 0x0020, "proms", 0 ) |
| 875 | 886 | ROM_LOAD_OPTIONAL("bruce.dat", 0x0000, 0x0020, CRC(fae922cb) SHA1(470a86844cfeab0d9282242e03ff1d8a1b2238d1)) /* video prom */ |
| r3978 | r3979 | |
| 941 | 952 | |
| 942 | 953 | static SYSTEM_CONFIG_START(exidy) |
| 943 | 954 | CONFIG_DEVICE(exidy_floppy_getinfo) |
| 944 | CONFIG_DEVICE(cartslot_device_getinfo) | |
| 945 | 955 | SYSTEM_CONFIG_END |
| 946 | 956 | |
| 947 | static SYSTEM_CONFIG_START(exidyd) | |
| 948 | CONFIG_DEVICE(cartslot_device_getinfo) | |
| 949 | SYSTEM_CONFIG_END | |
| 950 | 957 | |
| 951 | ||
| 952 | 958 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME */ |
| 953 | 959 | COMP(1979, exidy, 0, 0, exidy, exidy, exidy, exidy, "Exidy Inc", "Sorcerer", 0 ) |
| 954 | COMP(1979, exidyd, exidy, 0, exidyd, exidy, exidy, | |
| 960 | COMP(1979, exidyd, exidy, 0, exidyd, exidy, exidy, 0 | |
| 955 | 961 |
| r3978 | r3979 | |
|---|---|---|
| 309 | 309 | ROM_SYSTEM_BIOS( 1, "sp", "Spanish" ) |
| 310 | 310 | ROMX_LOAD("zx128s0.rom",0x10000,0x4000, CRC(453d86b2) SHA1(968937b1c750f0ef6205f01c6db4148da4cca4e3), ROM_BIOS(2)) |
| 311 | 311 | ROMX_LOAD("zx128s1.rom",0x14000,0x4000, CRC(6010e796) SHA1(bea3f397cc705eafee995ea629f4a82550562f90), ROM_BIOS(2)) |
| 312 | ROM_CART_LOAD( | |
| 312 | ROM_CART_LOAD( | |
| 313 | 313 | ROM_END |
| 314 | 314 | |
| 315 | 315 | ROM_START(specpls2) |
| r3978 | r3979 | |
| 328 | 328 | ROMX_LOAD("plus2c-1.rom",0x14000,0x4000, CRC(fd8552b6) SHA1(5ffcf79f2154ba2cf42cc1d9cb4be93cb5043e73), ROM_BIOS(4)) |
| 329 | 329 | ROM_SYSTEM_BIOS( 4, "namco", "ZX Spectrum +2c (Namco)" ) |
| 330 | 330 | ROMX_LOAD("pl2namco.rom",0x10000,0x8000, CRC(72a54e75) SHA1(311400157df689450dadc3620f4c4afa960b05ad), ROM_BIOS(5)) |
| 331 | ROM_CART_LOAD( | |
| 331 | ROM_CART_LOAD( | |
| 332 | 332 | ROM_END |
| 333 | 333 | |
| 334 | 334 | ROM_START(hc128) |
| 335 | 335 | ROM_REGION(0x18000,"main",0) |
| 336 | 336 | ROM_LOAD("zx128_0.rom",0x10000,0x4000, CRC(e76799d2) SHA1(4f4b11ec22326280bdb96e3baf9db4b4cb1d02c5)) |
| 337 | 337 | ROM_LOAD("hc128.rom", 0x14000,0x4000, CRC(0241e960) SHA1(cea0d14391b9e571460a816088a1c00ecb24afa3)) |
| 338 | ROM_CART_LOAD( | |
| 338 | ROM_CART_LOAD( | |
| 339 | 339 | ROM_END |
| 340 | 340 | |
| 341 | 341 | ROM_START(hc2000) |
| r3978 | r3979 | |
| 346 | 346 | ROM_SYSTEM_BIOS( 1, "v2", "Version 2" ) |
| 347 | 347 | ROMX_LOAD("zx128_0.rom",0x10000,0x4000, CRC(e76799d2) SHA1(4f4b11ec22326280bdb96e3baf9db4b4cb1d02c5), ROM_BIOS(2)) |
| 348 | 348 | ROMX_LOAD("hc2000.v2", 0x14000,0x4000, CRC(65d90464) SHA1(5e2096e6460ff2120c8ada97579fdf82c1199c09), ROM_BIOS(2)) |
| 349 | ROM_CART_LOAD( | |
| 349 | ROM_CART_LOAD( | |
| 350 | 350 | ROM_END |
| 351 | 351 | |
| 352 | 352 | static SYSTEM_CONFIG_START(spec128) |
| 353 | CONFIG_IMPORT_FROM(spectrum) | |
| 354 | 353 | CONFIG_RAM_DEFAULT(128 * 1024) |
| 355 | 354 | SYSTEM_CONFIG_END |
| 356 | 355 |
| r3978 | r3979 | |
|---|---|---|
| 598 | 598 | MACHINE_RESET_CALL(spectrum); |
| 599 | 599 | } |
| 600 | 600 | |
| 601 | static const cartslot_interface ts2068_cartslot = | |
| 602 | { | |
| 603 | "dck", | |
| 604 | 0, | |
| 605 | NULL, | |
| 606 | DEVICE_IMAGE_LOAD_NAME(timex_cart), | |
| 607 | DEVICE_IMAGE_UNLOAD_NAME(timex_cart), | |
| 608 | NULL | |
| 609 | }; | |
| 601 | 610 | |
| 602 | ||
| 603 | 611 | static MACHINE_DRIVER_START( ts2068 ) |
| 604 | 612 | MDRV_IMPORT_FROM( spectrum_128 ) |
| 605 | 613 | MDRV_CPU_REPLACE("main", Z80, 3580000) /* 3.58 MHz */ |
| r3978 | r3979 | |
| 617 | 625 | |
| 618 | 626 | MDRV_VIDEO_UPDATE( ts2068 ) |
| 619 | 627 | MDRV_VIDEO_EOF( ts2068 ) |
| 628 | ||
| 629 | MDRV_CARTSLOT_MODIFY("cart", ts2068_cartslot ) | |
| 620 | 630 | MACHINE_DRIVER_END |
| 621 | 631 | |
| 622 | 632 | |
| r3978 | r3979 | |
| 658 | 668 | ROM_START(tc2048) |
| 659 | 669 | ROM_REGION(0x10000,"main",0) |
| 660 | 670 | ROM_LOAD("tc2048.rom",0x0000,0x4000, CRC(f1b5fa67) SHA1(febb2d495b6eda7cdcb4074935d6e9d9f328972d)) |
| 661 | ROM_CART_LOAD( | |
| 671 | ROM_CART_LOAD( | |
| 662 | 672 | ROM_END |
| 663 | 673 | |
| 664 | 674 | ROM_START(ts2068) |
| r3978 | r3979 | |
| 673 | 683 | ROM_LOAD("ts2068_x.rom",0x14000,0x2000, CRC(ae16233a) SHA1(7e265a2c1f621ed365ea23bdcafdedbc79c1299c)) |
| 674 | 684 | ROM_END |
| 675 | 685 | |
| 676 | ||
| 677 | static void ts2068_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) | |
| 678 | { | |
| 679 | /* cartslot */ | |
| 680 | switch(state) | |
| 681 | { | |
| 682 | /* --- the following bits of info are returned as 64-bit signed integers --- */ | |
| 683 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 684 | ||
| 685 | /* --- the following bits of info are returned as pointers to data or functions --- */ | |
| 686 | case MESS_DEVINFO_PTR_LOAD: info->load = DEVICE_IMAGE_LOAD_NAME(timex_cart); break; | |
| 687 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = DEVICE_IMAGE_UNLOAD_NAME(timex_cart); break; | |
| 688 | ||
| 689 | /* --- the following bits of info are returned as NULL-terminated strings --- */ | |
| 690 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "dck"); break; | |
| 691 | ||
| 692 | default: cartslot_device_getinfo(devclass, state, info); break; | |
| 693 | } | |
| 694 | } | |
| 695 | ||
| 696 | 686 | static SYSTEM_CONFIG_START(ts2068) |
| 697 | CONFIG_DEVICE(ts2068_cartslot_getinfo) | |
| 698 | 687 | CONFIG_RAM_DEFAULT(48 * 1024) |
| 699 | 688 | SYSTEM_CONFIG_END |
| 700 | 689 | |
| 701 | 690 | static SYSTEM_CONFIG_START(tc2048) |
| 702 | CONFIG_IMPORT_FROM(spectrum) | |
| 703 | 691 | CONFIG_RAM_DEFAULT(48 * 1024) |
| 704 | 692 | SYSTEM_CONFIG_END |
| 705 | 693 |
| r3978 | r3979 | |
|---|---|---|
| 681 | 681 | static MACHINE_DRIVER_START( pet ) |
| 682 | 682 | MDRV_IMPORT_FROM( pet_general ) |
| 683 | 683 | MDRV_QUICKLOAD_ADD(cbm_pet, "p00,prg", CBM_QUICKLOAD_DELAY_SECONDS) |
| 684 | MDRV_CARTSLOT_ADD("cart1", pet_cartslot) | |
| 685 | MDRV_CARTSLOT_ADD("cart2", pet_cartslot) | |
| 684 | 686 | MACHINE_DRIVER_END |
| 685 | 687 | |
| 686 | 688 | |
| 687 | 689 | static MACHINE_DRIVER_START( pet2001 ) |
| 688 | 690 | MDRV_IMPORT_FROM( pet_general ) |
| 689 | 691 | MDRV_QUICKLOAD_ADD(cbm_pet1, "p00,prg", CBM_QUICKLOAD_DELAY_SECONDS) |
| 692 | MDRV_CARTSLOT_ADD("cart1", pet_cartslot) | |
| 693 | MDRV_CARTSLOT_ADD("cart2", pet_cartslot) | |
| 690 | 694 | MACHINE_DRIVER_END |
| 691 | 695 | |
| 692 | 696 | |
| r3978 | r3979 | |
| 699 | 703 | |
| 700 | 704 | MDRV_VIDEO_START( pet_crtc ) |
| 701 | 705 | MDRV_VIDEO_UPDATE( pet_crtc ) |
| 706 | ||
| 707 | MDRV_CARTSLOT_MODIFY("cart1", pet4_cartslot) | |
| 708 | MDRV_CARTSLOT_MODIFY("cart2", pet4_cartslot) | |
| 702 | 709 | MACHINE_DRIVER_END |
| 703 | 710 | |
| 704 | 711 | |
| r3978 | r3979 | |
| 726 | 733 | MDRV_GFXDECODE( pet80 ) |
| 727 | 734 | MDRV_VIDEO_START( pet_crtc ) |
| 728 | 735 | MDRV_VIDEO_UPDATE( pet_crtc ) |
| 736 | ||
| 737 | MDRV_CARTSLOT_MODIFY("cart1", pet4_cartslot) | |
| 738 | MDRV_CARTSLOT_MODIFY("cart2", pet4_cartslot) | |
| 729 | 739 | MACHINE_DRIVER_END |
| 730 | 740 | |
| 731 | 741 | |
| r3978 | r3979 | |
| 1090 | 1100 | |
| 1091 | 1101 | /* Original PET 2001 - Basic 1 - RAM: 4k, 8k */ |
| 1092 | 1102 | static SYSTEM_CONFIG_START( pet2001 ) |
| 1093 | CONFIG_DEVICE(pet_cartslot_getinfo) | |
| 1094 | 1103 | CONFIG_DEVICE(cbmfloppy_device_getinfo) |
| 1095 | 1104 | CONFIG_RAM(4 * 1024) |
| 1096 | 1105 | CONFIG_RAM_DEFAULT(8 * 1024) |
| r3978 | r3979 | |
| 1098 | 1107 | |
| 1099 | 1108 | /* Later PET 2001 - Basic 2 - RAM: 8k, 16k, 32k */ |
| 1100 | 1109 | static SYSTEM_CONFIG_START( pet2 ) |
| 1101 | CONFIG_DEVICE(pet_cartslot_getinfo) | |
| 1102 | 1110 | CONFIG_DEVICE(cbmfloppy_device_getinfo) |
| 1103 | 1111 | CONFIG_RAM(8 * 1024) |
| 1104 | 1112 | CONFIG_RAM(16 * 1024) |
| r3978 | r3979 | |
| 1107 | 1115 | |
| 1108 | 1116 | /* Early PET 4000 - Basic 4 - RAM: 8k, 16k, 32k */ |
| 1109 | 1117 | static SYSTEM_CONFIG_START( pet4o ) |
| 1110 | CONFIG_DEVICE(pet4_cartslot_getinfo) | |
| 1111 | 1118 | CONFIG_DEVICE(cbmfloppy_device_getinfo) |
| 1112 | 1119 | CONFIG_RAM(8 * 1024) |
| 1113 | 1120 | CONFIG_RAM(16 * 1024) |
| r3978 | r3979 | |
| 1116 | 1123 | |
| 1117 | 1124 | /* Later PET 4000 / PET 8000 - Basic 4 - RAM: 32k expandable (expansion through DIPs currently) */ |
| 1118 | 1125 | static SYSTEM_CONFIG_START( pet4 ) |
| 1119 | CONFIG_DEVICE(pet4_cartslot_getinfo) | |
| 1120 | 1126 | CONFIG_DEVICE(cbmfloppy_device_getinfo) |
| 1121 | 1127 | CONFIG_RAM_DEFAULT(32 * 1024) |
| 1122 | 1128 | SYSTEM_CONFIG_END |
| r3978 | r3979 | |
|---|---|---|
| 1972 | 1972 | CASSETTE_PLAY | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_ENABLED |
| 1973 | 1973 | }; |
| 1974 | 1974 | |
| 1975 | static const cartslot_interface a2600_cartslot = | |
| 1976 | { | |
| 1977 | "bin,a26", | |
| 1978 | 1, | |
| 1979 | DEVICE_START_NAME(a2600_cart), | |
| 1980 | DEVICE_IMAGE_LOAD_NAME(a2600_cart), | |
| 1981 | NULL, | |
| 1982 | NULL | |
| 1983 | }; | |
| 1975 | 1984 | |
| 1976 | 1985 | static MACHINE_DRIVER_START( a2600 ) |
| 1977 | 1986 | /* basic machine hardware */ |
| r3978 | r3979 | |
| 2002 | 2011 | MDRV_RIOT6532_ADD("riot", MASTER_CLOCK_NTSC / 3, r6532_interface) |
| 2003 | 2012 | |
| 2004 | 2013 | MDRV_CASSETTE_ADD( "cassette", a2600_cassette_config ) |
| 2014 | ||
| 2015 | MDRV_CARTSLOT_ADD("cart", a2600_cartslot) | |
| 2005 | 2016 | MACHINE_DRIVER_END |
| 2006 | 2017 | |
| 2007 | 2018 | |
| r3978 | r3979 | |
| 2034 | 2045 | MDRV_RIOT6532_ADD("riot", MASTER_CLOCK_PAL / 3, r6532_interface) |
| 2035 | 2046 | |
| 2036 | 2047 | MDRV_CASSETTE_ADD( "cassette", a2600_cassette_config ) |
| 2048 | ||
| 2049 | MDRV_CARTSLOT_ADD("cart", a2600_cartslot) | |
| 2037 | 2050 | MACHINE_DRIVER_END |
| 2038 | 2051 | |
| 2039 | 2052 | |
| r3978 | r3979 | |
| 2046 | 2059 | |
| 2047 | 2060 | #define rom_a2600p rom_a2600 |
| 2048 | 2061 | |
| 2049 | static void a2600_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) | |
| 2050 | { | |
| 2051 | /* cartslot */ | |
| 2052 | switch(state) | |
| 2053 | { | |
| 2054 | /* --- the following bits of info are returned as 64-bit signed integers --- */ | |
| 2055 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 2056 | case MESS_DEVINFO_INT_MUST_BE_LOADED: info->i = 1; break; | |
| 2057 | ||
| 2058 | /* --- the following bits of info are returned as pointers to data or functions --- */ | |
| 2059 | case MESS_DEVINFO_PTR_START: info->start = DEVICE_START_NAME(a2600_cart); break; | |
| 2060 | case MESS_DEVINFO_PTR_LOAD: info->load = DEVICE_IMAGE_LOAD_NAME(a2600_cart); break; | |
| 2061 | ||
| 2062 | /* --- the following bits of info are returned as NULL-terminated strings --- */ | |
| 2063 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "bin,a26"); break; | |
| 2064 | ||
| 2065 | default: cartslot_device_getinfo(devclass, state, info); break; | |
| 2066 | } | |
| 2067 | } | |
| 2068 | ||
| 2069 | ||
| 2070 | static SYSTEM_CONFIG_START(a2600) | |
| 2071 | CONFIG_DEVICE(a2600_cartslot_getinfo) | |
| 2072 | SYSTEM_CONFIG_END | |
| 2073 | ||
| 2074 | ||
| 2075 | 2062 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME */ |
| 2076 | CONS( 1977, a2600, 0, 0, a2600, a2600, 0, a2600, "Atari", "Atari 2600 (NTSC)" , 0) | |
| 2077 | CONS( 1978, a2600p, a2600, 0, a2600p, a2600, 0, a2600, "Atari", "Atari 2600 (PAL)", 0) | |
| 2063 | CONS( 1977, a2600, 0, 0, a2600, a2600, 0, 0, "Atari", "Atari 2600 (NTSC)" , 0) | |
| 2064 | CONS( 1978, a2600p, a2600, 0, a2600p, a2600, 0, 0, "Atari", "Atari 2600 (PAL)", 0) |
| r3978 | r3979 | |
|---|---|---|
| 403 | 403 | /* via */ |
| 404 | 404 | MDRV_VIA6522_ADD("via6522_2", 0, vc1541_via2) |
| 405 | 405 | MDRV_VIA6522_ADD("via6522_3", 0, vc1541_via3) |
| 406 | ||
| 407 | MDRV_CARTSLOT_ADD("cart", c16_cartslot) | |
| 406 | 408 | MACHINE_DRIVER_END |
| 407 | 409 | |
| 408 | 410 | |
| r3978 | r3979 | |
| 602 | 604 | |
| 603 | 605 | |
| 604 | 606 | static SYSTEM_CONFIG_START(c16) |
| 605 | CONFIG_DEVICE(c16_cartslot_getinfo) | |
| 606 | 607 | CONFIG_DEVICE(cbmfloppy_device_getinfo) |
| 607 | 608 | CONFIG_RAM(16 * 1024) |
| 608 | 609 | CONFIG_RAM(32 * 1024) |
| r3978 | r3979 | |
| 610 | 611 | SYSTEM_CONFIG_END |
| 611 | 612 | |
| 612 | 613 | static SYSTEM_CONFIG_START(c16c) |
| 613 | CONFIG_DEVICE(c16_cartslot_getinfo) | |
| 614 | 614 | CONFIG_DEVICE(c1551_device_getinfo) |
| 615 | 615 | CONFIG_RAM(16 * 1024) |
| 616 | 616 | CONFIG_RAM(32 * 1024) |
| r3978 | r3979 | |
| 618 | 618 | SYSTEM_CONFIG_END |
| 619 | 619 | |
| 620 | 620 | static SYSTEM_CONFIG_START(c16v) |
| 621 | CONFIG_DEVICE(c16_cartslot_getinfo) | |
| 622 | 621 | CONFIG_DEVICE(vc1541_device_getinfo) |
| 623 | 622 | CONFIG_RAM(16 * 1024) |
| 624 | 623 | CONFIG_RAM(32 * 1024) |
| r3978 | r3979 | |
| 626 | 625 | SYSTEM_CONFIG_END |
| 627 | 626 | |
| 628 | 627 | static SYSTEM_CONFIG_START(plus) |
| 629 | CONFIG_DEVICE(c16_cartslot_getinfo) | |
| 630 | 628 | CONFIG_DEVICE(cbmfloppy_device_getinfo) |
| 631 | 629 | CONFIG_RAM_DEFAULT(64 * 1024) |
| 632 | 630 | SYSTEM_CONFIG_END |
| 633 | 631 | |
| 634 | 632 | static SYSTEM_CONFIG_START(plusc) |
| 635 | CONFIG_DEVICE(c16_cartslot_getinfo) | |
| 636 | 633 | CONFIG_DEVICE(c1551_device_getinfo) |
| 637 | 634 | CONFIG_RAM_DEFAULT(64 * 1024) |
| 638 | 635 | SYSTEM_CONFIG_END |
| 639 | 636 | |
| 640 | 637 | static SYSTEM_CONFIG_START(plusv) |
| 641 | CONFIG_DEVICE(c16_cartslot_getinfo) | |
| 642 | 638 | CONFIG_DEVICE(vc1541_device_getinfo) |
| 643 | 639 | CONFIG_RAM_DEFAULT(64 * 1024) |
| 644 | 640 | SYSTEM_CONFIG_END |
| r3978 | r3979 | |
|---|---|---|
| 431 | 431 | device_reset(state->cdp1864); |
| 432 | 432 | } |
| 433 | 433 | |
| 434 | ||
| 435 | static DEVICE_IMAGE_LOAD( studio2_cart ) | |
| 436 | { | |
| 437 | UINT8 *ptr = NULL; | |
| 438 | UINT8 header[ST2_HEADER_SIZE]; | |
| 439 | int filesize; | |
| 440 | ||
| 441 | filesize = image_length( image ); | |
| 442 | if ( filesize <= ST2_HEADER_SIZE ) { | |
| 443 | logerror( "Error loading cartridge: Invalid ROM file: %s.\n", image_filename( image ) ); | |
| 444 | return INIT_FAIL; | |
| 445 | } | |
| 446 | ||
| 447 | /* read ST2 header */ | |
| 448 | if ( image_fread(image, header, ST2_HEADER_SIZE ) != ST2_HEADER_SIZE ) { | |
| 449 | logerror( "Error loading cartridge: Unable to read header from file: %s.\n", image_filename( image ) ); | |
| 450 | return INIT_FAIL; | |
| 451 | } | |
| 452 | filesize -= ST2_HEADER_SIZE; | |
| 453 | /* Read ST2 cartridge contents */ | |
| 454 | ptr = ((UINT8 *)memory_region(image->machine, CDP1802_TAG ) ) + 0x0400; | |
| 455 | if ( image_fread(image, ptr, filesize ) != filesize ) { | |
| 456 | logerror( "Error loading cartridge: Unable to read contents from file: %s.\n", image_filename( image ) ); | |
| 457 | return INIT_FAIL; | |
| 458 | } | |
| 459 | ||
| 460 | return INIT_PASS; | |
| 461 | } | |
| 462 | ||
| 463 | static const cartslot_interface studio2_cartslot = | |
| 464 | { | |
| 465 | "st2", | |
| 466 | 0, | |
| 467 | NULL, | |
| 468 | DEVICE_IMAGE_LOAD_NAME(studio2_cart), | |
| 469 | NULL, | |
| 470 | NULL | |
| 471 | }; | |
| 472 | ||
| 434 | 473 | /* Machine Drivers */ |
| 435 | 474 | |
| 436 | 475 | static MACHINE_DRIVER_START( studio2 ) |
| r3978 | r3979 | |
| 463 | 502 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 464 | 503 | MDRV_SOUND_ADD("beep", BEEP, 0) |
| 465 | 504 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) |
| 505 | ||
| 506 | MDRV_CARTSLOT_ADD("cart", studio2_cartslot ) | |
| 466 | 507 | MACHINE_DRIVER_END |
| 467 | 508 | |
| 468 | 509 | static MACHINE_DRIVER_START( visicom ) |
| r3978 | r3979 | |
| 495 | 536 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 496 | 537 | MDRV_SOUND_ADD("beep", BEEP, 0) |
| 497 | 538 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) |
| 539 | ||
| 540 | MDRV_CARTSLOT_ADD("cart", studio2_cartslot ) | |
| 498 | 541 | MACHINE_DRIVER_END |
| 499 | 542 | |
| 500 | 543 | static MACHINE_DRIVER_START( mpt02 ) |
| r3978 | r3979 | |
| 526 | 569 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 527 | 570 | MDRV_SOUND_ADD("beep", BEEP, 0) |
| 528 | 571 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) |
| 572 | ||
| 573 | MDRV_CARTSLOT_ADD("cart", studio2_cartslot ) | |
| 529 | 574 | MACHINE_DRIVER_END |
| 530 | 575 | |
| 531 | 576 | /* ROMs */ |
| r3978 | r3979 | |
| 577 | 622 | timer_set(machine, attotime_zero, NULL, 0, setup_beep); |
| 578 | 623 | } |
| 579 | 624 | |
| 580 | /* System Configuration */ | |
| 581 | 625 | |
| 582 | static DEVICE_IMAGE_LOAD( studio2_cart ) | |
| 583 | { | |
| 584 | UINT8 *ptr = NULL; | |
| 585 | UINT8 header[ST2_HEADER_SIZE]; | |
| 586 | int filesize; | |
| 587 | ||
| 588 | filesize = image_length( image ); | |
| 589 | if ( filesize <= ST2_HEADER_SIZE ) { | |
| 590 | logerror( "Error loading cartridge: Invalid ROM file: %s.\n", image_filename( image ) ); | |
| 591 | return INIT_FAIL; | |
| 592 | } | |
| 593 | ||
| 594 | /* read ST2 header */ | |
| 595 | if ( image_fread(image, header, ST2_HEADER_SIZE ) != ST2_HEADER_SIZE ) { | |
| 596 | logerror( "Error loading cartridge: Unable to read header from file: %s.\n", image_filename( image ) ); | |
| 597 | return INIT_FAIL; | |
| 598 | } | |
| 599 | filesize -= ST2_HEADER_SIZE; | |
| 600 | /* Read ST2 cartridge contents */ | |
| 601 | ptr = ((UINT8 *)memory_region(image->machine, CDP1802_TAG ) ) + 0x0400; | |
| 602 | if ( image_fread(image, ptr, filesize ) != filesize ) { | |
| 603 | logerror( "Error loading cartridge: Unable to read contents from file: %s.\n", image_filename( image ) ); | |
| 604 | return INIT_FAIL; | |
| 605 | } | |
| 606 | ||
| 607 | return INIT_PASS; | |
| 608 | } | |
| 609 | ||
| 610 | static void studio2_cartslot_getinfo( const mess_device_class *devclass, UINT32 state, union devinfo *info ) | |
| 611 | { | |
| 612 | switch( state ) | |
| 613 | { | |
| 614 | /* --- the following bits of info are returned as 64-bit signed integers --- */ | |
| 615 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 616 | ||
| 617 | /* --- the following bits of info are returned as pointers to data or functions --- */ | |
| 618 | case MESS_DEVINFO_PTR_LOAD: info->load = DEVICE_IMAGE_LOAD_NAME(studio2_cart); break; | |
| 619 | ||
| 620 | /* --- the following bits of info are returned as NULL-terminated strings --- */ | |
| 621 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "st2"); break; | |
| 622 | ||
| 623 | default: cartslot_device_getinfo( devclass, state, info ); break; | |
| 624 | } | |
| 625 | } | |
| 626 | ||
| 627 | static SYSTEM_CONFIG_START( studio2 ) | |
| 628 | CONFIG_DEVICE( studio2_cartslot_getinfo ) | |
| 629 | SYSTEM_CONFIG_END | |
| 630 | ||
| 631 | 626 | /* Game Drivers */ |
| 632 | 627 | |
| 633 | 628 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME */ |
| 634 | CONS( 1977, studio2, 0, 0, studio2, studio2, studio2, studio2, "RCA", "Studio II", GAME_SUPPORTS_SAVE ) | |
| 635 | CONS( 1978, visicom, studio2,0, visicom, studio2, studio2, studio2, "Toshiba", "Visicom (Japan)", GAME_NOT_WORKING ) | |
| 636 | CONS( 1978, mpt02s, studio2,0, mpt02, studio2, studio2, studio2, "Soundic", "MPT-02 Victory Home TV Programmer (Austria)", GAME_NOT_WORKING ) | |
| 637 | CONS( 1978, mpt02h, studio2,0, mpt02, studio2, studio2, studio2, "Hanimex", "MPT-02 Jeu TV Programmable (France)", GAME_NOT_WORKING ) | |
| 638 | CONS( 1978, mtc9016, studio2,0, mpt02, studio2, studio2, studio2, "Mustang", "9016 Telespiel Computer (Germany)", GAME_NOT_WORKING ) | |
| 639 | CONS( 1978, shmc1200, studio2,0, mpt02, studio2, studio2, studio2, "Sheen", "1200 Micro Computer (Australia)", GAME_NOT_WORKING ) | |
| 629 | CONS( 1977, studio2, 0, 0, studio2, studio2, studio2, 0, "RCA", "Studio II", GAME_SUPPORTS_SAVE ) | |
| 630 | CONS( 1978, visicom, studio2,0, visicom, studio2, studio2, 0, "Toshiba", "Visicom (Japan)", GAME_NOT_WORKING ) | |
| 631 | CONS( 1978, mpt02s, studio2,0, mpt02, studio2, studio2, 0, "Soundic", "MPT-02 Victory Home TV Programmer (Austria)", GAME_NOT_WORKING ) | |
| 632 | CONS( 1978, mpt02h, studio2,0, mpt02, studio2, studio2, 0, "Hanimex", "MPT-02 Jeu TV Programmable (France)", GAME_NOT_WORKING ) | |
| 633 | CONS( 1978, mtc9016, studio2,0, mpt02, studio2, studio2, 0, "Mustang", "9016 Telespiel Computer (Germany)", GAME_NOT_WORKING ) | |
| 634 | CONS( 1978, shmc1200, studio2,0, mpt02, studio2, studio2, 0, "Sheen", "1200 Micro Computer (Australia)", GAME_NOT_WORKING ) |
| r3978 | r3979 | |
|---|---|---|
| 195 | 195 | GFXDECODE_ENTRY( "gfx2", 0, key_layout, 16*2, 2 ) |
| 196 | 196 | GFXDECODE_END |
| 197 | 197 | |
| 198 | static const cartslot_interface mekd2_cartslot = | |
| 199 | { | |
| 200 | "d2", | |
| 201 | 0, | |
| 202 | NULL, | |
| 203 | DEVICE_IMAGE_LOAD_NAME(mekd2_cart), | |
| 204 | NULL, | |
| 205 | NULL | |
| 206 | }; | |
| 198 | 207 | |
| 199 | ||
| 200 | 208 | static MACHINE_DRIVER_START( mekd2 ) |
| 201 | 209 | /* basic machine hardware */ |
| 202 | 210 | MDRV_CPU_ADD("main", M6800, 614400) /* 614.4 kHz */ |
| r3978 | r3979 | |
| 222 | 230 | |
| 223 | 231 | MDRV_SOUND_ADD("dac", DAC, 0) |
| 224 | 232 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) |
| 233 | ||
| 234 | MDRV_CARTSLOT_ADD("cart", mekd2_cartslot ) | |
| 225 | 235 | MACHINE_DRIVER_END |
| 226 | 236 | |
| 227 | 237 | |
| r3978 | r3979 | |
| 234 | 244 | /* space filled with key icons by mekd2_init_driver */ |
| 235 | 245 | ROM_END |
| 236 | 246 | |
| 237 | static void mekd2_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) | |
| 238 | { | |
| 239 | /* cartslot */ | |
| 240 | switch(state) | |
| 241 | { | |
| 242 | /* --- the following bits of info are returned as 64-bit signed integers --- */ | |
| 243 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 244 | ||
| 245 | /* --- the following bits of info are returned as pointers to data or functions --- */ | |
| 246 | case MESS_DEVINFO_PTR_LOAD: info->load = DEVICE_IMAGE_LOAD_NAME(mekd2_cart); break; | |
| 247 | ||
| 248 | /* --- the following bits of info are returned as NULL-terminated strings --- */ | |
| 249 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "d2"); break; | |
| 250 | ||
| 251 | default: cartslot_device_getinfo(devclass, state, info); break; | |
| 252 | } | |
| 253 | } | |
| 254 | ||
| 255 | static SYSTEM_CONFIG_START(mekd2) | |
| 256 | CONFIG_DEVICE(mekd2_cartslot_getinfo) | |
| 257 | SYSTEM_CONFIG_END | |
| 258 | ||
| 259 | 247 | /*************************************************************************** |
| 260 | 248 | |
| 261 | 249 | Game driver(s) |
| r3978 | r3979 | |
| 263 | 251 | ***************************************************************************/ |
| 264 | 252 | |
| 265 | 253 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME */ |
| 266 | CONS( 1977, mekd2, 0, 0, mekd2, mekd2, mekd2, | |
| 254 | CONS( 1977, mekd2, 0, 0, mekd2, mekd2, mekd2, 0 |
| r3978 | r3979 | |
|---|---|---|
| 402 | 402 | timer_pulse(machine, ATTOTIME_IN_MSEC(20), NULL, 0, paddle_callback); |
| 403 | 403 | } |
| 404 | 404 | |
| 405 | //static int coleco_cart_verify(const UINT8 *cartdata, size_t size) | |
| 406 | //{ | |
| 407 | // int retval = IMAGE_VERIFY_FAIL; | |
| 408 | // | |
| 409 | // /* Verify the file is in Colecovision format */ | |
| 410 | // if ((cartdata[0] == 0xAA) && (cartdata[1] == 0x55)) /* Production Cartridge */ | |
| 411 | // retval = IMAGE_VERIFY_PASS; | |
| 412 | // if ((cartdata[0] == 0x55) && (cartdata[1] == 0xAA)) /* "Test" Cartridge. Some games use this method to skip ColecoVision title screen and delay */ | |
| 413 | // retval = IMAGE_VERIFY_PASS; | |
| 414 | // | |
| 415 | // return retval; | |
| 416 | //} | |
| 417 | ||
| 418 | static DEVICE_IMAGE_LOAD( czz50_cart ) | |
| 419 | { | |
| 420 | int size = image_length(image); | |
| 421 | UINT8 *ptr = memory_region(image->machine, "main") + 0x8000; | |
| 422 | ||
| 423 | if (image_fread(image, ptr, size ) != size) | |
| 424 | { | |
| 425 | return INIT_FAIL; | |
| 426 | } | |
| 427 | ||
| 428 | return INIT_PASS; | |
| 429 | } | |
| 430 | ||
| 431 | static const cartslot_interface coleco_cartslot = | |
| 432 | { | |
| 433 | "rom,col,bin", | |
| 434 | 0, | |
| 435 | NULL, | |
| 436 | NULL, | |
| 437 | NULL, | |
| 438 | NULL | |
| 439 | //case MESS_DEVINFO_PTR_VERIFY: info->imgverify = coleco_cart_verify; break; | |
| 440 | }; | |
| 441 | ||
| 442 | static const cartslot_interface czz50_cartslot = | |
| 443 | { | |
| 444 | "rom,col,bin", | |
| 445 | 0, | |
| 446 | NULL, | |
| 447 | DEVICE_IMAGE_LOAD_NAME(czz50_cart), | |
| 448 | NULL, | |
| 449 | NULL | |
| 450 | }; | |
| 451 | ||
| 405 | 452 | /* Machine Drivers */ |
| 406 | 453 | |
| 407 | 454 | static MACHINE_DRIVER_START( coleco ) |
| r3978 | r3979 | |
| 424 | 471 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 425 | 472 | MDRV_SOUND_ADD("sn76489a", SN76489A, XTAL_7_15909MHz/2) /* 3.579545 MHz */ |
| 426 | 473 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) |
| 474 | ||
| 475 | MDRV_CARTSLOT_ADD("cart", coleco_cartslot) | |
| 427 | 476 | MACHINE_DRIVER_END |
| 428 | 477 | |
| 429 | 478 | static MACHINE_DRIVER_START( czz50 ) |
| r3978 | r3979 | |
| 446 | 495 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 447 | 496 | MDRV_SOUND_ADD("sn76489a", SN76489A, XTAL_7_15909MHz/2) // ??? |
| 448 | 497 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) |
| 498 | ||
| 499 | MDRV_CARTSLOT_ADD("cart", czz50_cartslot) | |
| 449 | 500 | MACHINE_DRIVER_END |
| 450 | 501 | |
| 451 | 502 | static MACHINE_DRIVER_START( dina ) |
| r3978 | r3979 | |
| 459 | 510 | ROM_START (coleco) |
| 460 | 511 | ROM_REGION( 0x10000, "main", 0 ) |
| 461 | 512 | ROM_LOAD( "coleco.rom", 0x0000, 0x2000, CRC(3aa93ef3) SHA1(45bedc4cbdeac66c7df59e9e599195c778d86a92) ) |
| 462 | ROM_CART_LOAD( | |
| 513 | ROM_CART_LOAD( | |
| 463 | 514 | ROM_END |
| 464 | 515 | |
| 465 | 516 | ROM_START (colecoa) |
| 466 | 517 | // differences to 0x3aa93ef3 modified characters, added a pad 2 related fix |
| 467 | 518 | ROM_REGION( 0x10000, "main", 0 ) |
| 468 | 519 | ROM_LOAD( "colecoa.rom", 0x0000, 0x2000, CRC(39bb16fc) SHA1(99ba9be24ada3e86e5c17aeecb7a2d68c5edfe59) ) |
| 469 | ROM_CART_LOAD( | |
| 520 | ROM_CART_LOAD( | |
| 470 | 521 | ROM_END |
| 471 | 522 | |
| 472 | 523 | ROM_START (colecob) |
| 473 | 524 | ROM_REGION( 0x10000, "main", 0 ) |
| 474 | 525 | ROM_LOAD( "svi603.rom", 0x0000, 0x2000, CRC(19e91b82) SHA1(8a30abe5ffef810b0f99b86db38b1b3c9d259b78) ) |
| 475 | ROM_CART_LOAD( | |
| 526 | ROM_CART_LOAD( | |
| 476 | 527 | ROM_END |
| 477 | 528 | |
| 478 | 529 | ROM_START( czz50 ) |
| r3978 | r3979 | |
| 484 | 535 | #define rom_dina rom_czz50 |
| 485 | 536 | #define rom_prsarcde rom_czz50 |
| 486 | 537 | |
| 487 | /* System Configuration */ | |
| 488 | 538 | |
| 489 | static int coleco_cart_verify(const UINT8 *cartdata, size_t size) | |
| 490 | { | |
| 491 | int retval = IMAGE_VERIFY_FAIL; | |
| 492 | ||
| 493 | /* Verify the file is in Colecovision format */ | |
| 494 | if ((cartdata[0] == 0xAA) && (cartdata[1] == 0x55)) /* Production Cartridge */ | |
| 495 | retval = IMAGE_VERIFY_PASS; | |
| 496 | if ((cartdata[0] == 0x55) && (cartdata[1] == 0xAA)) /* "Test" Cartridge. Some games use this method to skip ColecoVision title screen and delay */ | |
| 497 | retval = IMAGE_VERIFY_PASS; | |
| 498 | ||
| 499 | return retval; | |
| 500 | } | |
| 501 | ||
| 502 | static void coleco_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) | |
| 503 | { | |
| 504 | /* cartslot */ | |
| 505 | switch(state) | |
| 506 | { | |
| 507 | /* --- the following bits of info are returned as pointers to data or functions --- */ | |
| 508 | case MESS_DEVINFO_PTR_VERIFY: info->imgverify = coleco_cart_verify; break; | |
| 509 | ||
| 510 | default: cartslot_device_getinfo(devclass, state, info); break; | |
| 511 | } | |
| 512 | } | |
| 513 | ||
| 514 | static SYSTEM_CONFIG_START( coleco ) | |
| 515 | CONFIG_DEVICE(coleco_cartslot_getinfo) | |
| 516 | SYSTEM_CONFIG_END | |
| 517 | ||
| 518 | static DEVICE_IMAGE_LOAD( czz50_cart ) | |
| 519 | { | |
| 520 | int size = image_length(image); | |
| 521 | UINT8 *ptr = memory_region(image->machine, "main") + 0x8000; | |
| 522 | ||
| 523 | if (image_fread(image, ptr, size ) != size) | |
| 524 | { | |
| 525 | return INIT_FAIL; | |
| 526 | } | |
| 527 | ||
| 528 | return INIT_PASS; | |
| 529 | } | |
| 530 | ||
| 531 | static void czz50_cartslot_getinfo( const mess_device_class *devclass, UINT32 state, union devinfo *info ) | |
| 532 | { | |
| 533 | switch( state ) | |
| 534 | { | |
| 535 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 536 | case MESS_DEVINFO_PTR_LOAD: info->load = DEVICE_IMAGE_LOAD_NAME(czz50_cart); break; | |
| 537 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "rom,col,bin"); break; | |
| 538 | ||
| 539 | default: cartslot_device_getinfo( devclass, state, info ); break; | |
| 540 | } | |
| 541 | } | |
| 542 | ||
| 543 | static SYSTEM_CONFIG_START( czz50 ) | |
| 544 | CONFIG_DEVICE(czz50_cartslot_getinfo) | |
| 545 | SYSTEM_CONFIG_END | |
| 546 | ||
| 547 | 539 | /* System Drivers */ |
| 548 | 540 | |
| 549 | 541 | // YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME FLAGS |
| 550 | CONS( 1982, coleco, 0, 0, coleco, coleco, 0, coleco, "Coleco", "ColecoVision", 0 ) | |
| 551 | CONS( 1982, colecoa, coleco, 0, coleco, coleco, 0, coleco, "Coleco", "ColecoVision (Thick Characters)", 0 ) | |
| 552 | CONS( 1983, colecob, coleco, 0, coleco, coleco, 0, coleco, "Spectravideo", "SVI-603 Coleco Game Adapter", 0 ) | |
| 553 | CONS( 1986, czz50, 0, 0, czz50, czz50, 0, czz50, "Bit Corporation", "Chuang Zao Zhe 50", 0 ) | |
| 554 | CONS( 1988, dina, czz50, 0, dina, czz50, 0, czz50, "Telegames", "Dina", 0 ) | |
| 555 | CONS( 1988, prsarcde, czz50, 0, czz50, czz50, 0, czz50, "Telegames", "Personal Arcade", 0 ) | |
| 542 | CONS( 1982, coleco, 0, 0, coleco, coleco, 0, 0, "Coleco", "ColecoVision", 0 ) | |
| 543 | CONS( 1982, colecoa, coleco, 0, coleco, coleco, 0, 0, "Coleco", "ColecoVision (Thick Characters)", 0 ) | |
| 544 | CONS( 1983, colecob, coleco, 0, coleco, coleco, 0, 0, "Spectravideo", "SVI-603 Coleco Game Adapter", 0 ) | |
| 545 | CONS( 1986, czz50, 0, 0, czz50, czz50, 0, 0, "Bit Corporation", "Chuang Zao Zhe 50", 0 ) | |
| 546 | CONS( 1988, dina, czz50, 0, dina, czz50, 0, 0, "Telegames", "Dina", 0 ) | |
| 547 | CONS( 1988, prsarcde, czz50, 0, czz50, czz50, 0, 0, "Telegames", "Personal Arcade", 0 ) |
| r3978 | r3979 | |
|---|---|---|
| 669 | 669 | MDRV_MACHINE_START( apf_m1000 ) |
| 670 | 670 | |
| 671 | 671 | MDRV_CASSETTE_REMOVE( "cassette" ) |
| 672 | MDRV_CARTSLOT_ADD("cart", default_cartslot) | |
| 672 | 673 | MACHINE_DRIVER_END |
| 673 | 674 | |
| 674 | 675 | |
| r3978 | r3979 | |
| 689 | 690 | ROM_REGION(0x10000+0x0800,"main",0) |
| 690 | 691 | ROM_LOAD("apf_4000.rom",0x010000, 0x0800, CRC(2a331a33) SHA1(387b90882cd0b66c192d9cbaa3bec250f897e4f1)) |
| 691 | 692 | // ROM_LOAD("apf-m1000rom.bin",0x010000, 0x0800, CRC(cc6ac840) SHA1(1110a234bcad99bd0894ad44c591389d16376ca4)) |
| 692 | ROM_CART_LOAD( | |
| 693 | ROM_CART_LOAD( | |
| 693 | 694 | ROM_END |
| 694 | 695 | |
| 695 | 696 | |
| r3978 | r3979 | |
| 716 | 717 | CONFIG_DEVICE(apfimag_floppy_getinfo) |
| 717 | 718 | SYSTEM_CONFIG_END |
| 718 | 719 | |
| 719 | static SYSTEM_CONFIG_START(apfm1000) | |
| 720 | CONFIG_DEVICE(cartslot_device_getinfo) | |
| 721 | SYSTEM_CONFIG_END | |
| 722 | 720 | |
| 723 | 721 | /*************************************************************************** |
| 724 | 722 | |
| r3978 | r3979 | |
| 728 | 726 | |
| 729 | 727 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME */ |
| 730 | 728 | COMP(1977, apfimag, 0, 0, apf_imagination, apf_imagination, 0, apfimag, "APF Electronics Inc", "APF Imagination Machine" ,GAME_NOT_WORKING) |
| 731 | CONS(1978, apfm1000, 0, 0, apf_m1000, apf_m1000, 0, | |
| 729 | CONS(1978, apfm1000, 0, 0, apf_m1000, apf_m1000, 0, |
| r3978 | r3979 | |
|---|---|---|
| 253 | 253 | ROM_LOAD("dsp1data.bin", 0x000000, 0x000800, CRC(4b02d66d) SHA1(1534f4403d2a0f68ba6e35186fe7595d33de34b1)) |
| 254 | 254 | ROM_END |
| 255 | 255 | |
| 256 | ||
| 257 | ||
| 258 | 256 | /*************************************************************************** |
| 259 | 257 | |
| 260 | System configuration(s) | |
| 261 | ||
| 262 | ***************************************************************************/ | |
| 263 | ||
| 264 | static SYSTEM_CONFIG_START(snes) | |
| 265 | CONFIG_DEVICE(snes_cartslot_getinfo) | |
| 266 | SYSTEM_CONFIG_END | |
| 267 | ||
| 268 | ||
| 269 | ||
| 270 | /*************************************************************************** | |
| 271 | ||
| 272 | 258 | Game driver(s) |
| 273 | 259 | |
| 274 | 260 | ***************************************************************************/ |
| 275 | 261 | |
| 276 | 262 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME FLAGS */ |
| 277 | CONS( 1989, snes, 0, 0, snes, snes, 0, snes, "Nintendo", "Super Nintendo Entertainment System (NTSC)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 278 | CONS( 1991, snespal, snes, 0, snespal, snes, 0, snes, "Nintendo", "Super Nintendo Entertainment System (PAL)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 263 | CONS( 1989, snes, 0, 0, snes, snes, 0, 0, "Nintendo", "Super Nintendo Entertainment System (NTSC)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) | |
| 264 | CONS( 1991, snespal, snes, 0, snespal, snes, 0, 0, "Nintendo", "Super Nintendo Entertainment System (PAL)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) |
| r3978 | r3979 | |
|---|---|---|
| 151 | 151 | } |
| 152 | 152 | } |
| 153 | 153 | |
| 154 | const cartslot_interface vector_cartslot = | |
| 155 | { | |
| 156 | "emr", | |
| 157 | 0, | |
| 158 | NULL, | |
| 159 | NULL, | |
| 160 | NULL, | |
| 161 | NULL | |
| 162 | }; | |
| 154 | 163 | |
| 155 | 164 | /* Machine driver */ |
| 156 | 165 | static MACHINE_DRIVER_START( vector06 ) |
| r3978 | r3979 | |
| 187 | 196 | |
| 188 | 197 | MDRV_CASSETTE_ADD( "cassette", vector_cassette_config ) |
| 189 | 198 | |
| 190 | MDRV_WD1793_ADD("wd1793", default_wd17xx_interface ) | |
| 199 | MDRV_WD1793_ADD("wd1793", default_wd17xx_interface ) | |
| 200 | ||
| 201 | MDRV_CARTSLOT_ADD("cart", vector_cartslot ) | |
| 191 | 202 | MACHINE_DRIVER_END |
| 192 | 203 | |
| 193 | 204 | /* ROM definition */ |
| r3978 | r3979 | |
| 206 | 217 | ROMX_LOAD( "bootos.rt", 0x10000, 0x0200, CRC(46bef038) SHA1(6732f4a360cd38112c53c458842d31f5b035cf59), ROM_BIOS(5)) |
| 207 | 218 | ROM_SYSTEM_BIOS(5, "boot512", "Boot 512") |
| 208 | 219 | ROMX_LOAD( "boot512.rt", 0x10000, 0x0200, CRC(a0b1c6b2) SHA1(f6fe15cb0974aed30f9b7aa72133324a66d1ed3f), ROM_BIOS(6)) |
| 209 | ROM_CART_LOAD( | |
| 220 | ROM_CART_LOAD( | |
| 210 | 221 | ROM_END |
| 211 | 222 | |
| 212 | 223 | static SYSTEM_CONFIG_START(vector06) |
| 213 | 224 | CONFIG_RAM_DEFAULT(64 * 1024) |
| 214 | CONFIG_DEVICE(cartslot_device_getinfo) | |
| 215 | 225 | CONFIG_DEVICE(vector_floppy_getinfo); |
| 216 | 226 | SYSTEM_CONFIG_END |
| 217 | 227 |
| r3978 | r3979 | |
|---|---|---|
| 294 | 294 | MDRV_VIA6522_ADD("via6522_3", 0, vc1541_via3) |
| 295 | 295 | MDRV_VIA6522_ADD("via6522_4", 0, vc20_via4) |
| 296 | 296 | MDRV_VIA6522_ADD("via6522_5", 0, vc20_via5) |
| 297 | ||
| 298 | MDRV_CARTSLOT_ADD("cart1", vic20_cartslot) | |
| 299 | MDRV_CARTSLOT_ADD("cart2", vic20_cartslot) | |
| 297 | 300 | MACHINE_DRIVER_END |
| 298 | 301 | |
| 299 | 302 | |
| r3978 | r3979 | |
| 443 | 446 | |
| 444 | 447 | |
| 445 | 448 | static SYSTEM_CONFIG_START(vic20) |
| 446 | CONFIG_DEVICE(vic20_cartslot_getinfo) | |
| 447 | 449 | CONFIG_DEVICE(cbmfloppy_device_getinfo) |
| 448 | 450 | CONFIG_RAM_DEFAULT(5 * 1024) |
| 449 | 451 | CONFIG_RAM(8 * 1024) |
| r3978 | r3979 | |
| 453 | 455 | SYSTEM_CONFIG_END |
| 454 | 456 | |
| 455 | 457 | static SYSTEM_CONFIG_START(vic20v) |
| 456 | CONFIG_DEVICE(vic20_cartslot_getinfo) | |
| 457 | 458 | CONFIG_DEVICE(vc1541_device_getinfo) |
| 458 | 459 | CONFIG_RAM_DEFAULT(5 * 1024) |
| 459 | 460 | CONFIG_RAM(8 * 1024) |
| r3978 | r3979 | |
|---|---|---|
| 601 | 601 | state_save_register_global(machine, state->baudx4); |
| 602 | 602 | } |
| 603 | 603 | |
| 604 | static DEVICE_IMAGE_LOAD( ql_cart ) | |
| 605 | { | |
| 606 | UINT8 *ptr = memory_region(image->machine, "main") + 0x00c000; | |
| 607 | int filesize = image_length(image); | |
| 608 | ||
| 609 | if (filesize <= 16 * 1024) | |
| 610 | { | |
| 611 | if (image_fread(image, ptr, filesize) == filesize) | |
| 612 | { | |
| 613 | memory_install_readwrite8_handler(cpu_get_address_space(image->machine->cpu[0], ADDRESS_SPACE_PROGRAM), 0x00c000, 0x00ffff, 0, 0, SMH_BANK1, SMH_UNMAP); | |
| 614 | ||
| 615 | return INIT_PASS; | |
| 616 | } | |
| 617 | } | |
| 618 | ||
| 619 | return INIT_FAIL; | |
| 620 | } | |
| 621 | ||
| 622 | static const cartslot_interface ql_cartslot = | |
| 623 | { | |
| 624 | "bin", | |
| 625 | 0, | |
| 626 | NULL, | |
| 627 | DEVICE_IMAGE_LOAD_NAME(ql_cart), | |
| 628 | NULL, | |
| 629 | NULL | |
| 630 | }; | |
| 631 | ||
| 604 | 632 | static MACHINE_DRIVER_START( ql ) |
| 605 | 633 | MDRV_DRIVER_DATA(ql_state) |
| 606 | 634 | |
| r3978 | r3979 | |
| 641 | 669 | |
| 642 | 670 | /* quickload */ |
| 643 | 671 | MDRV_QUICKLOAD_ADD(ql, "bas", 0) |
| 672 | ||
| 673 | MDRV_CARTSLOT_ADD("cart", ql_cartslot ) | |
| 644 | 674 | MACHINE_DRIVER_END |
| 645 | 675 | |
| 646 | 676 | static MACHINE_DRIVER_START( opd ) |
| r3978 | r3979 | |
| 652 | 682 | |
| 653 | 683 | MDRV_CPU_ADD("ipc", I8051, X4) |
| 654 | 684 | MDRV_CPU_IO_MAP(ipc_io_map, 0) |
| 685 | ||
| 686 | MDRV_CARTSLOT_REMOVE("cart") | |
| 655 | 687 | MACHINE_DRIVER_END |
| 656 | 688 | |
| 657 | 689 | static MACHINE_DRIVER_START( ql_ntsc ) |
| r3978 | r3979 | |
| 852 | 884 | } |
| 853 | 885 | } |
| 854 | 886 | |
| 855 | static DEVICE_IMAGE_LOAD( ql_cart ) | |
| 856 | { | |
| 857 | UINT8 *ptr = memory_region(image->machine, "main") + 0x00c000; | |
| 858 | int filesize = image_length(image); | |
| 859 | ||
| 860 | if (filesize <= 16 * 1024) | |
| 861 | { | |
| 862 | if (image_fread(image, ptr, filesize) == filesize) | |
| 863 | { | |
| 864 | memory_install_readwrite8_handler(cpu_get_address_space(image->machine->cpu[0], ADDRESS_SPACE_PROGRAM), 0x00c000, 0x00ffff, 0, 0, SMH_BANK1, SMH_UNMAP); | |
| 865 | ||
| 866 | return INIT_PASS; | |
| 867 | } | |
| 868 | } | |
| 869 | ||
| 870 | return INIT_FAIL; | |
| 871 | } | |
| 872 | ||
| 873 | static void ql_cartslot_getinfo( const mess_device_class *devclass, UINT32 state, union devinfo *info ) | |
| 874 | { | |
| 875 | switch( state ) | |
| 876 | { | |
| 877 | /* --- the following bits of info are returned as 64-bit signed integers --- */ | |
| 878 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 879 | ||
| 880 | /* --- the following bits of info are returned as pointers to data or functions --- */ | |
| 881 | case MESS_DEVINFO_PTR_LOAD: info->load = DEVICE_IMAGE_LOAD_NAME(ql_cart); break; | |
| 882 | ||
| 883 | /* --- the following bits of info are returned as NULL-terminated strings --- */ | |
| 884 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "bin"); break; | |
| 885 | ||
| 886 | default: cartslot_device_getinfo( devclass, state, info ); break; | |
| 887 | } | |
| 888 | } | |
| 889 | ||
| 890 | 887 | static DEVICE_IMAGE_LOAD( ql_floppy ) |
| 891 | 888 | { |
| 892 | 889 | if (image_has_been_created(image)) |
| r3978 | r3979 | |
| 943 | 940 | CONFIG_RAM (640 * 1024) // 512K expansion |
| 944 | 941 | CONFIG_RAM (896 * 1024) // Trump Card |
| 945 | 942 | CONFIG_DEVICE(ql_serial_getinfo) |
| 946 | CONFIG_DEVICE(ql_cartslot_getinfo) | |
| 947 | 943 | CONFIG_DEVICE(ql_floppy_getinfo) |
| 948 | 944 | SYSTEM_CONFIG_END |
| 949 | 945 |
| r3978 | r3979 | |
|---|---|---|
| 2443 | 2443 | MDRV_SOUND_ROUTE(1, "right", 1.0) |
| 2444 | 2444 | |
| 2445 | 2445 | MDRV_CDROM_ADD( "cdrom" ) |
| 2446 | ||
| 2447 | MDRV_CARTSLOT_ADD("cart", default_cartslot ) | |
| 2446 | 2448 | MACHINE_DRIVER_END |
| 2447 | 2449 | |
| 2448 | 2450 | |
| r3978 | r3979 | |
| 2455 | 2457 | ROMX_LOAD("sega1003.bin", 0x00000000, 0x00080000, CRC(b3c63c25) SHA1(7b23b53d62de0f29a23e423d0fe751dfb469c2fa), ROM_BIOS(2)) |
| 2456 | 2458 | ROM_SYSTEM_BIOS(2, "100", "Japan v1.00 (940921)") |
| 2457 | 2459 | ROMX_LOAD("sega_100.bin", 0x00000000, 0x00080000, CRC(2aba43c2) SHA1(2b8cb4f87580683eb4d760e4ed210813d667f0a2), ROM_BIOS(3)) |
| 2458 | ROM_CART_LOAD( | |
| 2460 | ROM_CART_LOAD( | |
| 2459 | 2461 | ROM_REGION( 0x080000, "slave", 0 ) /* SH2 code */ |
| 2460 | 2462 | ROM_COPY( "main",0,0,0x080000) |
| 2461 | 2463 | ROM_END |
| r3978 | r3979 | |
| 2467 | 2469 | ROMX_LOAD("sega_101a.bin", 0x00000000, 0x00080000, CRC(4afcf0fa) SHA1(faa8ea183a6d7bbe5d4e03bb1332519800d3fbc3), ROM_BIOS(1)) |
| 2468 | 2470 | ROM_SYSTEM_BIOS(1, "100a", "Overseas v1.00a (941115)") |
| 2469 | 2471 | ROMX_LOAD("sega_100a.bin", 0x00000000, 0x00080000, CRC(f90f0089) SHA1(3bb41feb82838ab9a35601ac666de5aacfd17a58), ROM_BIOS(2)) |
| 2470 | ROM_CART_LOAD( | |
| 2472 | ROM_CART_LOAD( | |
| 2471 | 2473 | ROM_REGION( 0x080000, "slave", 0 ) /* SH2 code */ |
| 2472 | 2474 | ROM_COPY( "main",0,0,0x080000) |
| 2473 | 2475 | ROM_END |
| r3978 | r3979 | |
| 2478 | 2480 | ROMX_LOAD("sega_101a.bin", 0x00000000, 0x00080000, CRC(4afcf0fa) SHA1(faa8ea183a6d7bbe5d4e03bb1332519800d3fbc3), ROM_BIOS(1)) |
| 2479 | 2481 | ROM_SYSTEM_BIOS(1, "100a", "Overseas v1.00a (941115)") |
| 2480 | 2482 | ROMX_LOAD("sega_100a.bin", 0x00000000, 0x00080000, CRC(f90f0089) SHA1(3bb41feb82838ab9a35601ac666de5aacfd17a58), ROM_BIOS(2)) |
| 2481 | ROM_CART_LOAD( | |
| 2483 | ROM_CART_LOAD( | |
| 2482 | 2484 | ROM_REGION( 0x080000, "slave", 0 ) /* SH2 code */ |
| 2483 | 2485 | ROM_COPY( "main",0,0,0x080000) |
| 2484 | 2486 | ROM_END |
| r3978 | r3979 | |
| 2486 | 2488 | ROM_START(vsaturn) |
| 2487 | 2489 | ROM_REGION( 0x480000, "main", 0 ) /* SH2 code */ |
| 2488 | 2490 | ROM_LOAD("vsaturn.bin", 0x00000000, 0x00080000, CRC(e4d61811) SHA1(4154e11959f3d5639b11d7902b3a393a99fb5776)) |
| 2489 | ROM_CART_LOAD( | |
| 2491 | ROM_CART_LOAD( | |
| 2490 | 2492 | ROM_REGION( 0x080000, "slave", 0 ) /* SH2 code */ |
| 2491 | 2493 | ROM_COPY( "main",0,0,0x080000) |
| 2492 | 2494 | ROM_END |
| r3978 | r3979 | |
| 2494 | 2496 | ROM_START(hisaturn) |
| 2495 | 2497 | ROM_REGION( 0x480000, "main", 0 ) /* SH2 code */ |
| 2496 | 2498 | ROM_LOAD("hisaturn.bin", 0x00000000, 0x00080000, CRC(721e1b60) SHA1(49d8493008fa715ca0c94d99817a5439d6f2c796)) |
| 2497 | ROM_CART_LOAD( | |
| 2499 | ROM_CART_LOAD( | |
| 2498 | 2500 | ROM_REGION( 0x080000, "slave", 0 ) /* SH2 code */ |
| 2499 | 2501 | ROM_COPY( "main",0,0,0x080000) |
| 2500 | 2502 | ROM_END |
| 2501 | 2503 | |
| 2502 | ||
| 2503 | static SYSTEM_CONFIG_START( saturn ) | |
| 2504 | CONFIG_DEVICE(cartslot_device_getinfo) | |
| 2505 | SYSTEM_CONFIG_END | |
| 2506 | ||
| 2507 | 2504 | /*************************************************************************** |
| 2508 | 2505 | |
| 2509 | 2506 | Game driver(s) |
| r3978 | r3979 | |
| 2511 | 2508 | ***************************************************************************/ |
| 2512 | 2509 | |
| 2513 | 2510 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME FLAGS */ |
| 2514 | CONS( 1994, saturn, 0, 0, saturn, saturn, saturnus, saturn, "Sega", "Saturn (USA)", GAME_NOT_WORKING ) | |
| 2515 | CONS( 1994, saturnjp, saturn, 0, saturn, saturn, saturnjp, saturn, "Sega", "Saturn (Japan)", GAME_NOT_WORKING ) | |
| 2516 | CONS( 1994, saturneu, saturn, 0, saturn, saturn, saturneu, saturn, "Sega", "Saturn (PAL)", GAME_NOT_WORKING ) | |
| 2517 | CONS( 1995, vsaturn, saturn, 0, saturn, saturn, saturnjp, saturn, "JVC", "V-Saturn", GAME_NOT_WORKING ) | |
| 2518 | CONS( 1995, hisaturn, saturn, 0, saturn, saturn, saturnjp, saturn, "Hitachi", "HiSaturn", GAME_NOT_WORKING ) | |
| 2511 | CONS( 1994, saturn, 0, 0, saturn, saturn, saturnus, 0, "Sega", "Saturn (USA)", GAME_NOT_WORKING ) | |
| 2512 | CONS( 1994, saturnjp, saturn, 0, saturn, saturn, saturnjp, 0, "Sega", "Saturn (Japan)", GAME_NOT_WORKING ) | |
| 2513 | CONS( 1994, saturneu, saturn, 0, saturn, saturn, saturneu, 0, "Sega", "Saturn (PAL)", GAME_NOT_WORKING ) | |
| 2514 | CONS( 1995, vsaturn, saturn, 0, saturn, saturn, saturnjp, 0, "JVC", "V-Saturn", GAME_NOT_WORKING ) | |
| 2515 | CONS( 1995, hisaturn, saturn, 0, saturn, saturn, saturnjp, 0, "Hitachi", "HiSaturn", GAME_NOT_WORKING ) | |
| 2519 | 2516 | |
| 2520 | 2517 |
| r3978 | r3979 | |
|---|---|---|
| 270 | 270 | } |
| 271 | 271 | }; |
| 272 | 272 | |
| 273 | static const cartslot_interface amiga_cartslot = | |
| 274 | { | |
| 275 | "rom,bin", | |
| 276 | 0, | |
| 277 | NULL, | |
| 278 | NULL, | |
| 279 | NULL, | |
| 280 | NULL | |
| 281 | }; | |
| 282 | ||
| 273 | 283 | static MACHINE_DRIVER_START( ntsc ) |
| 274 | 284 | /* basic machine hardware */ |
| 275 | 285 | MDRV_CPU_ADD("main", M68000, AMIGA_68000_NTSC_CLOCK) |
| r3978 | r3979 | |
| 337 | 347 | static MACHINE_DRIVER_START( a1000n ) |
| 338 | 348 | MDRV_IMPORT_FROM(ntsc) |
| 339 | 349 | MDRV_CPU_MODIFY("main") |
| 340 | MDRV_CPU_PROGRAM_MAP(a1000_mem, 0) | |
| 350 | MDRV_CPU_PROGRAM_MAP(a1000_mem, 0) | |
| 341 | 351 | MACHINE_DRIVER_END |
| 342 | 352 | |
| 353 | ||
| 354 | static MACHINE_DRIVER_START( a500n ) | |
| 355 | MDRV_IMPORT_FROM(ntsc) | |
| 356 | MDRV_CARTSLOT_ADD("cart", amiga_cartslot) | |
| 357 | MACHINE_DRIVER_END | |
| 358 | ||
| 343 | 359 | static MACHINE_DRIVER_START( pal ) |
| 344 | 360 | MDRV_IMPORT_FROM(ntsc) |
| 345 | 361 | |
| r3978 | r3979 | |
| 359 | 375 | static MACHINE_DRIVER_START( a1000p ) |
| 360 | 376 | MDRV_IMPORT_FROM(pal) |
| 361 | 377 | MDRV_CPU_MODIFY("main") |
| 362 | MDRV_CPU_PROGRAM_MAP(a1000_mem, 0) | |
| 378 | MDRV_CPU_PROGRAM_MAP(a1000_mem, 0) | |
| 363 | 379 | MACHINE_DRIVER_END |
| 364 | 380 | |
| 365 | 381 | /*************************************************************************** |
| r3978 | r3979 | |
| 564 | 580 | |
| 565 | 581 | #define AMIGA_CART \ |
| 566 | 582 | ROM_REGION16_BE(0x080000, "user2", 0) \ |
| 567 | ROM_CART_LOAD( | |
| 583 | ROM_CART_LOAD( | |
| 568 | 584 | |
| 569 | 585 | |
| 570 | 586 | |
| r3978 | r3979 | |
| 598 | 614 | ***************************************************************************/ |
| 599 | 615 | |
| 600 | 616 | static SYSTEM_CONFIG_START(amiga) |
| 601 | CONFIG_DEVICE(cartslot_device_getinfo) | |
| 602 | 617 | CONFIG_DEVICE(amiga_floppy_getinfo) |
| 603 | 618 | SYSTEM_CONFIG_END |
| 604 | 619 | |
| 605 | static SYSTEM_CONFIG_START(a1000) | |
| 606 | CONFIG_DEVICE(amiga_floppy_getinfo) | |
| 607 | SYSTEM_CONFIG_END | |
| 608 | ||
| 609 | 620 | /*************************************************************************** |
| 610 | 621 | Game drivers |
| 611 | 622 | ***************************************************************************/ |
| 612 | 623 | |
| 613 | 624 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME FLAGS */ |
| 614 | COMP( 1985, a1000n, 0, 0, a1000n, amiga, amiga, a1000, "Commodore Business Machines Co.", "Amiga 1000 (NTSC)", GAME_IMPERFECT_GRAPHICS ) | |
| 615 | COMP( 1985, a1000p, a1000n, 0, a1000p, amiga, amiga, a1000, "Commodore Business Machines Co.", "Amiga 1000 (PAL)", GAME_IMPERFECT_GRAPHICS ) | |
| 616 | COMP( 1987, a500n, 0, 0, ntsc, amiga, amiga, amiga, "Commodore Business Machines Co.", "Amiga 500 (NTSC, OCS)", GAME_IMPERFECT_GRAPHICS ) | |
| 625 | COMP( 1985, a1000n, 0, 0, a1000n, amiga, amiga, amiga, "Commodore Business Machines Co.", "Amiga 1000 (NTSC)", GAME_IMPERFECT_GRAPHICS ) | |
| 626 | COMP( 1985, a1000p, a1000n, 0, a1000p, amiga, amiga, amiga, "Commodore Business Machines Co.", "Amiga 1000 (PAL)", GAME_IMPERFECT_GRAPHICS ) | |
| 627 | COMP( 1987, a500n, 0, 0, a500n, amiga, amiga, amiga, "Commodore Business Machines Co.", "Amiga 500 (NTSC, OCS)", GAME_IMPERFECT_GRAPHICS ) | |
| 617 | 628 | COMP( 1987, a500p, a500n, 0, pal, amiga, amiga, amiga, "Commodore Business Machines Co.", "Amiga 500 (PAL, OCS)", GAME_IMPERFECT_GRAPHICS ) |
| 618 | 629 | COMP( 1991, cdtv, 0, 0, cdtv, cdtv, cdtv, 0, "Commodore Business Machines Co.", "CDTV (NTSC)", GAME_IMPERFECT_GRAPHICS ) |
| r3978 | r3979 | |
|---|---|---|
| 257 | 257 | MDRV_SOUND_ADD("custom", CUSTOM, 0) |
| 258 | 258 | MDRV_SOUND_CONFIG(channelf_sound_interface) |
| 259 | 259 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) |
| 260 | ||
| 261 | MDRV_CARTSLOT_ADD("cart", default_cartslot) | |
| 260 | 262 | MACHINE_DRIVER_END |
| 261 | 263 | |
| 262 | 264 | ROM_START( channelf ) |
| r3978 | r3979 | |
| 266 | 268 | ROM_SYSTEM_BIOS( 1, "sl31253", "Channel F" ) |
| 267 | 269 | ROMX_LOAD("sl31253.rom", 0x0000, 0x0400, CRC(04694ed9) SHA1(81193965a374d77b99b4743d317824b53c3e3c78), ROM_BIOS(2)) |
| 268 | 270 | ROM_LOAD("sl31254.rom", 0x0400, 0x0400, CRC(9c047ba3) SHA1(8f70d1b74483ba3a37e86cf16c849d601a8c3d2c)) |
| 269 | ROM_CART_LOAD( | |
| 271 | ROM_CART_LOAD( | |
| 270 | 272 | ROM_END |
| 271 | 273 | |
| 272 | static SYSTEM_CONFIG_START( channelf ) | |
| 273 | CONFIG_DEVICE(cartslot_device_getinfo) | |
| 274 | SYSTEM_CONFIG_END | |
| 275 | ||
| 276 | 274 | /*************************************************************************** |
| 277 | 275 | |
| 278 | 276 | Game driver(s) |
| r3978 | r3979 | |
| 280 | 278 | ***************************************************************************/ |
| 281 | 279 | |
| 282 | 280 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME FLAGS */ |
| 283 | CONS( 1976, channelf, 0, 0, channelf, channelf, 0, | |
| 281 | CONS( 1976, channelf, 0, 0, channelf, channelf, 0, 0 |
| r3978 | r3979 | |
|---|---|---|
| 119 | 119 | |
| 120 | 120 | MDRV_CASSETTE_ADD( "cassette", orion_cassette_config ) |
| 121 | 121 | |
| 122 | MDRV_WD1793_ADD("wd1793", default_wd17xx_interface ) | |
| 122 | MDRV_WD1793_ADD("wd1793", default_wd17xx_interface ) | |
| 123 | ||
| 124 | MDRV_CARTSLOT_ADD("cart", default_cartslot ) | |
| 123 | 125 | MACHINE_DRIVER_END |
| 124 | 126 | |
| 125 | 127 | static MACHINE_DRIVER_START( orion128ms ) |
| r3978 | r3979 | |
| 176 | 178 | MDRV_CASSETTE_ADD( "cassette", orion_cassette_config ) |
| 177 | 179 | |
| 178 | 180 | MDRV_WD1793_ADD("wd1793", default_wd17xx_interface ) |
| 181 | ||
| 182 | MDRV_CARTSLOT_ADD("cart", default_cartslot ) | |
| 179 | 183 | MACHINE_DRIVER_END |
| 180 | 184 | |
| 181 | 185 | static MACHINE_DRIVER_START( orionz80ms ) |
| r3978 | r3979 | |
| 221 | 225 | |
| 222 | 226 | MDRV_CASSETTE_ADD( "cassette", orion_cassette_config ) |
| 223 | 227 | |
| 224 | MDRV_WD1793_ADD("wd1793", default_wd17xx_interface ) | |
| 228 | MDRV_WD1793_ADD("wd1793", default_wd17xx_interface ) | |
| 229 | ||
| 230 | MDRV_CARTSLOT_ADD("cart", default_cartslot ) | |
| 225 | 231 | MACHINE_DRIVER_END |
| 226 | 232 | |
| 227 | 233 | |
| r3978 | r3979 | |
| 245 | 251 | |
| 246 | 252 | static SYSTEM_CONFIG_START(orion128) |
| 247 | 253 | CONFIG_RAM_DEFAULT(256 * 1024) |
| 248 | CONFIG_DEVICE(cartslot_device_getinfo) | |
| 249 | 254 | CONFIG_DEVICE(orion_floppy_getinfo); |
| 250 | 255 | SYSTEM_CONFIG_END |
| 251 | 256 | |
| 252 | 257 | static SYSTEM_CONFIG_START(orionz80) |
| 253 | 258 | CONFIG_RAM_DEFAULT(512 * 1024) |
| 254 | CONFIG_DEVICE(cartslot_device_getinfo) | |
| 255 | 259 | CONFIG_DEVICE(orion_floppy_getinfo); |
| 256 | 260 | SYSTEM_CONFIG_END |
| 257 | 261 | |
| 258 | 262 | static SYSTEM_CONFIG_START(orionpro) |
| 259 | 263 | CONFIG_RAM_DEFAULT(512 * 1024) |
| 260 | CONFIG_DEVICE(cartslot_device_getinfo) | |
| 261 | 264 | CONFIG_DEVICE(orion_floppy_getinfo); |
| 262 | 265 | SYSTEM_CONFIG_END |
| 263 | 266 | |
| r3978 | r3979 | |
| 269 | 272 | ROMX_LOAD( "m2rk.bin", 0x0f800, 0x0800, CRC(2025c234) SHA1(caf86918629be951fe698cddcdf4589f07e2fb96), ROM_BIOS(1) ) |
| 270 | 273 | ROM_SYSTEM_BIOS( 1, "m2_2rk", "Version 3.2.2 rk" ) |
| 271 | 274 | ROMX_LOAD( "m2_2rk.bin", 0x0f800, 0x0800, CRC(fc662351) SHA1(7c6de67127fae5869281449de1c503597c0c058e), ROM_BIOS(2) ) |
| 272 | ROM_CART_LOAD( | |
| 275 | ROM_CART_LOAD( | |
| 273 | 276 | ROM_END |
| 274 | 277 | |
| 275 | 278 | ROM_START( orionms ) |
| 276 | 279 | ROM_REGION( 0x30000, "main", ROMREGION_ERASEFF ) |
| 277 | 280 | ROM_LOAD( "ms7007.bin", 0x0f800, 0x0800, CRC(c6174ba3) SHA1(8f9a42c3e09684718fe4121a8408e7860129d26f) ) |
| 278 | ROM_CART_LOAD( | |
| 281 | ROM_CART_LOAD( | |
| 279 | 282 | ROM_END |
| 280 | 283 | |
| 281 | 284 | ROM_START( orionz80 ) |
| r3978 | r3979 | |
| 290 | 293 | ROMX_LOAD( "m34zrk.bin", 0x0f800, 0x0800, CRC(787c3903) SHA1(476c1c0b88e5efb582292eebec15e24d054c8851), ROM_BIOS(4) ) |
| 291 | 294 | ROM_SYSTEM_BIOS( 4, "m35zrkd", "Version 3.5 zrkd" ) |
| 292 | 295 | ROMX_LOAD( "m35zrkd.bin", 0x0f800, 0x0800, CRC(9368b38f) SHA1(64a77f22119d40c9b18b64d78ad12acc6fff9efb), ROM_BIOS(5) ) |
| 293 | ROM_CART_LOAD( | |
| 296 | ROM_CART_LOAD( | |
| 294 | 297 | ROM_END |
| 295 | 298 | |
| 296 | 299 | ROM_START( orionide ) |
| 297 | 300 | ROM_REGION( 0x30000, "main", ROMREGION_ERASEFF ) |
| 298 | 301 | ROM_LOAD( "m35zrkh.bin", 0x0f800, 0x0800, CRC(b7745f28) SHA1(c3bd3e662db7ec56ecbab54bf6b3a4c26200d0bb) ) |
| 299 | ROM_CART_LOAD( | |
| 302 | ROM_CART_LOAD( | |
| 300 | 303 | ROM_END |
| 301 | 304 | |
| 302 | 305 | ROM_START( orionzms ) |
| r3978 | r3979 | |
| 307 | 310 | ROMX_LOAD( "m34zms.bin", 0x0f800, 0x0800, CRC(0f87a80b) SHA1(ab1121092e61268d8162ed8a7d4fd081016a409a), ROM_BIOS(2) ) |
| 308 | 311 | ROM_SYSTEM_BIOS( 2, "m35zmsd", "Version 3.5 zmsd" ) |
| 309 | 312 | ROMX_LOAD( "m35zmsd.bin", 0x0f800, 0x0800, CRC(f714ff37) SHA1(fbe9514adb3384aff146cbedd4fede37ce9591e1), ROM_BIOS(3) ) |
| 310 | ROM_CART_LOAD( | |
| 313 | ROM_CART_LOAD( | |
| 311 | 314 | ROM_END |
| 312 | 315 | |
| 313 | 316 | ROM_START( orionidm ) |
| 314 | 317 | ROM_REGION( 0x30000, "main", ROMREGION_ERASEFF ) |
| 315 | 318 | ROM_LOAD( "m35zmsh.bin", 0x0f800, 0x0800, CRC(01e66df4) SHA1(8c785a3c32fe3eacda73ec79157b41a6e4b63ba8) ) |
| 316 | ROM_CART_LOAD( | |
| 319 | ROM_CART_LOAD( | |
| 317 | 320 | ROM_END |
| 318 | 321 | |
| 319 | 322 | ROM_START( orionpro ) |
| 320 | 323 | ROM_REGION( 0x32000, "main", ROMREGION_ERASEFF ) |
| 321 | ROM_CART_LOAD( | |
| 324 | ROM_CART_LOAD( | |
| 322 | 325 | ROM_SYSTEM_BIOS( 0, "ver21", "Version 2.1" ) |
| 323 | 326 | ROMX_LOAD( "rom1-210.bin", 0x20000, 0x2000, CRC(8e1a0c78) SHA1(61c8a5ed596ce7e3fd32da920dcc80dc5375b421), ROM_BIOS(1) ) |
| 324 | 327 | ROMX_LOAD( "rom2-210.bin", 0x22000, 0x10000, CRC(7cb7a49b) SHA1(601f3dd61db323407c4874fd7f23c10dccac0209), ROM_BIOS(1) ) |
| r3978 | r3979 | |
|---|---|---|
| 409 | 409 | pia_reset(); |
| 410 | 410 | } |
| 411 | 411 | |
| 412 | /* Machine Driver */ | |
| 413 | 412 | |
| 414 | static MACHINE_DRIVER_START( crvision ) | |
| 415 | // basic machine hardware | |
| 416 | MDRV_CPU_ADD("main", M6502, 2000000) | |
| 417 | MDRV_CPU_PROGRAM_MAP(crvision_map, 0) | |
| 418 | MDRV_CPU_VBLANK_INT("main", crvision_int) | |
| 419 | ||
| 420 | MDRV_MACHINE_START( crvision ) | |
| 421 | MDRV_MACHINE_RESET( crvision ) | |
| 422 | ||
| 423 | // video hardware | |
| 424 | MDRV_IMPORT_FROM(tms9928a) | |
| 425 | MDRV_SCREEN_MODIFY("main") | |
| 426 | MDRV_SCREEN_REFRESH_RATE(10738635.0/2/342/262) | |
| 427 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ | |
| 428 | ||
| 429 | // sound hardware | |
| 430 | MDRV_SPEAKER_STANDARD_MONO("mono") | |
| 431 | MDRV_SOUND_ADD("sn76489", SN76489, 2000000) | |
| 432 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) | |
| 433 | ||
| 434 | MDRV_CASSETTE_ADD( "cassette", default_cassette_config ) | |
| 435 | MACHINE_DRIVER_END | |
| 436 | ||
| 437 | static MACHINE_DRIVER_START( fnvision ) | |
| 438 | MDRV_IMPORT_FROM( crvision ) | |
| 439 | MDRV_MACHINE_START( fnvision ) | |
| 440 | MDRV_SCREEN_MODIFY("main") | |
| 441 | MDRV_SCREEN_REFRESH_RATE(10738635.0/2/342/313) | |
| 442 | ||
| 443 | MDRV_CASSETTE_REMOVE( "cassette" ) | |
| 444 | MACHINE_DRIVER_END | |
| 445 | ||
| 446 | /* ROMs */ | |
| 447 | ||
| 448 | ROM_START( crvision ) | |
| 449 | ROM_REGION( 0x10000, "main", 0 ) | |
| 450 | ROM_LOAD( "crvision.rom", 0xc000, 0x0800, CRC(c3c590c6) SHA1(5ac620c529e4965efb5560fe824854a44c983757) ) | |
| 451 | ROM_END | |
| 452 | ||
| 453 | ROM_START( fnvision ) | |
| 454 | ROM_REGION( 0x10000, "main", 0 ) | |
| 455 | ROM_LOAD( "funboot.rom", 0xc000, 0x0800, CRC(05602697) SHA1(c280b20c8074ba9abb4be4338b538361dfae517f) ) | |
| 456 | ROM_END | |
| 457 | ||
| 458 | /* System Configuration */ | |
| 459 | ||
| 460 | 413 | static DEVICE_IMAGE_LOAD( crvision_cart ) |
| 461 | 414 | { |
| 462 | 415 | int size = image_length(image); |
| r3978 | r3979 | |
| 522 | 475 | return INIT_PASS; |
| 523 | 476 | } |
| 524 | 477 | |
| 525 | static | |
| 478 | static | |
| 526 | 479 | { |
| 527 | /* cartslot */ | |
| 528 | switch(state) | |
| 529 | { | |
| 530 | /* --- the following bits of info are returned as 64-bit signed integers --- */ | |
| 531 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 532 | case MESS_DEVINFO_INT_MUST_BE_LOADED: info->i = 1; break; | |
| 480 | "rom", | |
| 481 | 1, | |
| 482 | NULL, | |
| 483 | DEVICE_IMAGE_LOAD_NAME(crvision_cart), | |
| 484 | NULL, | |
| 485 | NULL | |
| 486 | }; | |
| 533 | 487 | |
| 534 | /* --- the following bits of info are returned as pointers to data or functions --- */ | |
| 535 | case MESS_DEVINFO_PTR_LOAD: info->load = DEVICE_IMAGE_LOAD_NAME(crvision_cart); break; | |
| 488 | /* Machine Driver */ | |
| 536 | 489 | |
| 537 | /* --- the following bits of info are returned as NULL-terminated strings --- */ | |
| 538 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "rom"); break; | |
| 490 | static MACHINE_DRIVER_START( crvision ) | |
| 491 | // basic machine hardware | |
| 492 | MDRV_CPU_ADD("main", M6502, 2000000) | |
| 493 | MDRV_CPU_PROGRAM_MAP(crvision_map, 0) | |
| 494 | MDRV_CPU_VBLANK_INT("main", crvision_int) | |
| 539 | 495 | |
| 540 | default: cartslot_device_getinfo(devclass, state, info); break; | |
| 541 | } | |
| 542 | } | |
| 496 | MDRV_MACHINE_START( crvision ) | |
| 497 | MDRV_MACHINE_RESET( crvision ) | |
| 543 | 498 | |
| 544 | static SYSTEM_CONFIG_START( crvision ) | |
| 545 | CONFIG_DEVICE(crvision_cartslot_getinfo) | |
| 546 | SYSTEM_CONFIG_END | |
| 499 | // video hardware | |
| 500 | MDRV_IMPORT_FROM(tms9928a) | |
| 501 | MDRV_SCREEN_MODIFY("main") | |
| 502 | MDRV_SCREEN_REFRESH_RATE(10738635.0/2/342/262) | |
| 503 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ | |
| 547 | 504 | |
| 548 | static SYSTEM_CONFIG_START( fnvision ) | |
| 549 | CONFIG_DEVICE(crvision_cartslot_getinfo) | |
| 550 | SYSTEM_CONFIG_END | |
| 505 | // sound hardware | |
| 506 | MDRV_SPEAKER_STANDARD_MONO("mono") | |
| 507 | MDRV_SOUND_ADD("sn76489", SN76489, 2000000) | |
| 508 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) | |
| 551 | 509 | |
| 510 | MDRV_CASSETTE_ADD( "cassette", default_cassette_config ) | |
| 511 | ||
| 512 | MDRV_CARTSLOT_ADD("cart", crvision_cartslot ) | |
| 513 | MACHINE_DRIVER_END | |
| 514 | ||
| 515 | static MACHINE_DRIVER_START( fnvision ) | |
| 516 | MDRV_IMPORT_FROM( crvision ) | |
| 517 | MDRV_MACHINE_START( fnvision ) | |
| 518 | MDRV_SCREEN_MODIFY("main") | |
| 519 | MDRV_SCREEN_REFRESH_RATE(10738635.0/2/342/313) | |
| 520 | ||
| 521 | MDRV_CASSETTE_REMOVE( "cassette" ) | |
| 522 | MACHINE_DRIVER_END | |
| 523 | ||
| 524 | /* ROMs */ | |
| 525 | ||
| 526 | ROM_START( crvision ) | |
| 527 | ROM_REGION( 0x10000, "main", 0 ) | |
| 528 | ROM_LOAD( "crvision.rom", 0xc000, 0x0800, CRC(c3c590c6) SHA1(5ac620c529e4965efb5560fe824854a44c983757) ) | |
| 529 | ROM_END | |
| 530 | ||
| 531 | ROM_START( fnvision ) | |
| 532 | ROM_REGION( 0x10000, "main", 0 ) | |
| 533 | ROM_LOAD( "funboot.rom", 0xc000, 0x0800, CRC(05602697) SHA1(c280b20c8074ba9abb4be4338b538361dfae517f) ) | |
| 534 | ROM_END | |
| 535 | ||
| 552 | 536 | /* System Drivers */ |
| 553 | 537 | |
| 554 | 538 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME */ |
| 555 | COMP( 1981, crvision, 0, 0, crvision, crvision, 0, crvision, "Video Technology", "CreatiVision (NTSC)", GAME_SUPPORTS_SAVE ) | |
| 556 | CONS( 1983, fnvision, crvision, 0, fnvision, crvision, 0, fnvision, "Video Technology", "FunVision Computer Video Games System (PAL)", GAME_SUPPORTS_SAVE ) | |
| 539 | COMP( 1981, crvision, 0, 0, crvision, crvision, 0, 0, "Video Technology", "CreatiVision (NTSC)", GAME_SUPPORTS_SAVE ) | |
| 540 | CONS( 1983, fnvision, crvision, 0, fnvision, crvision, 0, 0, "Video Technology", "FunVision Computer Video Games System (PAL)", GAME_SUPPORTS_SAVE ) |
| r3978 | r3979 | |
|---|---|---|
| 258 | 258 | #define CLK_PAL 1773447 |
| 259 | 259 | #define CLK_NTSC 1789772 |
| 260 | 260 | |
| 261 | static const cartslot_interface a7800_cartslot = | |
| 262 | { | |
| 263 | "a78", | |
| 264 | 0, | |
| 265 | DEVICE_START_NAME(a7800_cart), | |
| 266 | DEVICE_IMAGE_LOAD_NAME(a7800_cart), | |
| 267 | NULL, | |
| 268 | a7800_partialhash | |
| 269 | }; | |
| 261 | 270 | |
| 262 | 271 | |
| 263 | 272 | static MACHINE_DRIVER_START( a7800 ) |
| r3978 | r3979 | |
| 290 | 299 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) |
| 291 | 300 | MDRV_SOUND_ADD("pokey", POKEY, CLK_NTSC) |
| 292 | 301 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) |
| 302 | ||
| 303 | MDRV_CARTSLOT_ADD("cart", a7800_cartslot) | |
| 293 | 304 | MACHINE_DRIVER_END |
| 294 | 305 | |
| 295 | 306 | |
| r3978 | r3979 | |
| 351 | 362 | ROM_LOAD ("7800pal.rom", 0xc000, 0x4000, CRC(d5b61170) SHA1(5a140136a16d1d83e4ff32a19409ca376a8df874)) |
| 352 | 363 | ROM_END |
| 353 | 364 | |
| 354 | static void a7800_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) | |
| 355 | { | |
| 356 | /* cartslot */ | |
| 357 | switch(state) | |
| 358 | { | |
| 359 | /* --- the following bits of info are returned as 64-bit signed integers --- */ | |
| 360 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 361 | ||
| 362 | /* --- the following bits of info are returned as pointers to data or functions --- */ | |
| 363 | case MESS_DEVINFO_PTR_START: info->start = DEVICE_START_NAME(a7800_cart); break; | |
| 364 | case MESS_DEVINFO_PTR_LOAD: info->load = DEVICE_IMAGE_LOAD_NAME(a7800_cart); break; | |
| 365 | case MESS_DEVINFO_PTR_PARTIAL_HASH: info->partialhash = a7800_partialhash; break; | |
| 366 | ||
| 367 | /* --- the following bits of info are returned as NULL-terminated strings --- */ | |
| 368 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "a78"); break; | |
| 369 | ||
| 370 | default: cartslot_device_getinfo(devclass, state, info); break; | |
| 371 | } | |
| 372 | } | |
| 373 | ||
| 374 | static SYSTEM_CONFIG_START(a7800) | |
| 375 | CONFIG_DEVICE(a7800_cartslot_getinfo) | |
| 376 | SYSTEM_CONFIG_END | |
| 377 | ||
| 378 | 365 | /*************************************************************************** |
| 379 | 366 | |
| 380 | 367 | Game driver(s) |
| r3978 | r3979 | |
| 382 | 369 | ***************************************************************************/ |
| 383 | 370 | |
| 384 | 371 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME */ |
| 385 | CONS( 1986, a7800, 0, 0, a7800_ntsc, a7800, a7800_ntsc, a7800, "Atari", "Atari 7800 NTSC" , 0) | |
| 386 | CONS( 1986, a7800p, a7800, 0, a7800_pal, a7800, a7800_pal, a7800, "Atari", "Atari 7800 PAL" , 0) | |
| 372 | CONS( 1986, a7800, 0, 0, a7800_ntsc, a7800, a7800_ntsc, 0, "Atari", "Atari 7800 NTSC" , 0) | |
| 373 | CONS( 1986, a7800p, a7800, 0, a7800_pal, a7800, a7800_pal, 0, "Atari", "Atari 7800 PAL" , 0) |
| r3978 | r3979 | |
|---|---|---|
| 237 | 237 | MDRV_SOUND_ADD("custom", CUSTOM, 0) |
| 238 | 238 | MDRV_SOUND_CONFIG(gmaster_sound_interface) |
| 239 | 239 | MDRV_SOUND_ROUTE(0, "gmaster", 0.50) |
| 240 | ||
| 241 | MDRV_CARTSLOT_ADD("cart", default_cartslot) | |
| 240 | 242 | MACHINE_DRIVER_END |
| 241 | 243 | |
| 242 | 244 | |
| r3978 | r3979 | |
| 244 | 246 | ROM_REGION(0x10000,"main", 0) |
| 245 | 247 | ROM_LOAD("gmaster.bin", 0x0000, 0x1000, CRC(05cc45e5) SHA1(05d73638dea9657ccc2791c0202d9074a4782c1e) ) |
| 246 | 248 | // ROM_CART_LOAD(0, "bin", 0x8000, 0x7f00, 0) |
| 247 | ROM_CART_LOAD( | |
| 249 | ROM_CART_LOAD( | |
| 248 | 250 | ROM_END |
| 249 | 251 | |
| 250 | 252 | static DRIVER_INIT( gmaster ) |
| r3978 | r3979 | |
| 288 | 290 | } |
| 289 | 291 | #endif |
| 290 | 292 | |
| 291 | static SYSTEM_CONFIG_START(gmaster) | |
| 292 | CONFIG_DEVICE(cartslot_device_getinfo) | |
| 293 | SYSTEM_CONFIG_END | |
| 294 | ||
| 295 | 293 | /* YEAR NAME PARENT MACHINE INPUT INIT |
| 296 | 294 | COMPANY FULLNAME */ |
| 297 | CONS( 1990, gmaster, 0, 0, gmaster, gmaster, gmaster, | |
| 295 | CONS( 1990, gmaster, 0, 0, gmaster, gmaster, gmaster, 0 | |
| 298 | 296 |
| r3978 | r3979 | |
|---|---|---|
| 379 | 379 | cpu_set_input_line(device->machine->cpu[1], 0, PULSE_LINE); |
| 380 | 380 | } |
| 381 | 381 | |
| 382 | static const cartslot_interface intv_cartslot = | |
| 383 | { | |
| 384 | "int,rom", | |
| 385 | 1, | |
| 386 | DEVICE_START_NAME(intv_cart), | |
| 387 | DEVICE_IMAGE_LOAD_NAME(intv_cart), | |
| 388 | NULL, | |
| 389 | NULL | |
| 390 | }; | |
| 391 | ||
| 392 | ||
| 393 | static const cartslot_interface intvkbd_cartslot = | |
| 394 | { | |
| 395 | "int,rom,bin,itv", | |
| 396 | 0, | |
| 397 | NULL, | |
| 398 | DEVICE_IMAGE_LOAD_NAME(intvkbd_cart), | |
| 399 | NULL, | |
| 400 | NULL | |
| 401 | }; | |
| 402 | ||
| 382 | 403 | static MACHINE_DRIVER_START( intv ) |
| 383 | 404 | /* basic machine hardware */ |
| 384 | 405 | MDRV_CPU_ADD("main", CP1610, XTAL_3_579545MHz/4) /* Colorburst/4 */ |
| r3978 | r3979 | |
| 407 | 428 | MDRV_SOUND_ADD("ay8910", AY8910, XTAL_3_579545MHz/2) |
| 408 | 429 | MDRV_SOUND_CONFIG(intv_ay8910_interface) |
| 409 | 430 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) |
| 431 | ||
| 432 | MDRV_CARTSLOT_ADD("cart", intv_cartslot ) | |
| 410 | 433 | MACHINE_DRIVER_END |
| 411 | 434 | |
| 412 | 435 | |
| r3978 | r3979 | |
| 424 | 447 | /* video hardware */ |
| 425 | 448 | MDRV_GFXDECODE(intvkbd) |
| 426 | 449 | MDRV_VIDEO_UPDATE(intvkbd) |
| 450 | ||
| 451 | MDRV_CARTSLOT_REMOVE("cart") | |
| 452 | MDRV_CARTSLOT_ADD("cart1", intvkbd_cartslot ) | |
| 453 | MDRV_CARTSLOT_ADD("cart2", intvkbd_cartslot ) | |
| 427 | 454 | MACHINE_DRIVER_END |
| 428 | 455 | |
| 429 | 456 | ROM_START(intv) |
| r3978 | r3979 | |
| 456 | 483 | ROM_LOAD( "4c52.u34", 0x0000, 0x0800, CRC(cbeb2e96) SHA1(f0e17adcd278fb376c9f90833c7fbbb60193dbe3)) |
| 457 | 484 | ROM_END |
| 458 | 485 | |
| 459 | static void intv_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) | |
| 460 | { | |
| 461 | /* cartslot */ | |
| 462 | switch(state) | |
| 463 | { | |
| 464 | /* --- the following bits of info are returned as 64-bit signed integers --- */ | |
| 465 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 466 | case MESS_DEVINFO_INT_MUST_BE_LOADED: info->i = 1; break; | |
| 467 | 486 | |
| 468 | /* --- the following bits of info are returned as pointers to data or functions --- */ | |
| 469 | case MESS_DEVINFO_PTR_START: info->start = DEVICE_START_NAME(intv_cart); break; | |
| 470 | case MESS_DEVINFO_PTR_LOAD: info->load = DEVICE_IMAGE_LOAD_NAME(intv_cart); break; | |
| 471 | ||
| 472 | /* --- the following bits of info are returned as NULL-terminated strings --- */ | |
| 473 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "int,rom"); break; | |
| 474 | ||
| 475 | default: cartslot_device_getinfo(devclass, state, info); break; | |
| 476 | } | |
| 477 | } | |
| 478 | ||
| 479 | static SYSTEM_CONFIG_START(intv) | |
| 480 | CONFIG_DEVICE(intv_cartslot_getinfo) | |
| 481 | SYSTEM_CONFIG_END | |
| 482 | ||
| 483 | static void intvkbd_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) | |
| 484 | { | |
| 485 | /* cartslot */ | |
| 486 | switch(state) | |
| 487 | { | |
| 488 | /* --- the following bits of info are returned as 64-bit signed integers --- */ | |
| 489 | case MESS_DEVINFO_INT_COUNT: info->i = 2; break; | |
| 490 | ||
| 491 | /* --- the following bits of info are returned as pointers to data or functions --- */ | |
| 492 | case MESS_DEVINFO_PTR_LOAD: info->load = DEVICE_IMAGE_LOAD_NAME(intvkbd_cart); break; | |
| 493 | ||
| 494 | /* --- the following bits of info are returned as NULL-terminated strings --- */ | |
| 495 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "int,rom,bin,itv"); break; | |
| 496 | ||
| 497 | default: cartslot_device_getinfo(devclass, state, info); break; | |
| 498 | } | |
| 499 | } | |
| 500 | ||
| 501 | 487 | #ifdef UNUSED_FUNCTION |
| 502 | 488 | static void intvkbd_cassette_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 503 | 489 | { |
| r3978 | r3979 | |
| 518 | 504 | } |
| 519 | 505 | #endif |
| 520 | 506 | |
| 521 | static SYSTEM_CONFIG_START(intvkbd) | |
| 522 | CONFIG_DEVICE(intvkbd_cartslot_getinfo) | |
| 523 | #if 0 | |
| 524 | CONFIG_DEVICE(intvkbd_cassette_getinfo) | |
| 525 | #endif | |
| 526 | SYSTEM_CONFIG_END | |
| 527 | 507 | |
| 528 | 508 | /*************************************************************************** |
| 529 | 509 | |
| r3978 | r3979 | |
| 531 | 511 | |
| 532 | 512 | ***************************************************************************/ |
| 533 | 513 | |
| 534 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME */ | |
| 535 | CONS( 1979, intv, 0, 0, intv, intv, 0, intv, "Mattel", "Intellivision", 0 ) | |
| 536 | CONS( 1981, intvsrs, 0, 0, intv, intv, 0, intv, "Mattel", "Intellivision (Sears)", 0 ) | |
| 537 | COMP( 1981, intvkbd, 0, 0, intvkbd, intvkbd, 0, intvkbd, "Mattel", "Intellivision Keyboard Component (Unreleased)", GAME_NOT_WORKING) | |
| 514 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME */ | |
| 515 | CONS( 1979, intv, 0, 0, intv, intv, 0, 0, "Mattel", "Intellivision", 0 ) | |
| 516 | CONS( 1981, intvsrs, 0, 0, intv, intv, 0, 0, "Mattel", "Intellivision (Sears)", 0 ) | |
| 517 | COMP( 1981, intvkbd, 0, 0, intvkbd, intvkbd, 0, 0, "Mattel", "Intellivision Keyboard Component (Unreleased)", GAME_NOT_WORKING) |
| r3978 | r3979 | |
|---|---|---|
| 299 | 299 | CASSETTE_STOPPED |
| 300 | 300 | }; |
| 301 | 301 | |
| 302 | static const cartslot_interface jupiter_cartslot = | |
| 303 | { | |
| 304 | "ace", | |
| 305 | 0, | |
| 306 | NULL, | |
| 307 | DEVICE_IMAGE_LOAD_NAME(jupiter_ace), | |
| 308 | NULL, | |
| 309 | NULL | |
| 310 | }; | |
| 302 | 311 | |
| 303 | 312 | /* machine definition */ |
| 304 | 313 | static MACHINE_DRIVER_START( jupiter ) |
| r3978 | r3979 | |
| 328 | 337 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) |
| 329 | 338 | |
| 330 | 339 | MDRV_CASSETTE_ADD( "cassette", jupiter_cassette_config ) |
| 340 | ||
| 341 | MDRV_CARTSLOT_ADD("cart", jupiter_cartslot ) | |
| 331 | 342 | MACHINE_DRIVER_END |
| 332 | 343 | |
| 333 | 344 | |
| r3978 | r3979 | |
| 337 | 348 | ROM_LOAD ("jupiter.hi", 0x1000, 0x1000, CRC(4009f636) SHA1(98c5d4bcd74bcf014268cf4c00b2007ea5cc21f3)) |
| 338 | 349 | ROM_END |
| 339 | 350 | |
| 340 | ||
| 341 | static void jupiter_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) | |
| 342 | { | |
| 343 | /* cartslot */ | |
| 344 | switch(state) | |
| 345 | { | |
| 346 | /* --- the following bits of info are returned as 64-bit signed integers --- */ | |
| 347 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 348 | ||
| 349 | /* --- the following bits of info are returned as pointers to data or functions --- */ | |
| 350 | case MESS_DEVINFO_PTR_LOAD: info->load = DEVICE_IMAGE_LOAD_NAME(jupiter_ace); break; | |
| 351 | ||
| 352 | /* --- the following bits of info are returned as NULL-terminated strings --- */ | |
| 353 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "ace"); break; | |
| 354 | ||
| 355 | default: cartslot_device_getinfo(devclass, state, info); break; | |
| 356 | } | |
| 357 | } | |
| 358 | ||
| 359 | ||
| 360 | static SYSTEM_CONFIG_START(jupiter) | |
| 361 | CONFIG_DEVICE(jupiter_cartslot_getinfo) | |
| 362 | SYSTEM_CONFIG_END | |
| 363 | ||
| 364 | ||
| 365 | 351 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME */ |
| 366 | COMP( 1981, jupiter, 0, 0, jupiter, jupiter, 0, | |
| 352 | COMP( 1981, jupiter, 0, 0, jupiter, jupiter, 0, 0 |
| r3978 | r3979 | |
|---|---|---|
| 308 | 308 | CASSETTE_PLAY |
| 309 | 309 | }; |
| 310 | 310 | |
| 311 | const cartslot_interface vtech1_cartslot = | |
| 312 | { | |
| 313 | "rom", | |
| 314 | 0, | |
| 315 | NULL, | |
| 316 | NULL, | |
| 317 | NULL, | |
| 318 | NULL | |
| 319 | }; | |
| 320 | ||
| 311 | 321 | static MACHINE_DRIVER_START(laser110) |
| 312 | 322 | /* basic machine hardware */ |
| 313 | 323 | MDRV_CPU_ADD("main", Z80, VTECH1_CLK) /* 3.57950 MHz */ |
| r3978 | r3979 | |
| 342 | 352 | MDRV_Z80BIN_QUICKLOAD_ADD(vtech1, 1.5) |
| 343 | 353 | |
| 344 | 354 | MDRV_CASSETTE_ADD( "cassette", laser_cassette_config ) |
| 355 | ||
| 356 | MDRV_CARTSLOT_ADD("cart", vtech1_cartslot ) | |
| 345 | 357 | MACHINE_DRIVER_END |
| 346 | 358 | |
| 347 | 359 | static MACHINE_DRIVER_START(laser200) |
| r3978 | r3979 | |
| 375 | 387 | ROM_REGION(0x6800, "main", 0) |
| 376 | 388 | ROM_LOAD("vtechv12.u09", 0x0000, 0x2000, CRC(99412d43) SHA1(6aed8872a0818be8e1b08ecdfd92acbe57a3c96d)) |
| 377 | 389 | ROM_LOAD("vtechv12.u10", 0x2000, 0x2000, CRC(e4c24e8b) SHA1(9d8fb3d24f3d4175b485cf081a2d5b98158ab2fb)) |
| 378 | ROM_CART_LOAD( | |
| 390 | ROM_CART_LOAD( | |
| 379 | 391 | ROM_END |
| 380 | 392 | |
| 381 | 393 | /* The VZ-200 sold in Germany and the Netherlands came with BASIC V1.1, which |
| r3978 | r3979 | |
| 384 | 396 | ROM_REGION(0x6800, "main", 0) |
| 385 | 397 | ROM_LOAD("vtechv11.u09", 0x0000, 0x2000, NO_DUMP) |
| 386 | 398 | ROM_LOAD("vtechv11.u10", 0x2000, 0x2000, NO_DUMP) |
| 387 | ROM_CART_LOAD( | |
| 399 | ROM_CART_LOAD( | |
| 388 | 400 | ROM_END |
| 389 | 401 | |
| 390 | 402 | #define rom_las110de rom_laser110 |
| r3978 | r3979 | |
| 399 | 411 | ROM_REGION(0x6800, "main", 0) |
| 400 | 412 | ROM_LOAD("vtechv20.u09", 0x0000, 0x2000, CRC(cc854fe9) SHA1(6e66a309b8e6dc4f5b0b44e1ba5f680467353d66)) |
| 401 | 413 | ROM_LOAD("vtechv20.u10", 0x2000, 0x2000, CRC(7060f91a) SHA1(8f3c8f24f97ebb98f3c88d4e4ba1f91ffd563440)) |
| 402 | ROM_CART_LOAD( | |
| 414 | ROM_CART_LOAD( | |
| 403 | 415 | ROM_END |
| 404 | 416 | |
| 405 | 417 | #define rom_las210de rom_laser210 |
| r3978 | r3979 | |
| 411 | 423 | ROMX_LOAD("vtechv20.u12", 0x0000, 0x4000, CRC(613de12c) SHA1(f216c266bc09b0dbdbad720796e5ea9bc7d91e53), ROM_BIOS(1)) |
| 412 | 424 | ROM_SYSTEM_BIOS(1, "basic21", "BASIC V2.1 (hack)") |
| 413 | 425 | ROMX_LOAD("vtechv21.u12", 0x0000, 0x4000, CRC(f7df980f) SHA1(5ba14a7a2eedca331b033901080fa5d205e245ea), ROM_BIOS(2)) |
| 414 | ROM_CART_LOAD( | |
| 426 | ROM_CART_LOAD( | |
| 415 | 427 | ROM_END |
| 416 | 428 | |
| 417 | 429 | #define rom_vz300 rom_laser310 |
| r3978 | r3979 | |
| 496 | 508 | easily modified to work on another model. */ |
| 497 | 509 | |
| 498 | 510 | static SYSTEM_CONFIG_START(vtech1) |
| 499 | CONFIG_DEVICE(cartslot_device_getinfo) | |
| 500 | 511 | CONFIG_DEVICE(vtech1_floppy_getinfo) |
| 501 | 512 | CONFIG_RAM_DEFAULT (66 * 1024) /* with 64K memory expansion */ |
| 502 | 513 | CONFIG_RAM (4098 * 1024) /* with 4MB memory expansion */ |
| r3978 | r3979 | |
|---|---|---|
| 2944 | 2944 | CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED |
| 2945 | 2945 | }; |
| 2946 | 2946 | |
| 2947 | static const cartslot_interface cpcplus_cartslot = | |
| 2948 | { | |
| 2949 | "cpr,bin", | |
| 2950 | 1, | |
| 2951 | NULL, | |
| 2952 | DEVICE_IMAGE_LOAD_NAME(amstrad_plus_cartridge), | |
| 2953 | NULL, | |
| 2954 | NULL | |
| 2955 | }; | |
| 2947 | 2956 | |
| 2948 | 2957 | static MACHINE_DRIVER_START( amstrad ) |
| 2949 | 2958 | /* Machine hardware */ |
| r3978 | r3979 | |
| 3016 | 3025 | |
| 3017 | 3026 | MDRV_PALETTE_LENGTH(4096+48) // extended 12-bit palette, and standard 32 colour palette |
| 3018 | 3027 | MDRV_PALETTE_INIT(amstrad_plus) |
| 3028 | ||
| 3029 | MDRV_CARTSLOT_ADD("cart", cpcplus_cartslot) | |
| 3019 | 3030 | MACHINE_DRIVER_END |
| 3020 | 3031 | |
| 3021 | 3032 | |
| r3978 | r3979 | |
| 3038 | 3049 | |
| 3039 | 3050 | MDRV_CASSETTE_REMOVE( "cassette" ) |
| 3040 | 3051 | MDRV_NEC765A_REMOVE( "nec765" ) |
| 3052 | ||
| 3053 | MDRV_CARTSLOT_ADD("cart", cpcplus_cartslot) | |
| 3041 | 3054 | MACHINE_DRIVER_END |
| 3042 | 3055 | |
| 3043 | 3056 | |
| r3978 | r3979 | |
| 3187 | 3200 | } |
| 3188 | 3201 | } |
| 3189 | 3202 | |
| 3190 | ||
| 3191 | static void cpcplus_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) | |
| 3192 | { | |
| 3193 | /* cartslot */ | |
| 3194 | switch(state) | |
| 3195 | { | |
| 3196 | /* --- the following bits of info are returned as 64-bit signed integers --- */ | |
| 3197 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 3198 | case MESS_DEVINFO_INT_MUST_BE_LOADED: info->i = 1; break; | |
| 3199 | ||
| 3200 | /* --- the following bits of info are returned as pointers to data or functions --- */ | |
| 3201 | case MESS_DEVINFO_PTR_LOAD: info->load = DEVICE_IMAGE_LOAD_NAME(amstrad_plus_cartridge); break; | |
| 3202 | ||
| 3203 | /* --- the following bits of info are returned as NULL-terminated strings --- */ | |
| 3204 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "cpr,bin"); break; | |
| 3205 | ||
| 3206 | default: cartslot_device_getinfo(devclass, state, info); break; | |
| 3207 | } | |
| 3208 | } | |
| 3209 | ||
| 3210 | ||
| 3211 | 3203 | static void aleste_floppy_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 3212 | 3204 | { |
| 3213 | 3205 | /* floppy */ |
| r3978 | r3979 | |
| 3231 | 3223 | |
| 3232 | 3224 | static SYSTEM_CONFIG_START( cpcplus ) |
| 3233 | 3225 | CONFIG_IMPORT_FROM(cpc6128) |
| 3234 | CONFIG_DEVICE(cpcplus_cartslot_getinfo) | |
| 3235 | 3226 | SYSTEM_CONFIG_END |
| 3236 | 3227 | |
| 3237 | 3228 | |
| 3238 | 3229 | static SYSTEM_CONFIG_START( gx4000 ) |
| 3239 | CONFIG_RAM_DEFAULT(64 * 1024) // has 64k RAM | |
| 3240 | CONFIG_DEVICE(cpcplus_cartslot_getinfo) | |
| 3230 | CONFIG_RAM_DEFAULT(64 * 1024) // has 64k RAM | |
| 3241 | 3231 | SYSTEM_CONFIG_END |
| 3242 | 3232 | |
| 3243 | 3233 |
| r3978 | r3979 | |
|---|---|---|
| 302 | 302 | smsvdp_video_init( machine, &config_store ); |
| 303 | 303 | } |
| 304 | 304 | |
| 305 | static const cartslot_interface sms_cartslot = | |
| 306 | { | |
| 307 | "sms,bin", | |
| 308 | 0, | |
| 309 | DEVICE_START_NAME(sms_cart), | |
| 310 | DEVICE_IMAGE_LOAD_NAME(sms_cart), | |
| 311 | NULL, | |
| 312 | NULL | |
| 313 | }; | |
| 314 | ||
| 315 | static const cartslot_interface sg1000m3_cartslot = | |
| 316 | { | |
| 317 | "sms,bin", | |
| 318 | 1, | |
| 319 | DEVICE_START_NAME(sms_cart), | |
| 320 | DEVICE_IMAGE_LOAD_NAME(sms_cart), | |
| 321 | NULL, | |
| 322 | NULL | |
| 323 | }; | |
| 324 | ||
| 325 | static const cartslot_interface smssdisp_cartslot = | |
| 326 | { | |
| 327 | "sms,bin", | |
| 328 | 1, | |
| 329 | DEVICE_START_NAME(sms_cart), | |
| 330 | DEVICE_IMAGE_LOAD_NAME(sms_cart), | |
| 331 | NULL, | |
| 332 | NULL | |
| 333 | }; | |
| 334 | ||
| 335 | static const cartslot_interface gamegear_cartslot = | |
| 336 | { | |
| 337 | "gg,bin", | |
| 338 | 1, | |
| 339 | DEVICE_START_NAME(sms_cart), | |
| 340 | DEVICE_IMAGE_LOAD_NAME(sms_cart), | |
| 341 | NULL, | |
| 342 | NULL | |
| 343 | }; | |
| 344 | ||
| 305 | 345 | static MACHINE_DRIVER_START(sms1ntsc) |
| 306 | 346 | /* basic machine hardware */ |
| 307 | 347 | MDRV_CPU_ADD("main", Z80, XTAL_53_693175MHz/15) |
| r3978 | r3979 | |
| 328 | 368 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 329 | 369 | MDRV_SOUND_ADD("smsiii", SMSIII, XTAL_53_693175MHz/15) |
| 330 | 370 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) |
| 371 | ||
| 372 | MDRV_CARTSLOT_ADD("cart1", sms_cartslot ) | |
| 331 | 373 | MACHINE_DRIVER_END |
| 332 | 374 | |
| 333 | 375 | static MACHINE_DRIVER_START(sms2ntsc) |
| r3978 | r3979 | |
| 345 | 387 | /* Both CPUs seem to communicate with the VDP etc? */ |
| 346 | 388 | MDRV_CPU_IO_MAP(sms_io, 0) |
| 347 | 389 | |
| 390 | MDRV_CARTSLOT_MODIFY("cart1", smssdisp_cartslot ) | |
| 391 | MDRV_CARTSLOT_ADD("cart2", smssdisp_cartslot ) | |
| 392 | MDRV_CARTSLOT_ADD("cart3", smssdisp_cartslot ) | |
| 393 | MDRV_CARTSLOT_ADD("cart4", smssdisp_cartslot ) | |
| 394 | MDRV_CARTSLOT_ADD("cart5", smssdisp_cartslot ) | |
| 348 | 395 | MACHINE_DRIVER_END |
| 349 | 396 | |
| 350 | 397 | static MACHINE_DRIVER_START(sms1pal) |
| r3978 | r3979 | |
| 373 | 420 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 374 | 421 | MDRV_SOUND_ADD("smsiii", SMSIII, MASTER_CLOCK_PAL/15) |
| 375 | 422 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) |
| 423 | ||
| 424 | MDRV_CARTSLOT_ADD("cart1", sms_cartslot ) | |
| 376 | 425 | MACHINE_DRIVER_END |
| 377 | 426 | |
| 378 | 427 | static MACHINE_DRIVER_START(sms2pal) |
| r3978 | r3979 | |
| 387 | 436 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) |
| 388 | 437 | MACHINE_DRIVER_END |
| 389 | 438 | |
| 439 | static MACHINE_DRIVER_START(sg1000m3) | |
| 440 | MDRV_IMPORT_FROM(smsfm) | |
| 441 | ||
| 442 | MDRV_CARTSLOT_MODIFY("cart1", sg1000m3_cartslot ) | |
| 443 | MACHINE_DRIVER_END | |
| 444 | ||
| 390 | 445 | static MACHINE_DRIVER_START(sms2fm) |
| 391 | 446 | MDRV_IMPORT_FROM(sms2ntsc) |
| 392 | 447 | |
| r3978 | r3979 | |
| 419 | 474 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 420 | 475 | MDRV_SOUND_ADD("gamegear", GAMEGEAR, XTAL_53_693175MHz/15) |
| 421 | 476 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) |
| 477 | ||
| 478 | MDRV_CARTSLOT_ADD("cart1", gamegear_cartslot ) | |
| 422 | 479 | MACHINE_DRIVER_END |
| 423 | 480 | |
| 424 | 481 | ROM_START(sms1) |
| r3978 | r3979 | |
| 510 | 567 | |
| 511 | 568 | #define rom_gamegeaj rom_gamegear |
| 512 | 569 | |
| 513 | static void sms_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) | |
| 514 | { | |
| 515 | /* cartslot */ | |
| 516 | switch(state) | |
| 517 | { | |
| 518 | /* --- the following bits of info are returned as 64-bit signed integers --- */ | |
| 519 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 520 | case MESS_DEVINFO_INT_MUST_BE_LOADED: info->i = 0; break; | |
| 521 | ||
| 522 | /* --- the following bits of info are returned as pointers to data or functions --- */ | |
| 523 | case MESS_DEVINFO_PTR_START: info->start = DEVICE_START_NAME(sms_cart); break; | |
| 524 | case MESS_DEVINFO_PTR_LOAD: info->load = DEVICE_IMAGE_LOAD_NAME(sms_cart); break; | |
| 525 | ||
| 526 | /* --- the following bits of info are returned as NULL-terminated strings --- */ | |
| 527 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "sms,bin"); break; | |
| 528 | ||
| 529 | default: cartslot_device_getinfo(devclass, state, info); break; | |
| 530 | } | |
| 531 | } | |
| 532 | ||
| 533 | static SYSTEM_CONFIG_START(sms) | |
| 534 | CONFIG_DEVICE(sms_cartslot_getinfo) | |
| 535 | SYSTEM_CONFIG_END | |
| 536 | ||
| 537 | ||
| 538 | static void sg1000m3_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) { | |
| 539 | /* cartslot */ | |
| 540 | switch(state) { | |
| 541 | case MESS_DEVINFO_INT_MUST_BE_LOADED: info->i = 1; break; | |
| 542 | default: sms_cartslot_getinfo(devclass, state, info); break; | |
| 543 | } | |
| 544 | } | |
| 545 | ||
| 546 | static SYSTEM_CONFIG_START(sg1000m3) | |
| 547 | CONFIG_DEVICE(sg1000m3_cartslot_getinfo) | |
| 548 | SYSTEM_CONFIG_END | |
| 549 | ||
| 550 | static void smssdisp_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) { | |
| 551 | switch(state) { | |
| 552 | case MESS_DEVINFO_INT_COUNT: info->i = 5; break; | |
| 553 | case MESS_DEVINFO_INT_MUST_BE_LOADED: info->i = 1; break; | |
| 554 | default: sms_cartslot_getinfo(devclass, state, info); break; | |
| 555 | } | |
| 556 | } | |
| 557 | ||
| 558 | static SYSTEM_CONFIG_START(smssdisp) | |
| 559 | CONFIG_DEVICE(smssdisp_cartslot_getinfo) | |
| 560 | SYSTEM_CONFIG_END | |
| 561 | ||
| 562 | static void gamegear_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) | |
| 563 | { | |
| 564 | switch(state) | |
| 565 | { | |
| 566 | /* --- the following bits of info are returned as NULL-terminated strings --- */ | |
| 567 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 568 | case MESS_DEVINFO_INT_MUST_BE_LOADED: info->i = 1; break; | |
| 569 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "gg,bin"); break; | |
| 570 | ||
| 571 | default: sms_cartslot_getinfo(devclass, state, info); break; | |
| 572 | } | |
| 573 | } | |
| 574 | ||
| 575 | static SYSTEM_CONFIG_START(gamegear) | |
| 576 | CONFIG_DEVICE(gamegear_cartslot_getinfo) | |
| 577 | SYSTEM_CONFIG_END | |
| 578 | ||
| 579 | 570 | /*************************************************************************** |
| 580 | 571 | |
| 581 | 572 | Game driver(s) |
| r3978 | r3979 | |
| 622 | 613 | ***************************************************************************/ |
| 623 | 614 | |
| 624 | 615 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME FLAGS */ |
| 625 | CONS( 1984, sg1000m3, sms, 0, smsfm, sms, 0, sg1000m3, "Sega", "SG-1000 Mark III", FLAG_REGION_JAPAN | FLAG_FM ) | |
| 626 | CONS( 1986, sms1, sms, 0, sms1ntsc, sms, 0, sms, "Sega", "Master System I", FLAG_BIOS_FULL ) | |
| 627 | CONS( 1986, sms1pal, sms, 0, sms1pal, sms, 0, sms, "Sega", "Master System I (PAL)" , FLAG_BIOS_FULL ) | |
| 628 | CONS( 1986, smssdisp, sms, 0, smssdisp, sms, 0, smssdisp, "Sega", "Master System Store Display Unit", GAME_NOT_WORKING ) | |
| 629 | CONS( 1987, smsj, sms, 0, smsfm, sms, 0, sms, "Sega", "Master System (Japan)", FLAG_REGION_JAPAN | FLAG_BIOS_2000 | FLAG_FM ) | |
| 630 | CONS( 1990, sms, 0, 0, sms2ntsc, sms, 0, sms, "Sega", "Master System II", FLAG_BIOS_FULL ) | |
| 631 | CONS( 1990, smspal, sms, 0, sms2pal, sms, 0, sms, "Sega", "Master System II (PAL)", FLAG_BIOS_FULL ) | |
| 632 | CONS( 1990, sms2kr, sms, 0, sms2fm, sms, 0, sms, "Samsung", "Gam*Boy II (Korea)", FLAG_REGION_JAPAN | FLAG_BIOS_FULL | FLAG_FM ) | |
| 616 | CONS( 1984, sg1000m3, sms, 0, sg1000m3, sms, 0, 0, "Sega", "SG-1000 Mark III", FLAG_REGION_JAPAN | FLAG_FM ) | |
| 617 | CONS( 1986, sms1, sms, 0, sms1ntsc, sms, 0, 0, "Sega", "Master System I", FLAG_BIOS_FULL ) | |
| 618 | CONS( 1986, sms1pal, sms, 0, sms1pal, sms, 0, 0, "Sega", "Master System I (PAL)" , FLAG_BIOS_FULL ) | |
| 619 | CONS( 1986, smssdisp, sms, 0, smssdisp, sms, 0, 0, "Sega", "Master System Store Display Unit", GAME_NOT_WORKING ) | |
| 620 | CONS( 1987, smsj, sms, 0, smsfm, sms, 0, 0, "Sega", "Master System (Japan)", FLAG_REGION_JAPAN | FLAG_BIOS_2000 | FLAG_FM ) | |
| 621 | CONS( 1990, sms, 0, 0, sms2ntsc, sms, 0, 0, "Sega", "Master System II", FLAG_BIOS_FULL ) | |
| 622 | CONS( 1990, smspal, sms, 0, sms2pal, sms, 0, 0, "Sega", "Master System II (PAL)", FLAG_BIOS_FULL ) | |
| 623 | CONS( 1990, sms2kr, sms, 0, sms2fm, sms, 0, 0, "Samsung", "Gam*Boy II (Korea)", FLAG_REGION_JAPAN | FLAG_BIOS_FULL | FLAG_FM ) | |
| 633 | 624 | |
| 634 | CONS( 1990, gamegear, 0, sms, gamegear, gg, 0, gamegear, "Sega", "Game Gear (Europe/America)", FLAG_GAMEGEAR ) | |
| 635 | CONS( 1990, gamegeaj, gamegear, 0, gamegear, gg, 0, gamegear, "Sega", "Game Gear (Japan)", FLAG_REGION_JAPAN | FLAG_GAMEGEAR | FLAG_BIOS_0400 ) | |
| 625 | CONS( 1990, gamegear, 0, sms, gamegear, gg, 0, 0, "Sega", "Game Gear (Europe/America)", FLAG_GAMEGEAR ) | |
| 626 | CONS( 1990, gamegeaj, gamegear, 0, gamegear, gg, 0, 0, "Sega", "Game Gear (Japan)", FLAG_REGION_JAPAN | FLAG_GAMEGEAR | FLAG_BIOS_0400 ) |
| r3978 | r3979 | |
|---|---|---|
| 570 | 570 | NULL /* no IDLE callback */ |
| 571 | 571 | }; |
| 572 | 572 | |
| 573 | static const cartslot_interface tutor_cartslot = | |
| 574 | { | |
| 575 | "", | |
| 576 | 0, | |
| 577 | NULL, | |
| 578 | DEVICE_IMAGE_LOAD_NAME(tutor_cart), | |
| 579 | DEVICE_IMAGE_UNLOAD_NAME(tutor_cart), | |
| 580 | NULL | |
| 581 | }; | |
| 573 | 582 | |
| 574 | 583 | static MACHINE_DRIVER_START(tutor) |
| 575 | 584 | /* basic machine hardware */ |
| r3978 | r3979 | |
| 597 | 606 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.20) |
| 598 | 607 | |
| 599 | 608 | MDRV_CASSETTE_ADD( "cassette", default_cassette_config ) |
| 609 | ||
| 610 | MDRV_CARTSLOT_ADD("cart", tutor_cartslot ) | |
| 600 | 611 | MACHINE_DRIVER_END |
| 601 | 612 | |
| 602 | 613 | |
| r3978 | r3979 | |
| 610 | 621 | ROM_LOAD("tutor2.bin", 0x8000, 0x4000, CRC(05f228f5) SHA1(46a14a45f6f9e2c30663a2b87ce60c42768a78d0)) /* BASIC ROM */ |
| 611 | 622 | ROM_END |
| 612 | 623 | |
| 613 | static void tutor_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) | |
| 614 | { | |
| 615 | /* cartslot */ | |
| 616 | switch(state) | |
| 617 | { | |
| 618 | /* --- the following bits of info are returned as 64-bit signed integers --- */ | |
| 619 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 620 | ||
| 621 | /* --- the following bits of info are returned as pointers to data or functions --- */ | |
| 622 | case MESS_DEVINFO_PTR_LOAD: info->load = DEVICE_IMAGE_LOAD_NAME(tutor_cart); break; | |
| 623 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = DEVICE_IMAGE_UNLOAD_NAME(tutor_cart); break; | |
| 624 | ||
| 625 | /* --- the following bits of info are returned as NULL-terminated strings --- */ | |
| 626 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), ""); break; | |
| 627 | ||
| 628 | default: cartslot_device_getinfo(devclass, state, info); break; | |
| 629 | } | |
| 630 | } | |
| 631 | ||
| 632 | 624 | static void tutor_parallel_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 633 | 625 | { |
| 634 | 626 | /* parallel */ |
| r3978 | r3979 | |
| 649 | 641 | static SYSTEM_CONFIG_START(tutor) |
| 650 | 642 | |
| 651 | 643 | /* cartridge port is not emulated */ |
| 652 | CONFIG_DEVICE(tutor_cartslot_getinfo) | |
| 653 | 644 | CONFIG_DEVICE(tutor_parallel_getinfo) |
| 654 | 645 | |
| 655 | 646 | SYSTEM_CONFIG_END |
| r3978 | r3979 | |
|---|---|---|
| 165 | 165 | 0 |
| 166 | 166 | }; |
| 167 | 167 | |
| 168 | static const cartslot_interface odyssey2_cartslot = | |
| 169 | { | |
| 170 | "bin,rom", | |
| 171 | 1, | |
| 172 | NULL, | |
| 173 | NULL, | |
| 174 | NULL, | |
| 175 | NULL | |
| 176 | //case MESS_DEVINFO_PTR_VERIFY: info->imgverify = odyssey2_cart_verify; break; | |
| 177 | }; | |
| 178 | ||
| 168 | 179 | static MACHINE_DRIVER_START( odyssey2 ) |
| 169 | 180 | /* basic machine hardware */ |
| 170 | 181 | MDRV_CPU_ADD("main", I8048, ( ( XTAL_7_15909MHz * 3 ) / 4 ) ) |
| r3978 | r3979 | |
| 196 | 207 | MDRV_SOUND_CONFIG(the_voice_sp0256) |
| 197 | 208 | /* The Voice uses a speaker with its own volume control so the relative volumes to use are subjective, these sound good */ |
| 198 | 209 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) |
| 210 | ||
| 211 | MDRV_CARTSLOT_ADD("cart", odyssey2_cartslot) | |
| 199 | 212 | MACHINE_DRIVER_END |
| 200 | 213 | |
| 201 | 214 | static MACHINE_DRIVER_START( videopac ) |
| r3978 | r3979 | |
| 228 | 241 | MDRV_SOUND_ADD("sp0256_speech", SP0256, 3120000) |
| 229 | 242 | MDRV_SOUND_CONFIG(the_voice_sp0256) |
| 230 | 243 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) |
| 244 | ||
| 245 | MDRV_CARTSLOT_ADD("cart", odyssey2_cartslot) | |
| 231 | 246 | MACHINE_DRIVER_END |
| 232 | 247 | |
| 233 | 248 | static MACHINE_DRIVER_START( g7400 ) |
| r3978 | r3979 | |
| 256 | 271 | MDRV_SOUND_ADD("custom", CUSTOM, 3547000) |
| 257 | 272 | MDRV_SOUND_CONFIG(odyssey2_sound_interface) |
| 258 | 273 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.40) |
| 274 | ||
| 275 | MDRV_CARTSLOT_ADD("cart", odyssey2_cartslot) | |
| 259 | 276 | MACHINE_DRIVER_END |
| 260 | 277 | |
| 261 | 278 | ROM_START (odyssey2) |
| r3978 | r3979 | |
| 264 | 281 | ROM_REGION(0x100, "gfx1", ROMREGION_ERASEFF) |
| 265 | 282 | |
| 266 | 283 | ROM_REGION(0x4000, "user1", 0) |
| 267 | ROM_CART_LOAD( | |
| 284 | ROM_CART_LOAD( | |
| 268 | 285 | |
| 269 | 286 | ROM_REGION( 0x10000, "sp0256_speech", 0 ) |
| 270 | 287 | /* SP0256B-019 Speech chip w/2KiB mask rom */ |
| r3978 | r3979 | |
| 293 | 310 | ROM_REGION(0x100, "gfx1", ROMREGION_ERASEFF) |
| 294 | 311 | |
| 295 | 312 | ROM_REGION(0x4000, "user1", 0) |
| 296 | ROM_CART_LOAD( | |
| 313 | ROM_CART_LOAD( | |
| 297 | 314 | |
| 298 | 315 | ROM_REGION( 0x10000, "sp0256_speech", 0 ) |
| 299 | 316 | /* SP0256B-019 Speech chip w/2KiB mask rom */ |
| r3978 | r3979 | |
| 310 | 327 | ROM_REGION(0x100, "gfx1", ROMREGION_ERASEFF) |
| 311 | 328 | |
| 312 | 329 | ROM_REGION(0x4000, "user1", 0) |
| 313 | ROM_CART_LOAD( | |
| 330 | ROM_CART_LOAD( | |
| 314 | 331 | ROM_END |
| 315 | 332 | |
| 316 | static void odyssey2_cartslot_device_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) | |
| 317 | { | |
| 318 | /* cartslot */ | |
| 319 | switch(state) | |
| 320 | { | |
| 321 | /* --- the following bits of info are returned as 64-bit signed integers --- */ | |
| 322 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 323 | case MESS_DEVINFO_INT_MUST_BE_LOADED: info->i = 1; break; | |
| 324 | ||
| 325 | /* --- the following bits of info are returned as pointers to data or functions --- */ | |
| 326 | case MESS_DEVINFO_PTR_VERIFY: info->imgverify = odyssey2_cart_verify; break; | |
| 327 | ||
| 328 | default: cartslot_device_getinfo(devclass, state, info); break; | |
| 329 | } | |
| 330 | } | |
| 331 | ||
| 332 | static SYSTEM_CONFIG_START(odyssey2) | |
| 333 | CONFIG_DEVICE(odyssey2_cartslot_device_getinfo) | |
| 334 | SYSTEM_CONFIG_END | |
| 335 | ||
| 336 | 333 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME FLAGS */ |
| 337 | COMP( 1978, odyssey2, 0, 0, odyssey2, odyssey2, odyssey2, odyssey2, "Magnavox", "Odyssey 2", GAME_IMPERFECT_SOUND ) | |
| 338 | COMP( 1979, videopac, odyssey2, 0, videopac, odyssey2, odyssey2, odyssey2, "Philips", "Videopac G7000/C52", GAME_IMPERFECT_SOUND ) | |
| 339 | COMP( 1983, g7400, odyssey2, 0, g7400, odyssey2, odyssey2, odyssey2, "Philips", "Videopac Plus G7400", GAME_NOT_WORKING ) | |
| 334 | COMP( 1978, odyssey2, 0, 0, odyssey2, odyssey2, odyssey2, 0, "Magnavox", "Odyssey 2", GAME_IMPERFECT_SOUND ) | |
| 335 | COMP( 1979, videopac, odyssey2, 0, videopac, odyssey2, odyssey2, 0, "Philips", "Videopac G7000/C52", GAME_IMPERFECT_SOUND ) | |
| 336 | COMP( 1983, g7400, odyssey2, 0, g7400, odyssey2, odyssey2, 0, "Philips", "Videopac Plus G7400", GAME_NOT_WORKING ) | |
| 340 | 337 | |
| 341 | 338 |
| r3978 | r3979 | |
|---|---|---|
| 273 | 273 | MDRV_QUICKLOAD_ADD(primo, "pp", 0) |
| 274 | 274 | |
| 275 | 275 | MDRV_CASSETTE_ADD( "cassette", primo_cassette_config ) |
| 276 | ||
| 277 | MDRV_CARTSLOT_ADD("cart1", default_cartslot ) | |
| 278 | MDRV_CARTSLOT_ADD("cart2", default_cartslot ) | |
| 276 | 279 | MACHINE_DRIVER_END |
| 277 | 280 | |
| 278 | 281 | static MACHINE_DRIVER_START( primoa48 ) |
| r3978 | r3979 | |
| 328 | 331 | ROMX_LOAD( "a32_4.rom", 0x13000, 0x1000, CRC(70f84bc8) SHA1(9ae1c06531edf20c14ba47e78c0747dd2a92612a), ROM_BIOS(1) ) |
| 329 | 332 | ROM_SYSTEM_BIOS(1, "ver2", "ver 2") |
| 330 | 333 | ROMX_LOAD( "a32-v2.rom",0x10000, 0x4000, CRC(1544b8cc) SHA1(6a9e67027a349fa3d14cb3624099b0770564c5dd), ROM_BIOS(2) ) |
| 331 | ROM_CART_LOAD(1, "rom", 0x14000, 0x4000, ROM_FILL_FF | ROM_OPTIONAL) | |
| 332 | ROM_CART_LOAD(0, "rom", 0x18000, 0x4000, ROM_FILL_FF | ROM_OPTIONAL) | |
| 334 | ROM_CART_LOAD("cart2", 0x14000, 0x4000, ROM_FILL_FF | ROM_OPTIONAL) | |
| 335 | ROM_CART_LOAD("cart1", 0x18000, 0x4000, ROM_FILL_FF | ROM_OPTIONAL) | |
| 333 | 336 | ROM_END |
| 334 | 337 | |
| 335 | 338 | ROM_START( primoa48 ) |
| r3978 | r3979 | |
| 341 | 344 | ROMX_LOAD( "a48_4.rom", 0x13000, 0x1000, CRC(e4d0c452) SHA1(4a98ff7502f1236445250d6b4e1c34850734350e), ROM_BIOS(1) ) |
| 342 | 345 | ROM_SYSTEM_BIOS(1, "ver2", "ver 2") |
| 343 | 346 | ROMX_LOAD( "a48-v2.rom",0x10000, 0x4000, CRC(3fed4020) SHA1(a78351a9a0e114e59de019fd7177ce6e37f98163), ROM_BIOS(2) ) |
| 344 | ROM_CART_LOAD(1, "rom", 0x14000, 0x4000, ROM_FILL_FF | ROM_OPTIONAL) | |
| 345 | ROM_CART_LOAD(0, "rom", 0x18000, 0x4000, ROM_FILL_FF | ROM_OPTIONAL) | |
| 347 | ROM_CART_LOAD("cart2", 0x14000, 0x4000, ROM_FILL_FF | ROM_OPTIONAL) | |
| 348 | ROM_CART_LOAD("cart1", 0x18000, 0x4000, ROM_FILL_FF | ROM_OPTIONAL) | |
| 346 | 349 | ROM_END |
| 347 | 350 | |
| 348 | 351 | ROM_START( primoa64 ) |
| r3978 | r3979 | |
| 354 | 357 | ROMX_LOAD( "a64_4.rom", 0x13000, 0x1000, CRC(e4d0c452) SHA1(4a98ff7502f1236445250d6b4e1c34850734350e), ROM_BIOS(1) ) |
| 355 | 358 | ROM_SYSTEM_BIOS(1, "ver2", "ver 2") |
| 356 | 359 | ROMX_LOAD( "a64-v2.rom",0x10000, 0x4000, CRC(93e0343a) SHA1(4f6b169668424109c4bca495c849d7cf0ddacad8), ROM_BIOS(2) ) |
| 357 | ROM_CART_LOAD(1, "rom", 0x14000, 0x4000, ROM_FILL_FF | ROM_OPTIONAL) | |
| 358 | ROM_CART_LOAD(0, "rom", 0x18000, 0x4000, ROM_FILL_FF | ROM_OPTIONAL) | |
| 360 | ROM_CART_LOAD("cart2", 0x14000, 0x4000, ROM_FILL_FF | ROM_OPTIONAL) | |
| 361 | ROM_CART_LOAD("cart1", 0x18000, 0x4000, ROM_FILL_FF | ROM_OPTIONAL) | |
| 359 | 362 | ROM_END |
| 360 | 363 | |
| 361 | 364 | ROM_START( primob32 ) |
| r3978 | r3979 | |
| 364 | 367 | ROMX_LOAD( "b32.rom", 0x10000, 0x4000, CRC(f594d2bb) SHA1(b74961dba008a1a6f15a22ddbd1b89acd7e286c2), ROM_BIOS(1) ) |
| 365 | 368 | ROM_SYSTEM_BIOS(1, "ver2", "ver 2") |
| 366 | 369 | ROMX_LOAD( "b32-v2.rom",0x10000, 0x4000, CRC(b22a5d9a) SHA1(e048724f338b1f4e2602960cfd6f42cc49e85d75), ROM_BIOS(2) ) |
| 367 | ROM_CART_LOAD(1, "rom", 0x14000, 0x4000, ROM_FILL_FF | ROM_OPTIONAL) | |
| 368 | ROM_CART_LOAD(0, "rom", 0x18000, 0x4000, ROM_FILL_FF | ROM_OPTIONAL) | |
| 370 | ROM_CART_LOAD("cart2", 0x14000, 0x4000, ROM_FILL_FF | ROM_OPTIONAL) | |
| 371 | ROM_CART_LOAD("cart1", 0x18000, 0x4000, ROM_FILL_FF | ROM_OPTIONAL) | |
| 369 | 372 | ROM_END |
| 370 | 373 | |
| 371 | 374 | ROM_START( primob48 ) |
| r3978 | r3979 | |
| 374 | 377 | ROMX_LOAD( "b48.rom", 0x10000, 0x4000, CRC(df3d2a57) SHA1(ab9413aa9d7749d30a486da00bc8c6d178a2172c), ROM_BIOS(1) ) |
| 375 | 378 | ROM_SYSTEM_BIOS(1, "ver2", "ver 2") |
| 376 | 379 | ROMX_LOAD( "b48-v2.rom",0x10000, 0x4000, CRC(9883a576) SHA1(aeb142ed1e9494371bf34dda600e32b17d454f78), ROM_BIOS(2) ) |
| 377 | ROM_CART_LOAD(1, "rom", 0x14000, 0x4000, ROM_FILL_FF | ROM_OPTIONAL) | |
| 378 | ROM_CART_LOAD(0, "rom", 0x18000, 0x4000, ROM_FILL_FF | ROM_OPTIONAL) | |
| 380 | ROM_CART_LOAD("cart2", 0x14000, 0x4000, ROM_FILL_FF | ROM_OPTIONAL) | |
| 381 | ROM_CART_LOAD("cart1", 0x18000, 0x4000, ROM_FILL_FF | ROM_OPTIONAL) | |
| 379 | 382 | ROM_END |
| 380 | 383 | |
| 381 | 384 | ROM_START( primob64 ) |
| r3978 | r3979 | |
| 386 | 389 | ROMX_LOAD( "b64-v2.rom",0x10000, 0x4000, CRC(348ed16c) SHA1(abf75fcdaa817abd133d66223ca2608853748557), ROM_BIOS(2) ) |
| 387 | 390 | ROM_SYSTEM_BIOS(2, "cdos", "CDOS") |
| 388 | 391 | ROMX_LOAD( "b64-cdos.rom",0x10000, 0x4000, CRC(73305e4d) SHA1(c090c3430cdf19eed8363377b981e1c21a4ed169), ROM_BIOS(3) ) |
| 389 | ROM_CART_LOAD(1, "rom", 0x14000, 0x4000, ROM_FILL_FF | ROM_OPTIONAL) | |
| 390 | ROM_CART_LOAD(0, "rom", 0x18000, 0x4000, ROM_FILL_FF | ROM_OPTIONAL) | |
| 392 | ROM_CART_LOAD("cart2", 0x14000, 0x4000, ROM_FILL_FF | ROM_OPTIONAL) | |
| 393 | ROM_CART_LOAD("cart1", 0x18000, 0x4000, ROM_FILL_FF | ROM_OPTIONAL) | |
| 391 | 394 | ROM_END |
| 392 | 395 | |
| 393 | 396 | ROM_START( primoc64 ) |
| r3978 | r3979 | |
| 399 | 402 | ROMX_LOAD( "c64_4.rom", 0x13000, 0x1000, CRC(3770e3e6) SHA1(792cc71d8f89eb447f94aded5afc70d626a26030), ROM_BIOS(1) ) |
| 400 | 403 | ROM_SYSTEM_BIOS(1, "ver2", "ver 2") |
| 401 | 404 | ROMX_LOAD( "c64-v2.rom",0x10000, 0x4000, CRC(356ed18a) SHA1(613324f2bab94e427e9c1243c766dcf8486e0fb4), ROM_BIOS(2) ) |
| 402 | ROM_CART_LOAD(1, "rom", 0x14000, 0x4000, ROM_FILL_FF | ROM_OPTIONAL) | |
| 403 | ROM_CART_LOAD(0, "rom", 0x18000, 0x4000, ROM_FILL_FF | ROM_OPTIONAL) | |
| 405 | ROM_CART_LOAD("cart2", 0x14000, 0x4000, ROM_FILL_FF | ROM_OPTIONAL) | |
| 406 | ROM_CART_LOAD("cart1", 0x18000, 0x4000, ROM_FILL_FF | ROM_OPTIONAL) | |
| 404 | 407 | ROM_END |
| 405 | 408 | |
| 406 | 409 | |
| 407 | static void primo_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) | |
| 410 | /*static void primo_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) | |
| 408 | 411 | { |
| 409 | /* cartslot */ | |
| 410 | 412 | switch(state) |
| 411 | 413 | { |
| 412 | /* --- the following bits of info are returned as NULL-terminated strings --- */ | |
| 413 | 414 | case MESS_DEVINFO_STR_DESCRIPTION+0: strcpy(info->s = device_temp_str(), "EPROM Expansion Bank #1"); break; |
| 414 | 415 | case MESS_DEVINFO_STR_DESCRIPTION+1: strcpy(info->s = device_temp_str(), "EPROM Expansion Bank #2"); break; |
| 415 | 416 | case MESS_DEVINFO_STR_DESCRIPTION+2: strcpy(info->s = device_temp_str(), "EPROM Expansion Bank #3"); break; |
| r3978 | r3979 | |
| 419 | 420 | } |
| 420 | 421 | } |
| 421 | 422 | |
| 422 | static SYSTEM_CONFIG_START( primoa ) | |
| 423 | CONFIG_DEVICE(primo_cartslot_getinfo) | |
| 424 | SYSTEM_CONFIG_END | |
| 423 | */ | |
| 425 | 424 | |
| 426 | static SYSTEM_CONFIG_START( primob ) | |
| 427 | CONFIG_IMPORT_FROM( primoa ) | |
| 428 | //CONFIG_DEVICE(primo_floppy_getinfo) | |
| 429 | SYSTEM_CONFIG_END | |
| 430 | ||
| 431 | 425 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME */ |
| 432 | COMP ( 1984, primoa32, 0, 0, primoa32, primo, primo32, primoa, "Microkey", "Primo A-32" , 0) | |
| 433 | COMP ( 1984, primoa48, primoa32, 0, primoa48, primo, primo48, primoa, "Microkey", "Primo A-48" , 0) | |
| 434 | COMP ( 1984, primoa64, primoa32, 0, primoa64, primo, primo64, primoa, "Microkey", "Primo A-64" , 0) | |
| 435 | COMP ( 1984, primob32, primoa32, 0, primob32, primo, primo32, primob, "Microkey", "Primo B-32" , 0) | |
| 436 | COMP ( 1984, primob48, primoa32, 0, primob48, primo, primo48, primob, "Microkey", "Primo B-48" , 0) | |
| 437 | COMP ( 1984, primob64, primoa32, 0, primob64, primo, primo64, primob, "Microkey", "Primo B-64" , 0) | |
| 438 | COMP ( 1984, primoc64, primoa32, 0, primoc64, primo, primo64, primob, "Microkey", "Primo C-64" , GAME_NOT_WORKING) | |
| 426 | COMP ( 1984, primoa32, 0, 0, primoa32, primo, primo32, 0, "Microkey", "Primo A-32" , 0) | |
| 427 | COMP ( 1984, primoa48, primoa32, 0, primoa48, primo, primo48, 0, "Microkey", "Primo A-48" , 0) | |
| 428 | COMP ( 1984, primoa64, primoa32, 0, primoa64, primo, primo64, 0, "Microkey", "Primo A-64" , 0) | |
| 429 | COMP ( 1984, primob32, primoa32, 0, primob32, primo, primo32, 0, "Microkey", "Primo B-32" , 0) | |
| 430 | COMP ( 1984, primob48, primoa32, 0, primob48, primo, primo48, 0, "Microkey", "Primo B-48" , 0) | |
| 431 | COMP ( 1984, primob64, primoa32, 0, primob64, primo, primo64, 0, "Microkey", "Primo B-64" , 0) | |
| 432 | COMP ( 1984, primoc64, primoa32, 0, primoc64, primo, primo64, 0, "Microkey", "Primo C-64" , GAME_NOT_WORKING) |
| r3978 | r3979 | |
|---|---|---|
| 485 | 485 | svision_custom_start |
| 486 | 486 | }; |
| 487 | 487 | |
| 488 | static const cartslot_interface svision_cartslot = | |
| 489 | { | |
| 490 | "bin,ws,sv", | |
| 491 | 0, | |
| 492 | NULL, | |
| 493 | NULL, | |
| 494 | NULL, | |
| 495 | NULL | |
| 496 | }; | |
| 488 | 497 | |
| 489 | 498 | static MACHINE_DRIVER_START( svision ) |
| 490 | 499 | /* basic machine hardware */ |
| 491 | | |
| 500 | | |
| 492 | 501 | MDRV_CPU_PROGRAM_MAP(svision_mem, 0) |
| 493 | 502 | MDRV_CPU_VBLANK_INT("main", svision_frame_int) |
| 494 | 503 | |
| r3978 | r3979 | |
| 512 | 521 | MDRV_SOUND_CONFIG(svision_sound_interface) |
| 513 | 522 | MDRV_SOUND_ROUTE(0, "left", 0.50) |
| 514 | 523 | MDRV_SOUND_ROUTE(1, "right", 0.50) |
| 524 | ||
| 525 | MDRV_CARTSLOT_ADD("cart", svision_cartslot ) | |
| 515 | 526 | MACHINE_DRIVER_END |
| 516 | 527 | |
| 517 | 528 | static MACHINE_DRIVER_START( svisionp ) |
| r3978 | r3979 | |
| 545 | 556 | |
| 546 | 557 | ROM_START(svision) |
| 547 | 558 | ROM_REGION(0x20000, "user1", 0) |
| 548 | ROM_CART_LOAD( | |
| 559 | ROM_CART_LOAD( | |
| 549 | 560 | ROM_END |
| 550 | 561 | |
| 562 | ||
| 551 | 563 | #define rom_svisions rom_svision |
| 552 | 564 | #define rom_svisionn rom_svision |
| 553 | 565 | #define rom_svisionp rom_svision |
| 554 | 566 | #define rom_tvlinkp rom_svision |
| 555 | 567 | |
| 556 | static SYSTEM_CONFIG_START(svision) | |
| 557 | CONFIG_DEVICE(cartslot_device_getinfo) | |
| 558 | SYSTEM_CONFIG_END | |
| 559 | ||
| 560 | 568 | /*************************************************************************** |
| 561 | 569 | |
| 562 | 570 | Game driver(s) |
| r3978 | r3979 | |
| 565 | 573 | |
| 566 | 574 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME */ |
| 567 | 575 | // marketed under a ton of firms and names |
| 568 | CONS(1992, svision, 0, 0, svision, svision, svision, | |
| 576 | CONS(1992, svision, 0, 0, svision, svision, svision, 0 | |
| 569 | 577 | // svdual 2 connected via communication port |
| 570 | CONS( 1992, svisions, svision, 0,svision, svisions, svisions, | |
| 578 | CONS( 1992, svisions, svision, 0,svision, svisions, svisions, 0 | |
| 571 | 579 | |
| 572 | CONS( 1993, svisionp, svision, 0,svisionp, svision, svision, svision, "Watara", "Super Vision (PAL TV Link Colored)", 0 ) | |
| 573 | CONS( 1993, svisionn, svision, 0,svisionn, svision, svision, svision, "Watara", "Super Vision (NTSC TV Link Colored)", 0 ) | |
| 580 | CONS( 1993, svisionp, svision, 0,svisionp, svision, svision, 0, "Watara", "Super Vision (PAL TV Link Colored)", 0 ) | |
| 581 | CONS( 1993, svisionn, svision, 0,svisionn, svision, svision, 0, "Watara", "Super Vision (NTSC TV Link Colored)", 0 ) | |
| 574 | 582 | // svtvlink (2 supervisions) |
| 575 | 583 | // tvlink (pad supervision simulated) |
| 576 | CONS( 199?, tvlinkp, svision, 0,tvlinkp, svision, svision, | |
| 584 | CONS( 199?, tvlinkp, svision, 0,tvlinkp, svision, svision, 0 |
| r3978 | r3979 | |
|---|---|---|
| 511 | 511 | /* via */ |
| 512 | 512 | MDRV_VIA6522_ADD("via6522_2", 0, vc1541_via2) |
| 513 | 513 | MDRV_VIA6522_ADD("via6522_3", 0, vc1541_via3) |
| 514 | ||
| 515 | MDRV_CARTSLOT_ADD("cart1", c64_cartslot) | |
| 516 | MDRV_CARTSLOT_ADD("cart2", c64_cartslot) | |
| 514 | 517 | MACHINE_DRIVER_END |
| 515 | 518 | |
| 516 | 519 | static MACHINE_DRIVER_START( c64pal ) |
| r3978 | r3979 | |
| 545 | 548 | /* cia */ |
| 546 | 549 | MDRV_CIA6526_ADD("cia_0", CIA6526R1, 0, c64_pal_cia0) |
| 547 | 550 | MDRV_CIA6526_ADD("cia_1", CIA6526R1, 0, c64_pal_cia1) |
| 551 | ||
| 552 | MDRV_CARTSLOT_ADD("cart1", c64_cartslot) | |
| 553 | MDRV_CARTSLOT_ADD("cart2", c64_cartslot) | |
| 548 | 554 | MACHINE_DRIVER_END |
| 549 | 555 | |
| 550 | 556 | static MACHINE_DRIVER_START( ultimax ) |
| r3978 | r3979 | |
| 555 | 561 | MDRV_SOUND_REPLACE("sid", SID6581, VIC6567_CLOCK) |
| 556 | 562 | MDRV_SOUND_CONFIG(c64_sound_interface) |
| 557 | 563 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) |
| 564 | ||
| 565 | MDRV_CARTSLOT_REMOVE("cart1") | |
| 566 | MDRV_CARTSLOT_REMOVE("cart2") | |
| 567 | MDRV_CARTSLOT_ADD("cart", ultimax_cartslot) | |
| 558 | 568 | MACHINE_DRIVER_END |
| 559 | 569 | |
| 560 | 570 | |
| r3978 | r3979 | |
| 697 | 707 | |
| 698 | 708 | |
| 699 | 709 | static SYSTEM_CONFIG_START(c64) |
| 700 | CONFIG_DEVICE(c64_cartslot_getinfo) | |
| 701 | 710 | CONFIG_DEVICE(cbmfloppy_device_getinfo) |
| 702 | 711 | SYSTEM_CONFIG_END |
| 703 | 712 | |
| 704 | 713 | static SYSTEM_CONFIG_START(sx64) |
| 705 | CONFIG_DEVICE(c64_cartslot_getinfo) | |
| 706 | 714 | CONFIG_DEVICE(vc1541_device_getinfo) |
| 707 | 715 | SYSTEM_CONFIG_END |
| 708 | 716 | |
| 709 | static SYSTEM_CONFIG_START(ultimax) | |
| 710 | CONFIG_DEVICE(ultimax_cartslot_getinfo) | |
| 711 | SYSTEM_CONFIG_END | |
| 712 | ||
| 713 | static SYSTEM_CONFIG_START(c64gs) | |
| 714 | CONFIG_DEVICE(c64_cartslot_getinfo) | |
| 715 | SYSTEM_CONFIG_END | |
| 716 | ||
| 717 | ||
| 718 | 717 | /*************************************************************************** |
| 719 | 718 | |
| 720 | 719 | Game driver(s) |
| r3978 | r3979 | |
| 723 | 722 | |
| 724 | 723 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME */ |
| 725 | 724 | |
| 726 | COMP(1982, max, 0, 0, ultimax, c64, ultimax, | |
| 725 | COMP(1982, max, 0, 0, ultimax, c64, ultimax, 0 | |
| 727 | 726 | |
| 728 | 727 | COMP(1982, c64, 0, 0, c64, c64, c64, c64, "Commodore Business Machines Co.", "Commodore 64 (NTSC)", 0) |
| 729 | 728 | COMP(1982, c64pal, c64, 0, c64pal, c64, c64pal, c64, "Commodore Business Machines Co.", "Commodore 64 (PAL)", 0) |
| r3978 | r3979 | |
| 744 | 743 | COMP(1986, c64cpal, c64, 0, c64pal, c64, c64pal, c64, "Commodore Business Machines Co.", "Commodore 64C (PAL)", 0) |
| 745 | 744 | COMP(1986, c64g, c64, 0, c64pal, c64, c64pal, c64, "Commodore Business Machines Co.", "Commodore 64G (PAL)", 0) |
| 746 | 745 | |
| 747 | CONS(1990, c64gs, c64, 0, c64gs, c64gs, c64gs, | |
| 746 | CONS(1990, c64gs, c64, 0, c64gs, c64gs, c64gs, 0 |
| r3978 | r3979 | |
|---|---|---|
| 332 | 332 | MDRV_IMPORT_FROM(megadriv) |
| 333 | 333 | |
| 334 | 334 | MDRV_MACHINE_RESET( ms_megadriv ) |
| 335 | ||
| 336 | MDRV_CARTSLOT_ADD("cart", genesis_cartslot ) | |
| 335 | 337 | MACHINE_DRIVER_END |
| 336 | 338 | |
| 337 | 339 | static MACHINE_DRIVER_START( ms_megdsvp ) |
| 338 | 340 | MDRV_IMPORT_FROM(megdsvp) |
| 339 | 341 | |
| 340 | 342 | MDRV_MACHINE_RESET( ms_megadriv ) |
| 343 | ||
| 344 | MDRV_CARTSLOT_ADD("cart", genesis_cartslot ) | |
| 341 | 345 | MACHINE_DRIVER_END |
| 342 | 346 | |
| 343 | 347 | |
| r3978 | r3979 | |
| 410 | 414 | DRIVER_INIT_CALL(mess_md_common); |
| 411 | 415 | } |
| 412 | 416 | |
| 413 | ||
| 414 | /************************************* | |
| 415 | * | |
| 416 | * System configuration(s) | |
| 417 | * | |
| 418 | *************************************/ | |
| 419 | ||
| 420 | ||
| 421 | static SYSTEM_CONFIG_START( genesis ) | |
| 422 | CONFIG_DEVICE(genesis_cartslot_getinfo) | |
| 423 | SYSTEM_CONFIG_END | |
| 424 | ||
| 425 | ||
| 426 | ||
| 427 | ||
| 428 | 417 | /****************************************** PICO emulation ****************************************/ |
| 429 | 418 | |
| 430 | 419 | /* |
| r3978 | r3979 | |
| 629 | 618 | MDRV_CPU_PROGRAM_MAP(_pico_mem,0) |
| 630 | 619 | |
| 631 | 620 | MDRV_MACHINE_RESET( ms_megadriv ) |
| 621 | ||
| 622 | MDRV_CARTSLOT_ADD("cart", pico_cartslot ) | |
| 632 | 623 | MACHINE_DRIVER_END |
| 633 | 624 | |
| 634 | 625 | |
| r3978 | r3979 | |
| 648 | 639 | ROM_REGION( 0x10000, "sound", ROMREGION_ERASEFF) |
| 649 | 640 | ROM_END |
| 650 | 641 | |
| 651 | ||
| 652 | static SYSTEM_CONFIG_START( pico ) | |
| 653 | CONFIG_DEVICE(pico_cartslot_getinfo) | |
| 654 | SYSTEM_CONFIG_END | |
| 655 | ||
| 656 | ||
| 657 | ||
| 658 | 642 | /*************************************************************************** |
| 659 | 643 | |
| 660 | 644 | Game driver(s) |
| r3978 | r3979 | |
| 662 | 646 | ***************************************************************************/ |
| 663 | 647 | |
| 664 | 648 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME */ |
| 665 | CONS( 1989, genesis, 0, 0, ms_megadriv, md, genesis, genesis, "Sega", "Genesis (USA, NTSC)", 0) | |
| 666 | CONS( 1993, gensvp, genesis, 0, ms_megdsvp, md_svp, gensvp, genesis, "Sega", "Genesis (USA, NTSC, w/SVP)", 0) | |
| 667 | CONS( 1990, megadriv, genesis, 0, ms_megadriv, md, md_eur, genesis, "Sega", "Mega Drive (Europe, PAL)", 0) | |
| 668 | CONS( 1988, megadrij, genesis, 0, ms_megadriv, md, md_jpn, genesis, "Sega", "Mega Drive (Japan, NTSC)", 0) | |
| 669 | CONS( 1994, pico, 0, 0, pico, pico, md_eur, pico, "Sega", "Pico (Europe, PAL)", 0) | |
| 670 | CONS( 1994, picou, pico, 0, pico, pico, genesis, pico, "Sega", "Pico (USA, NTSC)", 0) | |
| 671 | CONS( 1993, picoj, pico, 0, pico, pico, md_jpn, pico, "Sega", "Pico (Japan, NTSC)", 0) | |
| 649 | CONS( 1989, genesis, 0, 0, ms_megadriv, md, genesis, 0, "Sega", "Genesis (USA, NTSC)", 0) | |
| 650 | CONS( 1993, gensvp, genesis, 0, ms_megdsvp, md_svp, gensvp, 0, "Sega", "Genesis (USA, NTSC, w/SVP)", 0) | |
| 651 | CONS( 1990, megadriv, genesis, 0, ms_megadriv, md, md_eur, 0, "Sega", "Mega Drive (Europe, PAL)", 0) | |
| 652 | CONS( 1988, megadrij, genesis, 0, ms_megadriv, md, md_jpn, 0, "Sega", "Mega Drive (Japan, NTSC)", 0) | |
| 653 | CONS( 1994, pico, 0, 0, pico, pico, md_eur, 0, "Sega", "Pico (Europe, PAL)", 0) | |
| 654 | CONS( 1994, picou, pico, 0, pico, pico, genesis, 0, "Sega", "Pico (USA, NTSC)", 0) | |
| 655 | CONS( 1993, picoj, pico, 0, pico, pico, md_jpn, 0, "Sega", "Pico (Japan, NTSC)", 0) |
| r3978 | r3979 | |
|---|---|---|
| 269 | 269 | CASSETTE_PLAY |
| 270 | 270 | }; |
| 271 | 271 | |
| 272 | static const cartslot_interface svi318_cartslot = | |
| 273 | { | |
| 274 | "rom", | |
| 275 | 0, | |
| 276 | DEVICE_START_NAME(svi318_cart), | |
| 277 | DEVICE_IMAGE_LOAD_NAME(svi318_cart), | |
| 278 | DEVICE_IMAGE_UNLOAD_NAME(svi318_cart), | |
| 279 | NULL | |
| 280 | }; | |
| 281 | ||
| 272 | 282 | static MACHINE_DRIVER_START( svi318 ) |
| 273 | 283 | /* Basic machine hardware */ |
| 274 | 284 | MDRV_CPU_ADD( "main", Z80, 3579545 ) /* 3.579545 MHz */ |
| r3978 | r3979 | |
| 307 | 317 | MDRV_CASSETTE_ADD( "cassette", svi318_cassette_config ) |
| 308 | 318 | |
| 309 | 319 | MDRV_WD179X_ADD("wd179x", svi_wd17xx_interface ) |
| 320 | ||
| 321 | MDRV_CARTSLOT_ADD("cart", svi318_cartslot ) | |
| 310 | 322 | MACHINE_DRIVER_END |
| 311 | 323 | |
| 312 | 324 | static MACHINE_DRIVER_START( svi318n ) |
| r3978 | r3979 | |
| 384 | 396 | MDRV_CASSETTE_ADD( "cassette", svi318_cassette_config ) |
| 385 | 397 | |
| 386 | 398 | MDRV_WD179X_ADD("wd179x", svi_wd17xx_interface ) |
| 399 | ||
| 400 | MDRV_CARTSLOT_ADD("cart", svi318_cartslot ) | |
| 387 | 401 | MACHINE_DRIVER_END |
| 388 | 402 | |
| 389 | 403 | static MACHINE_DRIVER_START( svi328n_806 ) |
| r3978 | r3979 | |
| 461 | 475 | ROMX_LOAD ("svi806se.rom", 0x0000, 0x1000, CRC(daea8956) SHA1(3f16d5513ad35692488ae7d864f660e76c6e8ed3), ROM_BIOS(2)) |
| 462 | 476 | ROM_END |
| 463 | 477 | |
| 464 | ||
| 465 | static void svi318_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) | |
| 466 | { | |
| 467 | /* cartslot */ | |
| 468 | switch(state) | |
| 469 | { | |
| 470 | /* --- the following bits of info are returned as 64-bit signed integers --- */ | |
| 471 | case MESS_DEVINFO_INT_COUNT: | |
| 472 | info->i = 1; | |
| 473 | break; | |
| 474 | ||
| 475 | /* --- the following bits of info are returned as pointers to data or functions --- */ | |
| 476 | case MESS_DEVINFO_PTR_START: | |
| 477 | info->start = DEVICE_START_NAME(svi318_cart); | |
| 478 | break; | |
| 479 | case MESS_DEVINFO_PTR_LOAD: | |
| 480 | info->load = DEVICE_IMAGE_LOAD_NAME(svi318_cart); | |
| 481 | break; | |
| 482 | case MESS_DEVINFO_PTR_UNLOAD: | |
| 483 | info->unload = DEVICE_IMAGE_UNLOAD_NAME(svi318_cart); | |
| 484 | break; | |
| 485 | ||
| 486 | /* --- the following bits of info are returned as NULL-terminated strings --- */ | |
| 487 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: | |
| 488 | strcpy(info->s = device_temp_str(), "rom"); | |
| 489 | break; | |
| 490 | ||
| 491 | default: | |
| 492 | cartslot_device_getinfo(devclass, state, info); | |
| 493 | break; | |
| 494 | } | |
| 495 | } | |
| 496 | ||
| 497 | 478 | static void svi318_floppy_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 498 | 479 | { |
| 499 | 480 | /* floppy */ |
| r3978 | r3979 | |
| 521 | 502 | } |
| 522 | 503 | |
| 523 | 504 | static SYSTEM_CONFIG_START( svi318_common ) |
| 524 | CONFIG_DEVICE(svi318_cartslot_getinfo) | |
| 525 | 505 | CONFIG_DEVICE(svi318_floppy_getinfo) |
| 526 | 506 | SYSTEM_CONFIG_END |
| 527 | 507 |
| r3978 | r3979 | |
|---|---|---|
| 1903 | 1903 | MACHINE_DRIVER_END |
| 1904 | 1904 | |
| 1905 | 1905 | |
| 1906 | static const cartslot_interface pcjr_cartslot = | |
| 1907 | { | |
| 1908 | "jrc", | |
| 1909 | 0, | |
| 1910 | NULL, | |
| 1911 | DEVICE_IMAGE_LOAD_NAME(pcjr_cartridge), | |
| 1912 | NULL, | |
| 1913 | NULL | |
| 1914 | }; | |
| 1915 | ||
| 1906 | 1916 | static MACHINE_DRIVER_START( ibmpcjr ) |
| 1907 | 1917 | /* basic machine hardware */ |
| 1908 | 1918 | MDRV_CPU_PC(ibmpcjr, ibmpcjr, I8088, 4900000, pcjr_frame_interrupt) /* TODO: Get correct cpu frequency, probably XTAL_14_31818MHz/3 */ |
| r3978 | r3979 | |
| 1944 | 1954 | MDRV_CASSETTE_ADD( "cassette", ibm5150_cassette_config ) |
| 1945 | 1955 | |
| 1946 | 1956 | MDRV_NEC765A_ADD("nec765", pc_fdc_nec765_not_connected_interface) |
| 1957 | ||
| 1958 | MDRV_CARTSLOT_ADD("cart1", pcjr_cartslot ) | |
| 1959 | MDRV_CARTSLOT_ADD("cart2", pcjr_cartslot ) | |
| 1947 | 1960 | MACHINE_DRIVER_END |
| 1948 | 1961 | |
| 1949 | 1962 | #if 0 |
| r3978 | r3979 | |
| 2508 | 2521 | } |
| 2509 | 2522 | } |
| 2510 | 2523 | |
| 2511 | ||
| 2512 | static void pcjr_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) | |
| 2513 | { | |
| 2514 | switch( state ) | |
| 2515 | { | |
| 2516 | /* --- the following bits of info are returned as 64-bit signed integers --- */ | |
| 2517 | case MESS_DEVINFO_INT_COUNT: info->i = 2; break; | |
| 2518 | case MESS_DEVINFO_INT_MUST_BE_LOADED: info->i = 0; break; | |
| 2519 | ||
| 2520 | /* --- the following bits of info are returned as pointers to data or functions --- */ | |
| 2521 | case MESS_DEVINFO_PTR_LOAD: info->load = DEVICE_IMAGE_LOAD_NAME( pcjr_cartridge ); break; | |
| 2522 | ||
| 2523 | /* --- the following bits of info are returned as NULL-terminated strings --- */ | |
| 2524 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy( info->s = device_temp_str(), "jrc" ); break; | |
| 2525 | ||
| 2526 | default: cartslot_device_getinfo( devclass, state, info ); break; | |
| 2527 | } | |
| 2528 | } | |
| 2529 | ||
| 2530 | 2524 | static SYSTEM_CONFIG_START(ibm5150) |
| 2531 | 2525 | CONFIG_RAM_DEFAULT( 640 * 1024 ) |
| 2532 | 2526 | CONFIG_DEVICE(ibmpc_floppy_getinfo) |
| r3978 | r3979 | |
| 2541 | 2535 | |
| 2542 | 2536 | static SYSTEM_CONFIG_START(pcjr) |
| 2543 | 2537 | CONFIG_RAM_DEFAULT( 640 * 1024 ) |
| 2544 | CONFIG_DEVICE(ibmpc_floppy_getinfo) | |
| 2545 | CONFIG_DEVICE(pcjr_cartslot_getinfo) | |
| 2538 | CONFIG_DEVICE(ibmpc_floppy_getinfo) | |
| 2546 | 2539 | SYSTEM_CONFIG_END |
| 2547 | 2540 | |
| 2548 | 2541 | /*************************************************************************** |
| r3978 | r3979 | |
|---|---|---|
| 140 | 140 | INPUT_PORTS_END |
| 141 | 141 | |
| 142 | 142 | |
| 143 | static void pce_partialhash(char *dest, const unsigned char *data, | |
| 144 | unsigned long length, unsigned int functions) | |
| 145 | { | |
| 146 | if ( ( length <= PCE_HEADER_SIZE ) || ( length & PCE_HEADER_SIZE ) ) { | |
| 147 | hash_compute(dest, &data[PCE_HEADER_SIZE], length - PCE_HEADER_SIZE, functions); | |
| 148 | } else { | |
| 149 | hash_compute(dest, data, length, functions); | |
| 150 | } | |
| 151 | } | |
| 152 | ||
| 153 | ||
| 154 | static const cartslot_interface pce_cartslot = | |
| 155 | { | |
| 156 | "pce,bin", | |
| 157 | 1, | |
| 158 | NULL, | |
| 159 | DEVICE_IMAGE_LOAD_NAME(pce_cart), | |
| 160 | NULL, | |
| 161 | pce_partialhash | |
| 162 | }; | |
| 163 | ||
| 143 | 164 | static MACHINE_DRIVER_START( pce ) |
| 144 | 165 | /* basic machine hardware */ |
| 145 | 166 | MDRV_CPU_ADD("main", H6280, MAIN_CLOCK/3) |
| r3978 | r3979 | |
| 179 | 200 | MDRV_SOUND_ROUTE( 1, "right", 1.00 ) |
| 180 | 201 | |
| 181 | 202 | MDRV_CDROM_ADD( "cdrom" ) |
| 203 | ||
| 204 | MDRV_CARTSLOT_ADD("cart", pce_cartslot ) | |
| 182 | 205 | MACHINE_DRIVER_END |
| 183 | 206 | |
| 184 | 207 | static MACHINE_DRIVER_START( sgx ) |
| r3978 | r3979 | |
| 217 | 240 | MDRV_SOUND_ADD( "cdda", CDDA, 0 ) |
| 218 | 241 | MDRV_SOUND_ROUTE( 0, "left", 1.00 ) |
| 219 | 242 | MDRV_SOUND_ROUTE( 1, "right", 1.00 ) |
| 243 | ||
| 244 | MDRV_CARTSLOT_ADD("cart", pce_cartslot ) | |
| 220 | 245 | MACHINE_DRIVER_END |
| 221 | 246 | |
| 222 | static void pce_partialhash(char *dest, const unsigned char *data, | |
| 223 | unsigned long length, unsigned int functions) | |
| 224 | { | |
| 225 | if ( ( length <= PCE_HEADER_SIZE ) || ( length & PCE_HEADER_SIZE ) ) { | |
| 226 | hash_compute(dest, &data[PCE_HEADER_SIZE], length - PCE_HEADER_SIZE, functions); | |
| 227 | } else { | |
| 228 | hash_compute(dest, data, length, functions); | |
| 229 | } | |
| 230 | } | |
| 231 | ||
| 232 | static void pce_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) | |
| 233 | { | |
| 234 | /* cartslot */ | |
| 235 | switch(state) | |
| 236 | { | |
| 237 | /* --- the following bits of info are returned as 64-bit signed integers --- */ | |
| 238 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 239 | case MESS_DEVINFO_INT_MUST_BE_LOADED: info->i = 1; break; | |
| 240 | ||
| 241 | /* --- the following bits of info are returned as pointers to data or functions --- */ | |
| 242 | case MESS_DEVINFO_PTR_LOAD: info->load = DEVICE_IMAGE_LOAD_NAME(pce_cart); break; | |
| 243 | case MESS_DEVINFO_PTR_PARTIAL_HASH: info->partialhash = pce_partialhash; break; | |
| 244 | ||
| 245 | /* --- the following bits of info are returned as NULL-terminated strings --- */ | |
| 246 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "pce,bin"); break; | |
| 247 | ||
| 248 | default: cartslot_device_getinfo(devclass, state, info); break; | |
| 249 | } | |
| 250 | } | |
| 251 | ||
| 252 | ||
| 253 | static SYSTEM_CONFIG_START(pce) | |
| 254 | CONFIG_DEVICE(pce_cartslot_getinfo) | |
| 255 | SYSTEM_CONFIG_END | |
| 256 | ||
| 257 | 247 | /*************************************************************************** |
| 258 | 248 | |
| 259 | 249 | Game driver(s) |
| r3978 | r3979 | |
| 269 | 259 | #define rom_sgx rom_pce |
| 270 | 260 | |
| 271 | 261 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME */ |
| 272 | CONS( 1987, pce, 0, 0, pce, pce, pce, pce, "Nippon Electronic Company", "PC Engine", GAME_IMPERFECT_SOUND ) | |
| 273 | CONS( 1989, tg16, pce, 0, pce, pce, tg16, pce, "Nippon Electronic Company", "TurboGrafx 16", GAME_IMPERFECT_SOUND ) | |
| 274 | CONS( 1989, sgx, pce, 0, sgx, pce, sgx, pce, "Nippon Electronic Company", "SuperGrafx", GAME_IMPERFECT_SOUND ) | |
| 262 | CONS( 1987, pce, 0, 0, pce, pce, pce, 0, "Nippon Electronic Company", "PC Engine", GAME_IMPERFECT_SOUND ) | |
| 263 | CONS( 1989, tg16, pce, 0, pce, pce, tg16, 0, "Nippon Electronic Company", "TurboGrafx 16", GAME_IMPERFECT_SOUND ) | |
| 264 | CONS( 1989, sgx, pce, 0, sgx, pce, sgx, 0, "Nippon Electronic Company", "SuperGrafx", GAME_IMPERFECT_SOUND ) | |
| 275 | 265 |
| r3978 | r3979 | |
|---|---|---|
| 187 | 187 | palette_set_colors(machine, 0, vc4000_palette, ARRAY_LENGTH(vc4000_palette)); |
| 188 | 188 | } |
| 189 | 189 | |
| 190 | static MACHINE_DRIVER_START( vc4000 ) | |
| 191 | /* basic machine hardware */ | |
| 192 | MDRV_CPU_ADD("main", S2650, 865000) /* 3550000/4, 3580000/3, 4430000/3 */ | |
| 193 | MDRV_CPU_PROGRAM_MAP(vc4000_mem, 0) | |
| 194 | MDRV_CPU_IO_MAP(vc4000_io, 0) | |
| 195 | MDRV_CPU_PERIODIC_INT(vc4000_video_line, 312*50) | |
| 196 | MDRV_QUANTUM_TIME(HZ(60)) | |
| 197 | ||
| 198 | /* video hardware */ | |
| 199 | MDRV_SCREEN_ADD("main", RASTER) | |
| 200 | MDRV_SCREEN_REFRESH_RATE(50) | |
| 201 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 202 | MDRV_SCREEN_SIZE(226, 312) | |
| 203 | MDRV_SCREEN_VISIBLE_AREA(10, 182, 0, 269) | |
| 204 | MDRV_PALETTE_LENGTH(ARRAY_LENGTH(vc4000_palette)) | |
| 205 | MDRV_PALETTE_INIT( vc4000 ) | |
| 206 | ||
| 207 | MDRV_VIDEO_START( vc4000 ) | |
| 208 | MDRV_VIDEO_UPDATE( vc4000 ) | |
| 209 | ||
| 210 | /* sound hardware */ | |
| 211 | MDRV_SPEAKER_STANDARD_MONO("mono") | |
| 212 | MDRV_SOUND_ADD("custom", CUSTOM, 0) | |
| 213 | MDRV_SOUND_CONFIG(vc4000_sound_interface) | |
| 214 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) | |
| 215 | ||
| 216 | /* quickload */ | |
| 217 | MDRV_QUICKLOAD_ADD(vc4000, "tvc", 0) | |
| 218 | MACHINE_DRIVER_END | |
| 219 | ||
| 220 | ROM_START(vc4000) | |
| 221 | ROM_REGION(0x2000,"main", 0) | |
| 222 | ROM_FILL( 0x0000, 0x2000, 0xFF ) | |
| 223 | ||
| 224 | ROM_END | |
| 225 | ||
| 226 | 190 | static DEVICE_IMAGE_LOAD( vc4000_cart ) |
| 227 | 191 | { |
| 228 | 192 | running_machine *machine = image->machine; |
| r3978 | r3979 | |
| 281 | 245 | return INIT_PASS; |
| 282 | 246 | } |
| 283 | 247 | |
| 284 | st | |
| 248 | const | |
| 285 | 249 | { |
| 286 | /* cartslot */ | |
| 287 | switch(state) | |
| 288 | { | |
| 289 | /* --- the following bits of info are returned as 64-bit signed integers --- */ | |
| 290 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 291 | case MESS_DEVINFO_INT_MUST_BE_LOADED: info->i = 1; break; | |
| 250 | "rom,bin", | |
| 251 | 1, | |
| 252 | NULL, | |
| 253 | DEVICE_IMAGE_LOAD_NAME(vc4000_cart), | |
| 254 | NULL, | |
| 255 | NULL | |
| 256 | }; | |
| 292 | 257 | |
| 293 | /* --- the following bits of info are returned as pointers to data or functions --- */ | |
| 294 | case MESS_DEVINFO_PTR_LOAD: info->load = DEVICE_IMAGE_LOAD_NAME(vc4000_cart); break; | |
| 258 | static MACHINE_DRIVER_START( vc4000 ) | |
| 259 | /* basic machine hardware */ | |
| 260 | MDRV_CPU_ADD("main", S2650, 865000) /* 3550000/4, 3580000/3, 4430000/3 */ | |
| 261 | MDRV_CPU_PROGRAM_MAP(vc4000_mem, 0) | |
| 262 | MDRV_CPU_IO_MAP(vc4000_io, 0) | |
| 263 | MDRV_CPU_PERIODIC_INT(vc4000_video_line, 312*50) | |
| 264 | MDRV_QUANTUM_TIME(HZ(60)) | |
| 295 | 265 | |
| 296 | /* --- the following bits of info are returned as NULL-terminated strings --- */ | |
| 297 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "rom,bin"); break; | |
| 266 | /* video hardware */ | |
| 267 | MDRV_SCREEN_ADD("main", RASTER) | |
| 268 | MDRV_SCREEN_REFRESH_RATE(50) | |
| 269 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 270 | MDRV_SCREEN_SIZE(226, 312) | |
| 271 | MDRV_SCREEN_VISIBLE_AREA(10, 182, 0, 269) | |
| 272 | MDRV_PALETTE_LENGTH(ARRAY_LENGTH(vc4000_palette)) | |
| 273 | MDRV_PALETTE_INIT( vc4000 ) | |
| 298 | 274 | |
| 299 | default: cartslot_device_getinfo(devclass, state, info); break; | |
| 300 | } | |
| 301 | } | |
| 275 | MDRV_VIDEO_START( vc4000 ) | |
| 276 | MDRV_VIDEO_UPDATE( vc4000 ) | |
| 302 | 277 | |
| 278 | /* sound hardware */ | |
| 279 | MDRV_SPEAKER_STANDARD_MONO("mono") | |
| 280 | MDRV_SOUND_ADD("custom", CUSTOM, 0) | |
| 281 | MDRV_SOUND_CONFIG(vc4000_sound_interface) | |
| 282 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) | |
| 283 | ||
| 284 | /* quickload */ | |
| 285 | MDRV_QUICKLOAD_ADD(vc4000, "tvc", 0) | |
| 286 | ||
| 287 | MDRV_CARTSLOT_ADD("cart", vc4000_cartslot ) | |
| 288 | MACHINE_DRIVER_END | |
| 289 | ||
| 290 | ROM_START(vc4000) | |
| 291 | ROM_REGION(0x2000,"main", 0) | |
| 292 | ROM_FILL( 0x0000, 0x2000, 0xFF ) | |
| 293 | ||
| 294 | ROM_END | |
| 295 | ||
| 303 | 296 | QUICKLOAD_LOAD(vc4000) |
| 304 | 297 | { |
| 305 | 298 | const address_space *space = cpu_get_address_space(image->machine->cpu[0], ADDRESS_SPACE_PROGRAM); |
| r3978 | r3979 | |
| 341 | 334 | |
| 342 | 335 | static SYSTEM_CONFIG_START(vc4000) |
| 343 | 336 | CONFIG_RAM_DEFAULT(5 * 1024) |
| 344 | CONFIG_DEVICE(vc4000_cartslot_getinfo) | |
| 345 | 337 | SYSTEM_CONFIG_END |
| 346 | 338 | |
| 347 | 339 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME */ |
| r3978 | r3979 | |
|---|---|---|
| 717 | 717 | CASSETTE_PLAY |
| 718 | 718 | }; |
| 719 | 719 | |
| 720 | const cartslot_interface bbc_cartslot = | |
| 721 | { | |
| 722 | "rom", | |
| 723 | 0, | |
| 724 | NULL, | |
| 725 | DEVICE_IMAGE_LOAD_NAME(bbcb_cart), | |
| 726 | NULL, | |
| 727 | NULL | |
| 728 | }; | |
| 720 | 729 | |
| 721 | 730 | static MACHINE_DRIVER_START( bbca ) |
| 722 | 731 | /* basic machine hardware */ |
| r3978 | r3979 | |
| 771 | 780 | MDRV_VIA6522_ADD("via6522_1", 1000000, bbcb_user_via) |
| 772 | 781 | |
| 773 | 782 | MDRV_WD177X_ADD("wd177x", bbc_wd17xx_interface ) |
| 783 | ||
| 784 | MDRV_CARTSLOT_ADD("cart1", bbc_cartslot) | |
| 785 | MDRV_CARTSLOT_ADD("cart2", bbc_cartslot) | |
| 786 | MDRV_CARTSLOT_ADD("cart3", bbc_cartslot) | |
| 787 | MDRV_CARTSLOT_ADD("cart4", bbc_cartslot) | |
| 774 | 788 | MACHINE_DRIVER_END |
| 775 | 789 | |
| 776 | 790 | |
| r3978 | r3979 | |
| 783 | 797 | MDRV_VIDEO_START( bbcbp ) |
| 784 | 798 | MDRV_VIA6522_ADD("via6522_1", 1000000, bbcb_user_via) |
| 785 | 799 | MDRV_WD177X_ADD("wd177x", bbc_wd17xx_interface ) |
| 800 | ||
| 801 | MDRV_CARTSLOT_ADD("cart1", bbc_cartslot) | |
| 802 | MDRV_CARTSLOT_ADD("cart2", bbc_cartslot) | |
| 803 | MDRV_CARTSLOT_ADD("cart3", bbc_cartslot) | |
| 804 | MDRV_CARTSLOT_ADD("cart4", bbc_cartslot) | |
| 786 | 805 | MACHINE_DRIVER_END |
| 787 | 806 | |
| 788 | 807 | |
| r3978 | r3979 | |
| 793 | 812 | MDRV_MACHINE_START( bbcbp ) |
| 794 | 813 | MDRV_MACHINE_RESET( bbcbp ) |
| 795 | 814 | MDRV_VIDEO_START( bbcbp ) |
| 815 | ||
| 796 | 816 | MDRV_VIA6522_ADD("via6522_1", 1000000, bbcb_user_via) |
| 797 | 817 | MDRV_WD177X_ADD("wd177x", bbc_wd17xx_interface ) |
| 818 | ||
| 819 | MDRV_CARTSLOT_ADD("cart1", bbc_cartslot) | |
| 820 | MDRV_CARTSLOT_ADD("cart2", bbc_cartslot) | |
| 821 | MDRV_CARTSLOT_ADD("cart3", bbc_cartslot) | |
| 822 | MDRV_CARTSLOT_ADD("cart4", bbc_cartslot) | |
| 798 | 823 | MACHINE_DRIVER_END |
| 799 | 824 | |
| 800 | 825 | |
| r3978 | r3979 | |
| 844 | 869 | MDRV_VIA6522_ADD("via6522_0", 1000000, bbcb_system_via) |
| 845 | 870 | MDRV_VIA6522_ADD("via6522_1", 1000000, bbcb_user_via) |
| 846 | 871 | MDRV_WD177X_ADD("wd177x", bbc_wd17xx_interface ) |
| 872 | ||
| 873 | MDRV_CARTSLOT_ADD("cart1", bbc_cartslot) | |
| 874 | MDRV_CARTSLOT_ADD("cart2", bbc_cartslot) | |
| 875 | MDRV_CARTSLOT_ADD("cart3", bbc_cartslot) | |
| 876 | MDRV_CARTSLOT_ADD("cart4", bbc_cartslot) | |
| 847 | 877 | MACHINE_DRIVER_END |
| 848 | 878 | |
| 849 | static void bbc_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) | |
| 850 | { | |
| 851 | /* cartslot */ | |
| 852 | switch(state) | |
| 853 | { | |
| 854 | /* --- the following bits of info are returned as 64-bit signed integers --- */ | |
| 855 | case MESS_DEVINFO_INT_COUNT: info->i = 4; break; | |
| 856 | ||
| 857 | /* --- the following bits of info are returned as pointers to data or functions --- */ | |
| 858 | case MESS_DEVINFO_PTR_LOAD: info->load = DEVICE_IMAGE_LOAD_NAME(bbcb_cart); break; | |
| 859 | ||
| 860 | /* --- the following bits of info are returned as NULL-terminated strings --- */ | |
| 861 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "rom"); break; | |
| 862 | ||
| 863 | default: cartslot_device_getinfo(devclass, state, info); break; | |
| 864 | } | |
| 865 | } | |
| 866 | ||
| 867 | 879 | static void bbc_floppy_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 868 | 880 | { |
| 869 | 881 | /* floppy */ |
| r3978 | r3979 | |
| 884 | 896 | |
| 885 | 897 | |
| 886 | 898 | static SYSTEM_CONFIG_START(bbc) |
| 887 | CONFIG_DEVICE(bbc_cartslot_getinfo) | |
| 888 | 899 | CONFIG_DEVICE(bbc_floppy_getinfo) |
| 889 | 900 | SYSTEM_CONFIG_END |
| 890 | 901 |
| r3978 | r3979 | |
|---|---|---|
| 37 | 37 | |
| 38 | 38 | static const UPD7810_CONFIG gamepock_cpu_config = { TYPE_78C06, gamepock_io_callback }; |
| 39 | 39 | |
| 40 | static DEVICE_START(gamepock_cart) { | |
| 41 | memory_set_bankptr( device->machine, 1, memory_region(device->machine, "user1" ) ); | |
| 42 | return DEVICE_START_OK; | |
| 43 | } | |
| 44 | ||
| 45 | static DEVICE_IMAGE_LOAD(gamepock_cart) { | |
| 46 | UINT8 *cart = memory_region(image->machine, "user1" ); | |
| 47 | int size = image_length( image ); | |
| 48 | ||
| 49 | if ( image_fread( image, cart, size ) != size ) { | |
| 50 | image_seterror( image, IMAGE_ERROR_UNSPECIFIED, "Unable to fully read from file" ); | |
| 51 | return INIT_FAIL; | |
| 52 | } | |
| 53 | ||
| 54 | memory_set_bankptr( image->machine, 1, memory_region(image->machine, "user1" ) ); | |
| 55 | ||
| 56 | return INIT_PASS; | |
| 57 | } | |
| 58 | ||
| 59 | static const cartslot_interface gamepock_cartslot = | |
| 60 | { | |
| 61 | "bin", | |
| 62 | 0, | |
| 63 | DEVICE_START_NAME(gamepock_cart), | |
| 64 | DEVICE_IMAGE_LOAD_NAME(gamepock_cart), | |
| 65 | NULL, | |
| 66 | NULL | |
| 67 | }; | |
| 68 | ||
| 40 | 69 | static MACHINE_DRIVER_START( gamepock ) |
| 41 | 70 | MDRV_CPU_ADD("main", UPD78C06, XTAL_6MHz) /* uPD78C06AG */ |
| 42 | 71 | MDRV_CPU_PROGRAM_MAP( gamepock_mem, 0 ) |
| r3978 | r3979 | |
| 60 | 89 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 61 | 90 | MDRV_SOUND_ADD("speaker", SPEAKER, 0) |
| 62 | 91 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) |
| 92 | ||
| 93 | MDRV_CARTSLOT_ADD("cart", gamepock_cartslot) | |
| 63 | 94 | MACHINE_DRIVER_END |
| 64 | 95 | |
| 65 | static DEVICE_START(gamepock_cart) { | |
| 66 | memory_set_bankptr( device->machine, 1, memory_region(device->machine, "user1" ) ); | |
| 67 | return DEVICE_START_OK; | |
| 68 | } | |
| 69 | ||
| 70 | static DEVICE_IMAGE_LOAD(gamepock_cart) { | |
| 71 | UINT8 *cart = memory_region(image->machine, "user1" ); | |
| 72 | int size = image_length( image ); | |
| 73 | ||
| 74 | if ( image_fread( image, cart, size ) != size ) { | |
| 75 | image_seterror( image, IMAGE_ERROR_UNSPECIFIED, "Unable to fully read from file" ); | |
| 76 | return INIT_FAIL; | |
| 77 | } | |
| 78 | ||
| 79 | memory_set_bankptr( image->machine, 1, memory_region(image->machine, "user1" ) ); | |
| 80 | ||
| 81 | return INIT_PASS; | |
| 82 | } | |
| 83 | ||
| 84 | static void gamepock_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) { | |
| 85 | switch( state ) { | |
| 86 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 87 | case MESS_DEVINFO_INT_MUST_BE_LOADED: info->i = 0; break; | |
| 88 | case MESS_DEVINFO_PTR_START: info->start = DEVICE_START_NAME(gamepock_cart); break; | |
| 89 | case MESS_DEVINFO_PTR_LOAD: info->load = DEVICE_IMAGE_LOAD_NAME(gamepock_cart); break; | |
| 90 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy( info->s = device_temp_str(), "bin" ); break; | |
| 91 | default: cartslot_device_getinfo(devclass, state, info); break; | |
| 92 | } | |
| 93 | } | |
| 94 | ||
| 95 | static SYSTEM_CONFIG_START(gamepock) | |
| 96 | CONFIG_DEVICE(gamepock_cartslot_getinfo) | |
| 97 | SYSTEM_CONFIG_END | |
| 98 | ||
| 99 | 96 | ROM_START( gamepock ) |
| 100 | 97 | ROM_REGION( 0x1000, "main", ROMREGION_ERASEFF ) |
| 101 | 98 | ROM_LOAD( "egpcboot.bin", 0x0000, 0x1000, CRC(ee1ea65d) SHA1(9c7731b5ead721d2cc7f7e2655c5fed9e56db8b0) ) |
| 102 | 99 | ROM_REGION( 0x8000, "user1", ROMREGION_ERASEFF ) |
| 103 | 100 | ROM_END |
| 104 | 101 | |
| 105 | CONS( 1984, gamepock, 0, 0, gamepock, gamepock, 0, | |
| 102 | CONS( 1984, gamepock, 0, 0, gamepock, gamepock, 0, 0 | |
| 106 | 103 |
| r3978 | r3979 | |
|---|---|---|
| 90 | 90 | MDRV_IMPORT_FROM( tms9928a ) |
| 91 | 91 | MDRV_SCREEN_MODIFY("main") |
| 92 | 92 | MDRV_SCREEN_REFRESH_RATE( 50 ) |
| 93 | ||
| 94 | MDRV_CARTSLOT_ADD("cart", default_cartslot ) | |
| 93 | 95 | MACHINE_DRIVER_END |
| 94 | 96 | |
| 95 | 97 | |
| r3978 | r3979 | |
| 97 | 99 | ROM_REGION( 0x10000, "main", 0 ) |
| 98 | 100 | ROM_LOAD("br_4_1.ic3", 0x0000, 0x2000, CRC(7c880d75) SHA1(954db096bd9e8edfef72946637a12f1083841fb0)) |
| 99 | 101 | ROM_LOAD("br_4_2.ic4", 0x2000, 0x2000, CRC(16a33aef) SHA1(9529f9f792718a3715af2063b91a5fb18f741226)) |
| 100 | ROM_CART_LOAD( | |
| 102 | ROM_CART_LOAD( | |
| 101 | 103 | ROM_END |
| 102 | 104 | |
| 103 | static SYSTEM_CONFIG_START( bbcbc ) | |
| 104 | CONFIG_DEVICE(cartslot_device_getinfo) | |
| 105 | SYSTEM_CONFIG_END | |
| 106 | ||
| 107 | 105 | /*************************************************************************** |
| 108 | 106 | |
| 109 | 107 | Game driver(s) |
| r3978 | r3979 | |
| 111 | 109 | ***************************************************************************/ |
| 112 | 110 | |
| 113 | 111 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME FLAGS */ |
| 114 | CONS(1985, bbcbc, 0, 0, bbcbc, 0, 0, | |
| 112 | CONS(1985, bbcbc, 0, 0, bbcbc, 0, 0, 0 | |
| 115 | 113 |
| r3978 | r3979 | |
|---|---|---|
| 406 | 406 | CASSETTE_PLAY |
| 407 | 407 | }; |
| 408 | 408 | |
| 409 | static const cartslot_interface laser_cartslot = | |
| 410 | { | |
| 411 | "rom", | |
| 412 | 0, | |
| 413 | NULL, | |
| 414 | DEVICE_IMAGE_LOAD_NAME(laser_cart), | |
| 415 | DEVICE_IMAGE_UNLOAD_NAME(laser_cart), | |
| 416 | NULL | |
| 417 | }; | |
| 418 | ||
| 409 | 419 | static MACHINE_DRIVER_START( laser350 ) |
| 410 | 420 | /* basic machine hardware */ |
| 411 | 421 | MDRV_CPU_ADD("main", Z80, 3694700) /* 3.694700 MHz */ |
| r3978 | r3979 | |
| 438 | 448 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75) |
| 439 | 449 | |
| 440 | 450 | MDRV_CASSETTE_ADD( "cassette", laser_cassette_config ) |
| 451 | ||
| 452 | MDRV_CARTSLOT_ADD("cart", laser_cartslot ) | |
| 441 | 453 | MACHINE_DRIVER_END |
| 442 | 454 | |
| 443 | 455 | |
| r3978 | r3979 | |
| 488 | 500 | |
| 489 | 501 | ***************************************************************************/ |
| 490 | 502 | |
| 491 | static void laser_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) | |
| 492 | { | |
| 493 | /* cartslot */ | |
| 494 | switch(state) | |
| 495 | { | |
| 496 | /* --- the following bits of info are returned as 64-bit signed integers --- */ | |
| 497 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; | |
| 498 | ||
| 499 | /* --- the following bits of info are returned as pointers to data or functions --- */ | |
| 500 | case MESS_DEVINFO_PTR_LOAD: info->load = DEVICE_IMAGE_LOAD_NAME(laser_cart); break; | |
| 501 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = DEVICE_IMAGE_UNLOAD_NAME(laser_cart); break; | |
| 502 | ||
| 503 | /* --- the following bits of info are returned as NULL-terminated strings --- */ | |
| 504 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "rom"); break; | |
| 505 | ||
| 506 | default: cartslot_device_getinfo(devclass, state, info); break; | |
| 507 | } | |
| 508 | } | |
| 509 | ||
| 510 | 503 | static void laser_floppy_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 511 | 504 | { |
| 512 | 505 | /* floppy */ |
| r3978 | r3979 | |
| 528 | 521 | } |
| 529 | 522 | |
| 530 | 523 | static SYSTEM_CONFIG_START(laser) |
| 531 | CONFIG_DEVICE(laser_cartslot_getinfo) | |
| 532 | 524 | CONFIG_DEVICE(laser_floppy_getinfo) |
| 533 | 525 | SYSTEM_CONFIG_END |
| 534 | 526 |
| Previous | 15994 Revisions | Next |