src/mess/drivers/amstrad.c
| r1632 | r1633 | |
| 2281 | 2281 | } |
| 2282 | 2282 | } |
| 2283 | 2283 | |
| 2284 | |
| 2285 | |
| 2286 | /************************************* |
| 2287 | * |
| 2288 | * Input ports |
| 2289 | * |
| 2290 | *************************************/ |
| 2291 | |
| 2284 | 2292 | static INPUT_PORTS_START( amstrad_keyboard ) |
| 2285 | 2293 | /* keyboard row 0 */ |
| 2286 | 2294 | PORT_START_TAG("keyboard_row_0") |
| r1632 | r1633 | |
| 2429 | 2437 | 0 60 Hz |
| 2430 | 2438 | 1 50 Hz |
| 2431 | 2439 | */ |
| 2432 | | PORT_START_TAG("solder_links") |
| 2440 | PORT_START_TAG("solder_links") |
| 2433 | 2441 | PORT_DIPNAME(0x07, 0x07, "Manufacturer Name") |
| 2434 | 2442 | PORT_DIPLOCATION("LK:3,2,1") |
| 2435 | 2443 | PORT_DIPSETTING(0x00, "Isp") |
| r1632 | r1633 | |
| 2478 | 2486 | |
| 2479 | 2487 | INPUT_PORTS_END |
| 2480 | 2488 | |
| 2481 | | static INPUT_PORTS_START(cpc464) |
| 2482 | | PORT_INCLUDE( amstrad_keyboard ) |
| 2483 | | PORT_INCLUDE( crtc_links ) |
| 2489 | |
| 2490 | static INPUT_PORTS_START( cpc464 ) |
| 2491 | PORT_INCLUDE(amstrad_keyboard) |
| 2492 | PORT_INCLUDE(crtc_links) |
| 2484 | 2493 | INPUT_PORTS_END |
| 2485 | 2494 | |
| 2486 | | static INPUT_PORTS_START(cpc664) |
| 2487 | | PORT_INCLUDE( amstrad_keyboard ) |
| 2488 | 2495 | |
| 2496 | static INPUT_PORTS_START( cpc664 ) |
| 2497 | PORT_INCLUDE(amstrad_keyboard) |
| 2498 | |
| 2489 | 2499 | PORT_MODIFY("keyboard_row_0") |
| 2490 | 2500 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Keypad f9") PORT_CODE(KEYCODE_9_PAD) PORT_CHAR(UCHAR_MAMEKEY(9_PAD)) |
| 2491 | 2501 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Keypad f6") PORT_CODE(KEYCODE_6_PAD) PORT_CHAR(UCHAR_MAMEKEY(6_PAD)) |
| r1632 | r1633 | |
| 2504 | 2514 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_BACKSLASH) PORT_CHAR(']') PORT_CHAR('}') |
| 2505 | 2515 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Keypad f4") PORT_CODE(KEYCODE_4_PAD) PORT_CHAR(UCHAR_MAMEKEY(4_PAD)) |
| 2506 | 2516 | |
| 2507 | | PORT_INCLUDE( crtc_links ) |
| 2517 | PORT_INCLUDE(crtc_links) |
| 2508 | 2518 | INPUT_PORTS_END |
| 2509 | 2519 | |
| 2510 | | static INPUT_PORTS_START(cpc6128) |
| 2511 | | PORT_INCLUDE( amstrad_keyboard ) |
| 2512 | 2520 | |
| 2521 | static INPUT_PORTS_START( cpc6128 ) |
| 2522 | PORT_INCLUDE(amstrad_keyboard) |
| 2523 | |
| 2513 | 2524 | PORT_MODIFY("keyboard_row_0") |
| 2514 | 2525 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("f9") PORT_CODE(KEYCODE_9_PAD) PORT_CHAR(UCHAR_MAMEKEY(9_PAD)) |
| 2515 | 2526 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("f6") PORT_CODE(KEYCODE_6_PAD) PORT_CHAR(UCHAR_MAMEKEY(6_PAD)) |
| r1632 | r1633 | |
| 2534 | 2545 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_RCONTROL) PORT_CHAR('\\') PORT_CHAR('`') |
| 2535 | 2546 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Control") PORT_CODE(KEYCODE_LCONTROL) PORT_CHAR(UCHAR_SHIFT_2) |
| 2536 | 2547 | |
| 2537 | | PORT_INCLUDE( crtc_links ) |
| 2548 | PORT_INCLUDE(crtc_links) |
| 2538 | 2549 | INPUT_PORTS_END |
| 2539 | 2550 | |
| 2551 | |
| 2540 | 2552 | /* This CPC6128 sold in France has the AZERTY layout. Reference: http://amstrad.cpc.free.fr/amstrad/cpc6128.htm */ |
| 2541 | | static INPUT_PORTS_START(cpc6128f) |
| 2542 | | PORT_INCLUDE( amstrad_keyboard ) |
| 2553 | static INPUT_PORTS_START( cpc6128f ) |
| 2554 | PORT_INCLUDE(amstrad_keyboard) |
| 2543 | 2555 | |
| 2544 | 2556 | PORT_MODIFY("keyboard_row_0") |
| 2545 | 2557 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("f9") PORT_CODE(KEYCODE_9_PAD) PORT_CHAR(UCHAR_MAMEKEY(9_PAD)) |
| r1632 | r1633 | |
| 2600 | 2612 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_A) PORT_CHAR('q') PORT_CHAR('Q') |
| 2601 | 2613 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_Z) PORT_CHAR('w') PORT_CHAR('W') |
| 2602 | 2614 | |
| 2603 | | PORT_INCLUDE( crtc_links ) |
| 2615 | PORT_INCLUDE(crtc_links) |
| 2604 | 2616 | INPUT_PORTS_END |
| 2605 | 2617 | |
| 2606 | | static INPUT_PORTS_START(kccomp) |
| 2607 | | // The BIOS of the KC Compact would be able to recognize the keypresses generated by f5-f9. Unfortunately |
| 2608 | | // these keys are not present on the keyboard! Reference: http://www.cepece.info/amstrad/docs/kcc/kcc01.jpg |
| 2609 | | PORT_INCLUDE( amstrad_keyboard ) |
| 2618 | /* |
| 2619 | * The BIOS of the KC Compact would be able to recognize the keypresses |
| 2620 | * generated by F5-F9. Unfortunately these keys are not present on the |
| 2621 | * keyboard! Reference: http://www.cepece.info/amstrad/docs/kcc/kcc01.jpg |
| 2622 | * |
| 2623 | */ |
| 2624 | static INPUT_PORTS_START( kccomp ) |
| 2625 | PORT_INCLUDE(amstrad_keyboard) |
| 2610 | 2626 | |
| 2611 | 2627 | PORT_MODIFY("keyboard_row_0") |
| 2612 | 2628 | PORT_BIT(0x08, 0x08, IPT_UNUSED) |
| r1632 | r1633 | |
| 2631 | 2647 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("f4") PORT_CODE(KEYCODE_4_PAD) PORT_CHAR(UCHAR_MAMEKEY(4_PAD)) |
| 2632 | 2648 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_RCONTROL) PORT_CHAR('\\') PORT_CHAR('`') |
| 2633 | 2649 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Control") PORT_CODE(KEYCODE_LALT) PORT_CHAR(UCHAR_SHIFT_2) |
| 2634 | | |
| 2635 | 2650 | INPUT_PORTS_END |
| 2636 | 2651 | |
| 2637 | | static INPUT_PORTS_START(plus) |
| 2638 | | PORT_INCLUDE( amstrad_keyboard ) |
| 2639 | | PORT_INCLUDE( crtc_links ) |
| 2640 | 2652 | |
| 2653 | static INPUT_PORTS_START( plus ) |
| 2654 | PORT_INCLUDE(amstrad_keyboard) |
| 2655 | PORT_INCLUDE(crtc_links) |
| 2656 | |
| 2641 | 2657 | /* The CPC+ and GX4000 adds support for analogue controllers. |
| 2642 | 2658 | Up to two joysticks or four paddles can be used, although the ASIC supports twice that. |
| 2643 | 2659 | Read at &6808-&680f in ASIC RAM |
| r1632 | r1633 | |
| 2699 | 2715 | PORT_SENSITIVITY(100) |
| 2700 | 2716 | PORT_KEYDELTA(10) |
| 2701 | 2717 | PORT_PLAYER(4) |
| 2702 | | |
| 2703 | 2718 | INPUT_PORTS_END |
| 2704 | 2719 | |
| 2705 | | static INPUT_PORTS_START(gx4000) |
| 2706 | 2720 | |
| 2721 | static INPUT_PORTS_START( gx4000 ) |
| 2722 | |
| 2707 | 2723 | // The GX4000 is a console, so no keyboard access other than the joysticks. |
| 2708 | 2724 | PORT_START_TAG("keyboard_row_0") |
| 2709 | 2725 | PORT_BIT(0xff, IP_ACTIVE_LOW, IPT_UNUSED) |
| r1632 | r1633 | |
| 2797 | 2813 | PORT_SENSITIVITY(100) |
| 2798 | 2814 | PORT_KEYDELTA(10) |
| 2799 | 2815 | PORT_PLAYER(4) |
| 2800 | | |
| 2801 | 2816 | INPUT_PORTS_END |
| 2802 | 2817 | |
| 2803 | | static INPUT_PORTS_START(aleste) |
| 2804 | | PORT_INCLUDE( amstrad_keyboard ) |
| 2805 | 2818 | |
| 2819 | static INPUT_PORTS_START( aleste ) |
| 2820 | PORT_INCLUDE(amstrad_keyboard) |
| 2821 | |
| 2806 | 2822 | PORT_MODIFY( "keyboard_row_9" ) |
| 2807 | 2823 | /* Documentation marks this input as "R/L", it's purpose is unknown - I can't even find it on the keyboard */ |
| 2808 | 2824 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("R L") PORT_CODE(KEYCODE_PGUP) |
| r1632 | r1633 | |
| 2817 | 2833 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("INS") PORT_CODE(KEYCODE_DEL) |
| 2818 | 2834 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Funny looking Russian symbol") PORT_CODE(KEYCODE_END) |
| 2819 | 2835 | |
| 2820 | | PORT_INCLUDE( crtc_links ) |
| 2836 | PORT_INCLUDE(crtc_links) |
| 2821 | 2837 | PORT_MODIFY("multiface") // move Multiface II stop to F6, as the Aleste has it's own F1-F5 keys. |
| 2822 | 2838 | PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_OTHER) PORT_NAME("Multiface Two's Stop Button") PORT_CODE(KEYCODE_F6) |
| 2823 | 2839 | INPUT_PORTS_END |
| 2824 | 2840 | |
| 2841 | |
| 2825 | 2842 | /* -------------------- |
| 2826 | 2843 | - AY8910_interface - |
| 2827 | 2844 | --------------------*/ |
| r1632 | r1633 | |
| 2851 | 2868 | |
| 2852 | 2869 | |
| 2853 | 2870 | |
| 2871 | /************************************* |
| 2872 | * |
| 2873 | * Machine drivers |
| 2874 | * |
| 2875 | *************************************/ |
| 2876 | |
| 2854 | 2877 | /* actual clock to CPU is 4Mhz, but it is slowed by memory |
| 2855 | 2878 | accessess. A HALT is used for every memory access by the CPU. |
| 2856 | 2879 | This stretches the timing for opcodes, and gives an effective |
| r1632 | r1633 | |
| 2889 | 2912 | MDRV_SCREEN_VISIBLE_AREA(0, ((AMSTRAD_SCREEN_WIDTH-32) - 1), 0, ((AMSTRAD_SCREEN_HEIGHT-40) - 1)) |
| 2890 | 2913 | MDRV_PALETTE_LENGTH(32) |
| 2891 | 2914 | MDRV_COLORTABLE_LENGTH(32) |
| 2892 | | MDRV_PALETTE_INIT( amstrad_cpc ) |
| 2915 | MDRV_PALETTE_INIT(amstrad_cpc) |
| 2893 | 2916 | |
| 2894 | | MDRV_VIDEO_START( amstrad ) |
| 2895 | | MDRV_VIDEO_UPDATE( amstrad ) |
| 2896 | | MDRV_VIDEO_EOF( amstrad ) |
| 2917 | MDRV_VIDEO_START(amstrad) |
| 2918 | MDRV_VIDEO_UPDATE(amstrad) |
| 2919 | MDRV_VIDEO_EOF(amstrad) |
| 2897 | 2920 | |
| 2898 | 2921 | /* sound hardware */ |
| 2899 | 2922 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| r1632 | r1633 | |
| 2906 | 2929 | |
| 2907 | 2930 | |
| 2908 | 2931 | static MACHINE_DRIVER_START( kccomp ) |
| 2909 | | MDRV_IMPORT_FROM( amstrad ) |
| 2910 | | MDRV_SCREEN_REFRESH_RATE( AMSTRAD_FPS ) |
| 2911 | | MDRV_MACHINE_RESET( kccomp ) |
| 2932 | MDRV_IMPORT_FROM(amstrad) |
| 2933 | MDRV_SCREEN_REFRESH_RATE(AMSTRAD_FPS) |
| 2934 | MDRV_MACHINE_RESET(kccomp) |
| 2912 | 2935 | MDRV_SCREEN_SIZE(800, 312) |
| 2913 | | MDRV_PALETTE_INIT( kccomp ) |
| 2936 | MDRV_PALETTE_INIT(kccomp) |
| 2914 | 2937 | MACHINE_DRIVER_END |
| 2915 | 2938 | |
| 2916 | 2939 | |
| 2917 | 2940 | static MACHINE_DRIVER_START( cpcplus ) |
| 2918 | | MDRV_IMPORT_FROM( amstrad ) |
| 2919 | | MDRV_SCREEN_REFRESH_RATE( AMSTRAD_FPS ) |
| 2920 | | MDRV_GFXDECODE( asic_sprite ) |
| 2921 | | MDRV_MACHINE_START( plus ) |
| 2922 | | MDRV_MACHINE_RESET( plus ) |
| 2941 | MDRV_IMPORT_FROM(amstrad) |
| 2942 | MDRV_SCREEN_REFRESH_RATE(AMSTRAD_FPS) |
| 2943 | MDRV_GFXDECODE(asic_sprite) |
| 2944 | MDRV_MACHINE_START(plus) |
| 2945 | MDRV_MACHINE_RESET(plus) |
| 2923 | 2946 | MDRV_SCREEN_SIZE(800, 312) |
| 2924 | 2947 | MDRV_PALETTE_LENGTH(4096+48) // extended 12-bit palette, and standard 32 colour palette |
| 2925 | 2948 | MDRV_COLORTABLE_LENGTH(4096+48) |
| 2926 | | MDRV_PALETTE_INIT( amstrad_plus ) |
| 2949 | MDRV_PALETTE_INIT(amstrad_plus) |
| 2927 | 2950 | MACHINE_DRIVER_END |
| 2928 | 2951 | |
| 2929 | 2952 | |
| 2930 | 2953 | static MACHINE_DRIVER_START( gx4000 ) |
| 2931 | | MDRV_IMPORT_FROM( amstrad ) |
| 2932 | | MDRV_SOUND_REMOVE( "tape" ) |
| 2933 | | MDRV_SCREEN_REFRESH_RATE( AMSTRAD_FPS ) |
| 2934 | | MDRV_GFXDECODE( asic_sprite ) |
| 2935 | | MDRV_MACHINE_START( plus ) |
| 2936 | | MDRV_MACHINE_RESET( gx4000 ) |
| 2954 | MDRV_IMPORT_FROM(amstrad) |
| 2955 | MDRV_SOUND_REMOVE("tape") |
| 2956 | MDRV_SCREEN_REFRESH_RATE(AMSTRAD_FPS) |
| 2957 | MDRV_GFXDECODE(asic_sprite) |
| 2958 | MDRV_MACHINE_START(plus) |
| 2959 | MDRV_MACHINE_RESET(gx4000) |
| 2937 | 2960 | MDRV_SCREEN_SIZE(800, 312) |
| 2938 | 2961 | MDRV_PALETTE_LENGTH(4096+48) // extended 12-bit palette, and standard 32 colour palette |
| 2939 | 2962 | MDRV_COLORTABLE_LENGTH(4096+48) |
| 2940 | | MDRV_PALETTE_INIT( amstrad_plus ) |
| 2963 | MDRV_PALETTE_INIT(amstrad_plus) |
| 2941 | 2964 | MACHINE_DRIVER_END |
| 2942 | 2965 | |
| 2943 | 2966 | static MACHINE_DRIVER_START( aleste ) |
| 2944 | | MDRV_IMPORT_FROM( amstrad ) |
| 2945 | | MDRV_MACHINE_RESET( aleste ) |
| 2967 | MDRV_IMPORT_FROM(amstrad) |
| 2968 | MDRV_MACHINE_RESET(aleste) |
| 2946 | 2969 | MDRV_SOUND_REPLACE("ay", AY8910, 1000000) |
| 2947 | 2970 | MDRV_SOUND_CONFIG(ay8912_interface) |
| 2948 | 2971 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) |
| 2949 | 2972 | MDRV_PALETTE_LENGTH(32+64) |
| 2950 | 2973 | MDRV_COLORTABLE_LENGTH(32+64) // standard CPC palette, and 6-bit MSX palette |
| 2951 | | MDRV_PALETTE_INIT( aleste ) |
| 2952 | | MDRV_NVRAM_HANDLER( mc146818 ) |
| 2974 | MDRV_PALETTE_INIT(aleste) |
| 2975 | MDRV_NVRAM_HANDLER(mc146818) |
| 2953 | 2976 | MACHINE_DRIVER_END |
| 2954 | 2977 | |
| 2955 | | /*************************************************************************** |
| 2956 | 2978 | |
| 2957 | | Game driver(s) |
| 2958 | 2979 | |
| 2959 | | ***************************************************************************/ |
| 2980 | /************************************* |
| 2981 | * |
| 2982 | * ROM definitions |
| 2983 | * |
| 2984 | *************************************/ |
| 2960 | 2985 | |
| 2961 | 2986 | /* cpc6128.rom contains OS in first 16k, BASIC in second 16k */ |
| 2962 | 2987 | /* cpcados.rom contains Amstrad DOS */ |
| 2963 | 2988 | |
| 2964 | | /*static DEVICE_LOAD( aleste ) |
| 2965 | | { |
| 2966 | | if (device_load_basicdsk_floppy(image)==INIT_PASS) |
| 2967 | | { |
| 2968 | | basicdsk_set_geometry(image, 80, 2, 9, 512, 0x01, 0, FALSE); |
| 2969 | | return INIT_PASS; |
| 2970 | | } |
| 2971 | | return INIT_FAIL; |
| 2972 | | }*/ |
| 2989 | /* I am loading the roms outside of the Z80 memory area, because they |
| 2990 | are banked. */ |
| 2991 | ROM_START( cpc6128 ) |
| 2992 | /* this defines the total memory size - 64k ram, 16k OS, 16k BASIC, 16k DOS */ |
| 2993 | ROM_REGION(0x020000, REGION_CPU1, 0) |
| 2994 | /* load the os to offset 0x01000 from memory base */ |
| 2995 | ROM_LOAD("cpc6128.rom", 0x10000, 0x8000, CRC(9e827fe1) SHA1(5977adbad3f7c1e0e082cd02fe76a700d9860c30)) |
| 2996 | ROM_LOAD("cpcados.rom", 0x18000, 0x4000, CRC(1fe22ecd) SHA1(39102c8e9cb55fcc0b9b62098780ed4a3cb6a4bb)) |
| 2973 | 2997 | |
| 2998 | /* optional Multiface hardware */ |
| 2999 | ROM_LOAD_OPTIONAL("multface.rom", 0x1c000, 0x2000, CRC(f36086de) SHA1(1431ec628d38f000715545dd2186b684c5fe5a6f)) |
| 3000 | ROM_END |
| 3001 | |
| 3002 | |
| 3003 | ROM_START( cpc6128f ) |
| 3004 | /* this defines the total memory size (128kb))- 64k ram, 16k OS, 16k BASIC, 16k DOS +16k*/ |
| 3005 | ROM_REGION(0x020000, REGION_CPU1, 0) |
| 3006 | |
| 3007 | /* load the os to offset 0x01000 from memory base */ |
| 3008 | ROM_LOAD("cpc6128f.rom", 0x10000, 0x8000, CRC(1574923b) SHA1(200d59076dfef36db061d6d7d21d80021cab1237)) |
| 3009 | ROM_LOAD("cpcados.rom", 0x18000, 0x4000, CRC(1fe22ecd) SHA1(39102c8e9cb55fcc0b9b62098780ed4a3cb6a4bb)) |
| 3010 | |
| 3011 | /* optional Multiface hardware */ |
| 3012 | ROM_LOAD_OPTIONAL("multface.rom", 0x01c000, 0x2000, CRC(f36086de) SHA1(1431ec628d38f000715545dd2186b684c5fe5a6f)) |
| 3013 | ROM_END |
| 3014 | |
| 3015 | |
| 3016 | ROM_START( cpc464 ) |
| 3017 | /* this defines the total memory size - 64k ram, 16k OS, 16k BASIC, 16k DOS */ |
| 3018 | ROM_REGION(0x01c000, REGION_CPU1, 0) |
| 3019 | /* load the os to offset 0x01000 from memory base */ |
| 3020 | ROM_LOAD("cpc464.rom", 0x10000, 0x8000, CRC(40852f25) SHA1(56d39c463da60968d93e58b4ba0e675829412a20)) |
| 3021 | ROM_LOAD("cpcados.rom", 0x18000, 0x4000, CRC(1fe22ecd) SHA1(39102c8e9cb55fcc0b9b62098780ed4a3cb6a4bb)) |
| 3022 | ROM_END |
| 3023 | |
| 3024 | |
| 3025 | ROM_START( cpc664 ) |
| 3026 | /* this defines the total memory size - 64k ram, 16k OS, 16k BASIC, 16k DOS */ |
| 3027 | ROM_REGION(0x01c000, REGION_CPU1, 0) |
| 3028 | /* load the os to offset 0x01000 from memory base */ |
| 3029 | ROM_LOAD("cpc664.rom", 0x10000, 0x8000, CRC(9AB5A036) SHA1(073a7665527b5bd8a148747a3947dbd3328682c8)) |
| 3030 | ROM_LOAD("cpcados.rom", 0x18000, 0x4000, CRC(1fe22ecd) SHA1(39102c8e9cb55fcc0b9b62098780ed4a3cb6a4bb)) |
| 3031 | ROM_END |
| 3032 | |
| 3033 | |
| 3034 | ROM_START( kccomp ) |
| 3035 | ROM_REGION(0x018000, REGION_CPU1, 0) |
| 3036 | ROM_LOAD("kccos.rom", 0x10000, 0x4000, CRC(7f9ab3f7) SHA1(f828045e98e767f737fd93df0af03917f936ad08)) |
| 3037 | ROM_LOAD("kccbas.rom", 0x14000, 0x4000, CRC(ca6af63d) SHA1(d7d03755099d0aff501fa5fffc9c0b14c0825448)) |
| 3038 | |
| 3039 | ROM_REGION(0x018000+0x0800, REGION_PROMS, 0) |
| 3040 | ROM_LOAD("farben.rom", 0x18000, 0x0800, CRC(a50fa3cf) SHA1(2f229ac9f62d56973139dad9992c208421bc0f51)) |
| 3041 | |
| 3042 | /* fake region - required by graphics decode structure */ |
| 3043 | /*ROM_REGION(0x0c00, REGION_GFX1) */ |
| 3044 | ROM_END |
| 3045 | |
| 3046 | |
| 3047 | /* this system must have a cartridge installed to run */ |
| 3048 | ROM_START(cpc6128p) |
| 3049 | ROM_REGION(0x80000, REGION_CPU1, 0) |
| 3050 | ROM_REGION(0x04000, REGION_USER1, 0) |
| 3051 | ROM_END |
| 3052 | |
| 3053 | |
| 3054 | #define rom_cpc464p rom_cpc6128p |
| 3055 | #define rom_gx4000 rom_cpc6128p |
| 3056 | |
| 3057 | |
| 3058 | ROM_START( al520ex ) |
| 3059 | ROM_REGION(0x80000, REGION_CPU1, 0) |
| 3060 | ROM_LOAD("al512.bin", 0x10000, 0x10000, CRC(e8c2a9a1) SHA1(ad5827582cb19eaaae1b76e67df62d96da6ad96b)) |
| 3061 | |
| 3062 | ROM_REGION(0x20, REGION_USER2, 0) |
| 3063 | ROM_LOAD("af.bin", 0x00, 0x20, CRC(c81fb524) SHA1(17738d0603915a67ec1fddc4cbf7d6b98cdeb8f6)) |
| 3064 | |
| 3065 | ROM_REGION(0x100, REGION_USER3, 0) // RAM bank mappings |
| 3066 | ROM_LOAD("mapper.bin", 0x00, 0x100, CRC(0daebd80) SHA1(8633073cba752c38c5dc912ff9f6a3c89357539b)) |
| 3067 | |
| 3068 | ROM_REGION(0x800, REGION_USER4, 0) // Colour data |
| 3069 | ROM_LOAD("rfcoldat.bin", 0x00, 0x800, CRC(c6ace0e6) SHA1(2f4c51fcfaacb8deed68f6ae9388b870bc962cef)) |
| 3070 | |
| 3071 | ROM_REGION(0x800, REGION_USER5, 0) // Keyboard / Video |
| 3072 | ROM_LOAD("rfvdkey.bin", 0x00, 0x800, CRC(cf2aa4b0) SHA1(20f37da3bc3c377b1c47ae4d9ab8d150faae19a0)) |
| 3073 | |
| 3074 | ROM_REGION(0x100, REGION_USER6, 0) |
| 3075 | ROM_LOAD("romram.bin", 0x00, 0x100, CRC(b3ea95d7) SHA1(1252390737a7ead4ecec988c873181798fbc291b)) |
| 3076 | ROM_END |
| 3077 | |
| 3078 | |
| 3079 | |
| 3080 | /************************************* |
| 3081 | * |
| 3082 | * System configs |
| 3083 | * |
| 3084 | *************************************/ |
| 3085 | |
| 2974 | 3086 | static void cpc6128_floppy_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 2975 | 3087 | { |
| 2976 | 3088 | /* floppy */ |
| r1632 | r1633 | |
| 2983 | 3095 | } |
| 2984 | 3096 | } |
| 2985 | 3097 | |
| 2986 | | static void aleste_floppy_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 2987 | | { |
| 2988 | | /* floppy */ |
| 2989 | | switch(state) |
| 2990 | | { |
| 2991 | | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 2992 | | case DEVINFO_INT_COUNT: info->i = 2; break; |
| 2993 | | case DEVINFO_PTR_LOAD: info->load = device_load_msx_floppy; break; |
| 2994 | | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "dsk"); break; |
| 2995 | 3098 | |
| 2996 | | default: legacybasicdsk_device_getinfo(devclass, state, info); break; |
| 2997 | | } |
| 2998 | | } |
| 2999 | | |
| 3000 | | |
| 3001 | 3099 | static void cpc6128_cassette_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 3002 | 3100 | { |
| 3003 | 3101 | /* cassette */ |
| r1632 | r1633 | |
| 3012 | 3110 | } |
| 3013 | 3111 | } |
| 3014 | 3112 | |
| 3113 | |
| 3015 | 3114 | static void cpc6128_printer_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 3016 | 3115 | { |
| 3017 | 3116 | /* printer */ |
| r1632 | r1633 | |
| 3024 | 3123 | } |
| 3025 | 3124 | } |
| 3026 | 3125 | |
| 3027 | | SYSTEM_CONFIG_START(cpc6128) |
| 3028 | | CONFIG_RAM_DEFAULT(128 * 1024) |
| 3029 | | CONFIG_DEVICE(cpc6128_floppy_getinfo) |
| 3030 | | CONFIG_DEVICE(cpc6128_cassette_getinfo) |
| 3031 | | CONFIG_DEVICE(cpc6128_printer_getinfo) |
| 3032 | | SYSTEM_CONFIG_END |
| 3033 | 3126 | |
| 3034 | 3127 | static void cpcplus_cartslot_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 3035 | 3128 | { |
| r1632 | r1633 | |
| 3050 | 3143 | } |
| 3051 | 3144 | } |
| 3052 | 3145 | |
| 3146 | |
| 3053 | 3147 | static void cpcplus_snapshot_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 3054 | 3148 | { |
| 3055 | 3149 | /* snapshot */ |
| r1632 | r1633 | |
| 3065 | 3159 | } |
| 3066 | 3160 | } |
| 3067 | 3161 | |
| 3068 | | SYSTEM_CONFIG_START(cpcplus) |
| 3162 | |
| 3163 | static void aleste_floppy_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 3164 | { |
| 3165 | /* floppy */ |
| 3166 | switch(state) |
| 3167 | { |
| 3168 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 3169 | case DEVINFO_INT_COUNT: info->i = 2; break; |
| 3170 | case DEVINFO_PTR_LOAD: info->load = device_load_msx_floppy; break; |
| 3171 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "dsk"); break; |
| 3172 | |
| 3173 | default: legacybasicdsk_device_getinfo(devclass, state, info); break; |
| 3174 | } |
| 3175 | } |
| 3176 | |
| 3177 | |
| 3178 | SYSTEM_CONFIG_START( cpc6128 ) |
| 3179 | CONFIG_RAM_DEFAULT(128 * 1024) |
| 3180 | CONFIG_DEVICE(cpc6128_floppy_getinfo) |
| 3181 | CONFIG_DEVICE(cpc6128_cassette_getinfo) |
| 3182 | CONFIG_DEVICE(cpc6128_printer_getinfo) |
| 3183 | SYSTEM_CONFIG_END |
| 3184 | |
| 3185 | |
| 3186 | SYSTEM_CONFIG_START( cpcplus ) |
| 3069 | 3187 | CONFIG_IMPORT_FROM(cpc6128) |
| 3070 | 3188 | CONFIG_DEVICE(cpcplus_cartslot_getinfo) |
| 3071 | 3189 | CONFIG_DEVICE(cpcplus_snapshot_getinfo) |
| 3072 | 3190 | SYSTEM_CONFIG_END |
| 3073 | 3191 | |
| 3074 | | SYSTEM_CONFIG_START(gx4000) |
| 3192 | |
| 3193 | SYSTEM_CONFIG_START( gx4000 ) |
| 3075 | 3194 | CONFIG_RAM_DEFAULT(64 * 1024) // has 64k RAM |
| 3076 | 3195 | CONFIG_DEVICE(cpcplus_cartslot_getinfo) |
| 3077 | 3196 | CONFIG_DEVICE(cpcplus_snapshot_getinfo) |
| 3078 | 3197 | SYSTEM_CONFIG_END |
| 3079 | 3198 | |
| 3080 | | SYSTEM_CONFIG_START(aleste) |
| 3199 | |
| 3200 | SYSTEM_CONFIG_START( aleste ) |
| 3081 | 3201 | CONFIG_DEVICE(aleste_floppy_getinfo) |
| 3082 | 3202 | CONFIG_DEVICE(cpc6128_cassette_getinfo) |
| 3083 | 3203 | CONFIG_DEVICE(cpc6128_printer_getinfo) |
| 3084 | 3204 | CONFIG_RAM_DEFAULT(2048 * 1024) // has 2048k RAM |
| 3085 | 3205 | SYSTEM_CONFIG_END |
| 3086 | 3206 | |
| 3087 | | /* --------------------------------------------- |
| 3088 | | - Rom definition for the ROM loading system - |
| 3089 | | ---------------------------------------------*/ |
| 3090 | | /* I am loading the roms outside of the Z80 memory area, because they |
| 3091 | | are banked. */ |
| 3092 | | ROM_START(cpc6128) |
| 3093 | | /* this defines the total memory size - 64k ram, 16k OS, 16k BASIC, 16k DOS */ |
| 3094 | | ROM_REGION(0x020000, REGION_CPU1,0) |
| 3095 | | /* load the os to offset 0x01000 from memory base */ |
| 3096 | | ROM_LOAD("cpc6128.rom", 0x10000, 0x8000, CRC(9e827fe1) SHA1(5977adbad3f7c1e0e082cd02fe76a700d9860c30)) |
| 3097 | | ROM_LOAD("cpcados.rom", 0x18000, 0x4000, CRC(1fe22ecd) SHA1(39102c8e9cb55fcc0b9b62098780ed4a3cb6a4bb)) |
| 3098 | 3207 | |
| 3099 | | /* optional Multiface hardware */ |
| 3100 | | ROM_LOAD_OPTIONAL("multface.rom", 0x01c000, 0x02000, CRC(f36086de) SHA1(1431ec628d38f000715545dd2186b684c5fe5a6f)) |
| 3101 | | ROM_END |
| 3102 | 3208 | |
| 3103 | | ROM_START(cpc6128f) |
| 3209 | /************************************* |
| 3210 | * |
| 3211 | * Driver definitions |
| 3212 | * |
| 3213 | *************************************/ |
| 3104 | 3214 | |
| 3105 | | /* this defines the total memory size (128kb))- 64k ram, 16k OS, 16k BASIC, 16k DOS +16k*/ |
| 3106 | | ROM_REGION(0x020000, REGION_CPU1,0) |
| 3107 | | |
| 3108 | | /* load the os to offset 0x01000 from memory base */ |
| 3109 | | ROM_LOAD("cpc6128f.rom", 0x10000, 0x8000, CRC(1574923b) SHA1(200d59076dfef36db061d6d7d21d80021cab1237)) |
| 3110 | | ROM_LOAD("cpcados.rom", 0x018000, 0x4000, CRC(1fe22ecd) SHA1(39102c8e9cb55fcc0b9b62098780ed4a3cb6a4bb)) |
| 3111 | | |
| 3112 | | /* optional Multiface hardware */ |
| 3113 | | ROM_LOAD_OPTIONAL("multface.rom", 0x01c000, 0x2000, CRC(f36086de) SHA1(1431ec628d38f000715545dd2186b684c5fe5a6f)) |
| 3114 | | ROM_END |
| 3115 | | |
| 3116 | | ROM_START(cpc464) |
| 3117 | | /* this defines the total memory size - 64k ram, 16k OS, 16k BASIC, 16k DOS */ |
| 3118 | | ROM_REGION(0x01c000, REGION_CPU1,0) |
| 3119 | | /* load the os to offset 0x01000 from memory base */ |
| 3120 | | ROM_LOAD("cpc464.rom", 0x10000, 0x8000, CRC(40852f25) SHA1(56d39c463da60968d93e58b4ba0e675829412a20)) |
| 3121 | | ROM_LOAD("cpcados.rom", 0x18000, 0x4000, CRC(1fe22ecd) SHA1(39102c8e9cb55fcc0b9b62098780ed4a3cb6a4bb)) |
| 3122 | | ROM_END |
| 3123 | | |
| 3124 | | ROM_START(cpc664) |
| 3125 | | /* this defines the total memory size - 64k ram, 16k OS, 16k BASIC, 16k DOS */ |
| 3126 | | ROM_REGION(0x01c000, REGION_CPU1,0) |
| 3127 | | /* load the os to offset 0x01000 from memory base */ |
| 3128 | | ROM_LOAD("cpc664.rom", 0x10000, 0x8000, CRC(9AB5A036) SHA1(073a7665527b5bd8a148747a3947dbd3328682c8)) |
| 3129 | | ROM_LOAD("cpcados.rom", 0x18000, 0x4000, CRC(1fe22ecd) SHA1(39102c8e9cb55fcc0b9b62098780ed4a3cb6a4bb)) |
| 3130 | | ROM_END |
| 3131 | | |
| 3132 | | |
| 3133 | | ROM_START(kccomp) |
| 3134 | | ROM_REGION(0x018000, REGION_CPU1,0) |
| 3135 | | ROM_LOAD("kccos.rom", 0x10000, 0x04000, CRC(7f9ab3f7) SHA1(f828045e98e767f737fd93df0af03917f936ad08)) |
| 3136 | | ROM_LOAD("kccbas.rom", 0x14000, 0x04000, CRC(ca6af63d) SHA1(d7d03755099d0aff501fa5fffc9c0b14c0825448)) |
| 3137 | | ROM_REGION(0x018000+0x0800, REGION_PROMS, 0 ) |
| 3138 | | ROM_LOAD("farben.rom", 0x018000, 0x0800, CRC(a50fa3cf) SHA1(2f229ac9f62d56973139dad9992c208421bc0f51)) |
| 3139 | | |
| 3140 | | /* fake region - required by graphics decode structure */ |
| 3141 | | /*ROM_REGION(0x0c00, REGION_GFX1) */ |
| 3142 | | ROM_END |
| 3143 | | |
| 3144 | | |
| 3145 | | /* this system must have a cartridge installed to run */ |
| 3146 | | ROM_START(cpc6128p) |
| 3147 | | ROM_REGION(0x80000, REGION_CPU1,0) |
| 3148 | | ROM_REGION(0x4000, REGION_USER1,0) |
| 3149 | | ROM_END |
| 3150 | | |
| 3151 | | /* this system must have a cartridge installed to run */ |
| 3152 | | ROM_START(cpc464p) |
| 3153 | | ROM_REGION(0x80000, REGION_CPU1,0) |
| 3154 | | ROM_REGION(0x4000, REGION_USER1,0) |
| 3155 | | ROM_END |
| 3156 | | |
| 3157 | | /* this system must have a cartridge installed to run */ |
| 3158 | | ROM_START(gx4000) |
| 3159 | | ROM_REGION(0x80000, REGION_CPU1,0) |
| 3160 | | ROM_REGION(0x4000, REGION_USER1,0) |
| 3161 | | ROM_END |
| 3162 | | |
| 3163 | | ROM_START(al520ex) |
| 3164 | | ROM_REGION(0x80000, REGION_CPU1, 0) |
| 3165 | | ROM_LOAD("al512.bin", 0x10000, 0x10000, CRC(e8c2a9a1) SHA1(ad5827582cb19eaaae1b76e67df62d96da6ad96b)) |
| 3166 | | |
| 3167 | | ROM_REGION(0x20, REGION_USER2, 0) |
| 3168 | | ROM_LOAD("af.bin", 0x00, 0x20, CRC(c81fb524) SHA1(17738d0603915a67ec1fddc4cbf7d6b98cdeb8f6)) |
| 3169 | | |
| 3170 | | ROM_REGION(0x100, REGION_USER3, 0) // RAM bank mappings |
| 3171 | | ROM_LOAD("mapper.bin", 0x00, 0x100, CRC(0daebd80) SHA1(8633073cba752c38c5dc912ff9f6a3c89357539b)) |
| 3172 | | |
| 3173 | | ROM_REGION(0x800, REGION_USER4, 0) // Colour data |
| 3174 | | ROM_LOAD("rfcoldat.bin", 0x00, 0x800, CRC(c6ace0e6) SHA1(2f4c51fcfaacb8deed68f6ae9388b870bc962cef)) |
| 3175 | | |
| 3176 | | ROM_REGION(0x800, REGION_USER5, 0) // Keyboard / Video |
| 3177 | | ROM_LOAD("rfvdkey.bin", 0x00, 0x800, CRC(cf2aa4b0) SHA1(20f37da3bc3c377b1c47ae4d9ab8d150faae19a0)) |
| 3178 | | |
| 3179 | | ROM_REGION(0x100, REGION_USER6, 0) |
| 3180 | | ROM_LOAD("romram.bin", 0x00, 0x100, CRC(b3ea95d7) SHA1(1252390737a7ead4ecec988c873181798fbc291b)) |
| 3181 | | ROM_END |
| 3182 | | |
| 3183 | | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME */ |
| 3184 | | COMP( 1984, cpc464, 0, 0, amstrad, cpc464, 0, cpc6128, "Amstrad plc", "Amstrad CPC464", 0) |
| 3185 | | COMP( 1985, cpc664, cpc464, 0, amstrad, cpc664, 0, cpc6128, "Amstrad plc", "Amstrad CPC664", 0) |
| 3186 | | COMP( 1985, cpc6128, cpc464, 0, amstrad, cpc6128, 0, cpc6128, "Amstrad plc", "Amstrad CPC6128", 0) |
| 3187 | | COMP( 1985, cpc6128f, cpc464, 0, amstrad, cpc6128f, 0, cpc6128, "Amstrad plc", "Amstrad CPC6128 (France, AZERTY Keyboard)", 0) |
| 3188 | | COMP( 1990, cpc464p, 0, 0, cpcplus, plus, 0, cpcplus, "Amstrad plc", "Amstrad CPC464+", 0) |
| 3189 | | COMP( 1990, cpc6128p, 0, 0, cpcplus, plus, 0, cpcplus, "Amstrad plc", "Amstrad CPC6128+", 0) |
| 3190 | | CONS( 1990, gx4000, 0, 0, gx4000, gx4000, 0, gx4000, "Amstrad plc", "Amstrad GX4000", 0) |
| 3191 | | COMP( 1989, kccomp, cpc464, 0, kccomp, kccomp, 0, cpc6128, "VEB Mikroelektronik", "KC Compact", 0) |
| 3192 | | COMP( 1993, al520ex, cpc464, 0, aleste, aleste, aleste,aleste, "Patisonic", "Aleste 520EX", GAME_IMPERFECT_SOUND) |
| 3215 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME FLAGS */ |
| 3216 | COMP( 1984, cpc464, 0, 0, amstrad, cpc464, 0, cpc6128, "Amstrad plc", "Amstrad CPC464", 0 ) |
| 3217 | COMP( 1985, cpc664, cpc464, 0, amstrad, cpc664, 0, cpc6128, "Amstrad plc", "Amstrad CPC664", 0 ) |
| 3218 | COMP( 1985, cpc6128, cpc464, 0, amstrad, cpc6128, 0, cpc6128, "Amstrad plc", "Amstrad CPC6128", 0 ) |
| 3219 | COMP( 1985, cpc6128f, cpc464, 0, amstrad, cpc6128f, 0, cpc6128, "Amstrad plc", "Amstrad CPC6128 (France, AZERTY Keyboard)", 0 ) |
| 3220 | COMP( 1990, cpc464p, 0, 0, cpcplus, plus, 0, cpcplus, "Amstrad plc", "Amstrad CPC464+", 0 ) |
| 3221 | COMP( 1990, cpc6128p, 0, 0, cpcplus, plus, 0, cpcplus, "Amstrad plc", "Amstrad CPC6128+", 0 ) |
| 3222 | CONS( 1990, gx4000, 0, 0, gx4000, gx4000, 0, gx4000, "Amstrad plc", "Amstrad GX4000", 0 ) |
| 3223 | COMP( 1989, kccomp, cpc464, 0, kccomp, kccomp, 0, cpc6128, "VEB Mikroelektronik", "KC Compact", 0 ) |
| 3224 | COMP( 1993, al520ex, cpc464, 0, aleste, aleste, aleste, aleste, "Patisonic", "Aleste 520EX", GAME_IMPERFECT_SOUND ) |