Previous 15994 Revisions Next

r1633 Tuesday 29th January, 2008 at 13:42:22 UTC by Dirk Best
[AMSTRAD] Started to clean up the driver
[src/mess/drivers]amstrad.c
[src/mess/machine]amstrad.c

src/mess/machine/amstrad.c
r1632r1633
313313   return INIT_PASS;
314314}
315315
316
317/*static DEVICE_LOAD( aleste )
318{
319   if (device_load_basicdsk_floppy(image)==INIT_PASS)
320   {
321      basicdsk_set_geometry(image, 80, 2, 9, 512, 0x01, 0, FALSE);
322      return INIT_PASS;
323   }
324   return INIT_FAIL;
325}*/
src/mess/drivers/amstrad.c
r1632r1633
22812281   }
22822282}
22832283
2284
2285
2286/*************************************
2287 *
2288 *  Input ports
2289 *
2290 *************************************/
2291
22842292static INPUT_PORTS_START( amstrad_keyboard )
22852293   /* keyboard row 0 */
22862294   PORT_START_TAG("keyboard_row_0")
r1632r1633
242924370       60 Hz
243024381       50 Hz
24312439*/
2432PORT_START_TAG("solder_links")
2440   PORT_START_TAG("solder_links")
24332441   PORT_DIPNAME(0x07, 0x07, "Manufacturer Name")
24342442   PORT_DIPLOCATION("LK:3,2,1")
24352443   PORT_DIPSETTING(0x00, "Isp")
r1632r1633
24782486
24792487INPUT_PORTS_END
24802488
2481static INPUT_PORTS_START(cpc464)
2482   PORT_INCLUDE( amstrad_keyboard )
2483   PORT_INCLUDE( crtc_links )
2489
2490static INPUT_PORTS_START( cpc464 )
2491   PORT_INCLUDE(amstrad_keyboard)
2492   PORT_INCLUDE(crtc_links)
24842493INPUT_PORTS_END
24852494
2486static INPUT_PORTS_START(cpc664)
2487   PORT_INCLUDE( amstrad_keyboard )
24882495
2496static INPUT_PORTS_START( cpc664 )
2497   PORT_INCLUDE(amstrad_keyboard)
2498
24892499   PORT_MODIFY("keyboard_row_0")
24902500   PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Keypad f9")             PORT_CODE(KEYCODE_9_PAD)      PORT_CHAR(UCHAR_MAMEKEY(9_PAD))
24912501   PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Keypad f6")             PORT_CODE(KEYCODE_6_PAD)      PORT_CHAR(UCHAR_MAMEKEY(6_PAD))
r1632r1633
25042514   PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD)                                    PORT_CODE(KEYCODE_BACKSLASH)  PORT_CHAR(']') PORT_CHAR('}')
25052515   PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Keypad f4")             PORT_CODE(KEYCODE_4_PAD)      PORT_CHAR(UCHAR_MAMEKEY(4_PAD))
25062516
2507   PORT_INCLUDE( crtc_links )
2517   PORT_INCLUDE(crtc_links)
25082518INPUT_PORTS_END
25092519
2510static INPUT_PORTS_START(cpc6128)
2511   PORT_INCLUDE( amstrad_keyboard )
25122520
2521static INPUT_PORTS_START( cpc6128 )
2522   PORT_INCLUDE(amstrad_keyboard)
2523
25132524   PORT_MODIFY("keyboard_row_0")
25142525   PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("f9")                    PORT_CODE(KEYCODE_9_PAD)      PORT_CHAR(UCHAR_MAMEKEY(9_PAD))
25152526   PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("f6")                    PORT_CODE(KEYCODE_6_PAD)      PORT_CHAR(UCHAR_MAMEKEY(6_PAD))
r1632r1633
25342545   PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD)                                    PORT_CODE(KEYCODE_RCONTROL)   PORT_CHAR('\\') PORT_CHAR('`')
25352546   PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Control")               PORT_CODE(KEYCODE_LCONTROL)   PORT_CHAR(UCHAR_SHIFT_2)
25362547
2537   PORT_INCLUDE( crtc_links )
2548   PORT_INCLUDE(crtc_links)
25382549INPUT_PORTS_END
25392550
2551
25402552/* This CPC6128 sold in France has the AZERTY layout. Reference: http://amstrad.cpc.free.fr/amstrad/cpc6128.htm */
2541static INPUT_PORTS_START(cpc6128f)
2542   PORT_INCLUDE( amstrad_keyboard )
2553static INPUT_PORTS_START( cpc6128f )
2554   PORT_INCLUDE(amstrad_keyboard)
25432555
25442556   PORT_MODIFY("keyboard_row_0")
25452557   PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("f9")                    PORT_CODE(KEYCODE_9_PAD)      PORT_CHAR(UCHAR_MAMEKEY(9_PAD))
r1632r1633
26002612   PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD)                                    PORT_CODE(KEYCODE_A)          PORT_CHAR('q') PORT_CHAR('Q')
26012613   PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD)                                    PORT_CODE(KEYCODE_Z)          PORT_CHAR('w') PORT_CHAR('W')
26022614
2603   PORT_INCLUDE( crtc_links )
2615   PORT_INCLUDE(crtc_links)
26042616INPUT_PORTS_END
26052617
2606static 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 */
2624static INPUT_PORTS_START( kccomp )
2625   PORT_INCLUDE(amstrad_keyboard)
26102626
26112627   PORT_MODIFY("keyboard_row_0")
26122628   PORT_BIT(0x08, 0x08, IPT_UNUSED)
r1632r1633
26312647   PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("f4")                    PORT_CODE(KEYCODE_4_PAD)      PORT_CHAR(UCHAR_MAMEKEY(4_PAD))
26322648   PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD)                                    PORT_CODE(KEYCODE_RCONTROL)   PORT_CHAR('\\') PORT_CHAR('`')
26332649   PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Control")               PORT_CODE(KEYCODE_LALT)       PORT_CHAR(UCHAR_SHIFT_2)
2634
26352650INPUT_PORTS_END
26362651
2637static INPUT_PORTS_START(plus)
2638   PORT_INCLUDE( amstrad_keyboard )
2639   PORT_INCLUDE( crtc_links )
26402652
2653static INPUT_PORTS_START( plus )
2654   PORT_INCLUDE(amstrad_keyboard)
2655   PORT_INCLUDE(crtc_links)
2656
26412657   /* The CPC+ and GX4000 adds support for analogue controllers.
26422658       Up to two joysticks or four paddles can be used, although the ASIC supports twice that.
26432659       Read at &6808-&680f in ASIC RAM
r1632r1633
26992715   PORT_SENSITIVITY(100)
27002716   PORT_KEYDELTA(10)
27012717   PORT_PLAYER(4)
2702
27032718INPUT_PORTS_END
27042719
2705static INPUT_PORTS_START(gx4000)
27062720
2721static INPUT_PORTS_START( gx4000 )
2722
27072723   // The GX4000 is a console, so no keyboard access other than the joysticks.
27082724   PORT_START_TAG("keyboard_row_0")
27092725   PORT_BIT(0xff, IP_ACTIVE_LOW, IPT_UNUSED)
r1632r1633
27972813   PORT_SENSITIVITY(100)
27982814   PORT_KEYDELTA(10)
27992815   PORT_PLAYER(4)
2800
28012816INPUT_PORTS_END
28022817
2803static INPUT_PORTS_START(aleste)
2804   PORT_INCLUDE( amstrad_keyboard )
28052818
2819static INPUT_PORTS_START( aleste )
2820   PORT_INCLUDE(amstrad_keyboard)
2821
28062822   PORT_MODIFY( "keyboard_row_9" )
28072823   /* Documentation marks this input as "R/L", it's purpose is unknown - I can't even find it on the keyboard */
28082824   PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("R  L")       PORT_CODE(KEYCODE_PGUP)
r1632r1633
28172833   PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD)    PORT_NAME("INS")       PORT_CODE(KEYCODE_DEL)
28182834   PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD)  PORT_NAME("Funny looking Russian symbol")     PORT_CODE(KEYCODE_END)
28192835
2820   PORT_INCLUDE( crtc_links )
2836   PORT_INCLUDE(crtc_links)
28212837   PORT_MODIFY("multiface")  // move Multiface II stop to F6, as the Aleste has it's own F1-F5 keys.
28222838   PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_OTHER) PORT_NAME("Multiface Two's Stop Button") PORT_CODE(KEYCODE_F6)
28232839INPUT_PORTS_END
28242840
2841
28252842/* --------------------
28262843   - AY8910_interface -
28272844   --------------------*/
r1632r1633
28512868
28522869
28532870
2871/*************************************
2872 *
2873 *  Machine drivers
2874 *
2875 *************************************/
2876
28542877/* actual clock to CPU is 4Mhz, but it is slowed by memory
28552878accessess. A HALT is used for every memory access by the CPU.
28562879This stretches the timing for opcodes, and gives an effective
r1632r1633
28892912   MDRV_SCREEN_VISIBLE_AREA(0, ((AMSTRAD_SCREEN_WIDTH-32) - 1), 0, ((AMSTRAD_SCREEN_HEIGHT-40) - 1))
28902913   MDRV_PALETTE_LENGTH(32)
28912914   MDRV_COLORTABLE_LENGTH(32)
2892   MDRV_PALETTE_INIT( amstrad_cpc )
2915   MDRV_PALETTE_INIT(amstrad_cpc)
28932916
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)
28972920
28982921   /* sound hardware */
28992922   MDRV_SPEAKER_STANDARD_MONO("mono")
r1632r1633
29062929
29072930
29082931static 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)
29122935   MDRV_SCREEN_SIZE(800, 312)
2913   MDRV_PALETTE_INIT( kccomp )
2936   MDRV_PALETTE_INIT(kccomp)
29142937MACHINE_DRIVER_END
29152938
29162939
29172940static 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)
29232946   MDRV_SCREEN_SIZE(800, 312)
29242947   MDRV_PALETTE_LENGTH(4096+48)  // extended 12-bit palette, and standard 32 colour palette
29252948   MDRV_COLORTABLE_LENGTH(4096+48)
2926   MDRV_PALETTE_INIT( amstrad_plus )
2949   MDRV_PALETTE_INIT(amstrad_plus)
29272950MACHINE_DRIVER_END
29282951
29292952
29302953static 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)
29372960   MDRV_SCREEN_SIZE(800, 312)
29382961   MDRV_PALETTE_LENGTH(4096+48)  // extended 12-bit palette, and standard 32 colour palette
29392962   MDRV_COLORTABLE_LENGTH(4096+48)
2940   MDRV_PALETTE_INIT( amstrad_plus )
2963   MDRV_PALETTE_INIT(amstrad_plus)
29412964MACHINE_DRIVER_END
29422965
29432966static MACHINE_DRIVER_START( aleste )
2944   MDRV_IMPORT_FROM( amstrad )
2945   MDRV_MACHINE_RESET( aleste )
2967   MDRV_IMPORT_FROM(amstrad)
2968   MDRV_MACHINE_RESET(aleste)
29462969   MDRV_SOUND_REPLACE("ay", AY8910, 1000000)
29472970   MDRV_SOUND_CONFIG(ay8912_interface)
29482971   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
29492972   MDRV_PALETTE_LENGTH(32+64)
29502973   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)
29532976MACHINE_DRIVER_END
29542977
2955/***************************************************************************
29562978
2957  Game driver(s)
29582979
2959***************************************************************************/
2980/*************************************
2981 *
2982 *  ROM definitions
2983 *
2984 *************************************/
29602985
29612986/* cpc6128.rom contains OS in first 16k, BASIC in second 16k */
29622987/* cpcados.rom contains Amstrad DOS */
29632988
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
2990are banked. */
2991ROM_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))
29732997
2998   /* optional Multiface hardware */
2999   ROM_LOAD_OPTIONAL("multface.rom", 0x1c000, 0x2000, CRC(f36086de) SHA1(1431ec628d38f000715545dd2186b684c5fe5a6f))
3000ROM_END
3001
3002
3003ROM_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))
3013ROM_END
3014
3015
3016ROM_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))
3022ROM_END
3023
3024
3025ROM_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))
3031ROM_END
3032
3033
3034ROM_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) */
3044ROM_END
3045
3046
3047/* this system must have a cartridge installed to run */
3048ROM_START(cpc6128p)
3049   ROM_REGION(0x80000, REGION_CPU1, 0)
3050   ROM_REGION(0x04000, REGION_USER1, 0)
3051ROM_END
3052
3053
3054#define rom_cpc464p  rom_cpc6128p
3055#define rom_gx4000  rom_cpc6128p
3056
3057
3058ROM_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))
3076ROM_END
3077
3078
3079
3080/*************************************
3081 *
3082 *  System configs
3083 *
3084 *************************************/
3085
29743086static void cpc6128_floppy_getinfo(const device_class *devclass, UINT32 state, union devinfo *info)
29753087{
29763088   /* floppy */
r1632r1633
29833095   }
29843096}
29853097
2986static 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;
29953098
2996      default:                              legacybasicdsk_device_getinfo(devclass, state, info); break;
2997   }
2998}
2999
3000
30013099static void cpc6128_cassette_getinfo(const device_class *devclass, UINT32 state, union devinfo *info)
30023100{
30033101   /* cassette */
r1632r1633
30123110   }
30133111}
30143112
3113
30153114static void cpc6128_printer_getinfo(const device_class *devclass, UINT32 state, union devinfo *info)
30163115{
30173116   /* printer */
r1632r1633
30243123   }
30253124}
30263125
3027SYSTEM_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)
3032SYSTEM_CONFIG_END
30333126
30343127static void cpcplus_cartslot_getinfo(const device_class *devclass, UINT32 state, union devinfo *info)
30353128{
r1632r1633
30503143   }
30513144}
30523145
3146
30533147static void cpcplus_snapshot_getinfo(const device_class *devclass, UINT32 state, union devinfo *info)
30543148{
30553149   /* snapshot */
r1632r1633
30653159   }
30663160}
30673161
3068SYSTEM_CONFIG_START(cpcplus)
3162
3163static 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
3178SYSTEM_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)
3183SYSTEM_CONFIG_END
3184
3185
3186SYSTEM_CONFIG_START( cpcplus )
30693187   CONFIG_IMPORT_FROM(cpc6128)
30703188   CONFIG_DEVICE(cpcplus_cartslot_getinfo)
30713189   CONFIG_DEVICE(cpcplus_snapshot_getinfo)
30723190SYSTEM_CONFIG_END
30733191
3074SYSTEM_CONFIG_START(gx4000)
3192
3193SYSTEM_CONFIG_START( gx4000 )
30753194   CONFIG_RAM_DEFAULT(64 * 1024)  // has 64k RAM
30763195   CONFIG_DEVICE(cpcplus_cartslot_getinfo)
30773196   CONFIG_DEVICE(cpcplus_snapshot_getinfo)
30783197SYSTEM_CONFIG_END
30793198
3080SYSTEM_CONFIG_START(aleste)
3199
3200SYSTEM_CONFIG_START( aleste )
30813201   CONFIG_DEVICE(aleste_floppy_getinfo)
30823202   CONFIG_DEVICE(cpc6128_cassette_getinfo)
30833203   CONFIG_DEVICE(cpc6128_printer_getinfo)
30843204   CONFIG_RAM_DEFAULT(2048 * 1024)  // has 2048k RAM
30853205SYSTEM_CONFIG_END
30863206
3087/* ---------------------------------------------
3088   - Rom definition for the ROM loading system -
3089   ---------------------------------------------*/
3090/* I am loading the roms outside of the Z80 memory area, because they
3091are banked. */
3092ROM_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))
30983207
3099   /* optional Multiface hardware */
3100      ROM_LOAD_OPTIONAL("multface.rom", 0x01c000, 0x02000, CRC(f36086de) SHA1(1431ec628d38f000715545dd2186b684c5fe5a6f))
3101ROM_END
31023208
3103ROM_START(cpc6128f)
3209/*************************************
3210 *
3211 *  Driver definitions
3212 *
3213 *************************************/
31043214
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))
3114ROM_END
3115
3116ROM_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))
3122ROM_END
3123
3124ROM_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))
3130ROM_END
3131
3132
3133ROM_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) */
3142ROM_END
3143
3144
3145/* this system must have a cartridge installed to run */
3146ROM_START(cpc6128p)
3147   ROM_REGION(0x80000, REGION_CPU1,0)
3148   ROM_REGION(0x4000, REGION_USER1,0)
3149ROM_END
3150
3151/* this system must have a cartridge installed to run */
3152ROM_START(cpc464p)
3153   ROM_REGION(0x80000, REGION_CPU1,0)
3154   ROM_REGION(0x4000, REGION_USER1,0)
3155ROM_END
3156
3157/* this system must have a cartridge installed to run */
3158ROM_START(gx4000)
3159   ROM_REGION(0x80000, REGION_CPU1,0)
3160   ROM_REGION(0x4000, REGION_USER1,0)
3161ROM_END
3162
3163ROM_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))
3181ROM_END
3182
3183/*    YEAR  NAME      PARENT    COMPAT  MACHINE  INPUT     INIT CONFIG   COMPANY                FULLNAME */
3184COMP( 1984, cpc464,   0,        0,      amstrad, cpc464,   0,   cpc6128, "Amstrad plc",         "Amstrad CPC464", 0)
3185COMP( 1985, cpc664,   cpc464,   0,      amstrad, cpc664,   0,   cpc6128, "Amstrad plc",         "Amstrad CPC664", 0)
3186COMP( 1985, cpc6128,  cpc464,   0,      amstrad, cpc6128,  0,   cpc6128, "Amstrad plc",         "Amstrad CPC6128", 0)
3187COMP( 1985, cpc6128f, cpc464,   0,      amstrad, cpc6128f, 0,   cpc6128, "Amstrad plc",         "Amstrad CPC6128 (France, AZERTY Keyboard)", 0)
3188COMP( 1990, cpc464p,  0,        0,      cpcplus, plus,     0,   cpcplus, "Amstrad plc",         "Amstrad CPC464+", 0)
3189COMP( 1990, cpc6128p, 0,        0,      cpcplus, plus,     0,   cpcplus, "Amstrad plc",         "Amstrad CPC6128+", 0)
3190CONS( 1990, gx4000,   0,        0,      gx4000,  gx4000,   0,   gx4000,  "Amstrad plc",         "Amstrad GX4000", 0)
3191COMP( 1989, kccomp,   cpc464,   0,      kccomp,  kccomp,   0,   cpc6128, "VEB Mikroelektronik", "KC Compact", 0)
3192COMP( 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 */
3216COMP( 1984, cpc464,   0,        0,      amstrad, cpc464,   0,       cpc6128, "Amstrad plc",         "Amstrad CPC464",                            0 )
3217COMP( 1985, cpc664,   cpc464,   0,      amstrad, cpc664,   0,       cpc6128, "Amstrad plc",         "Amstrad CPC664",                            0 )
3218COMP( 1985, cpc6128,  cpc464,   0,      amstrad, cpc6128,  0,       cpc6128, "Amstrad plc",         "Amstrad CPC6128",                           0 )
3219COMP( 1985, cpc6128f, cpc464,   0,      amstrad, cpc6128f, 0,       cpc6128, "Amstrad plc",         "Amstrad CPC6128 (France, AZERTY Keyboard)", 0 )
3220COMP( 1990, cpc464p,  0,        0,      cpcplus, plus,     0,       cpcplus, "Amstrad plc",         "Amstrad CPC464+",                           0 )
3221COMP( 1990, cpc6128p, 0,        0,      cpcplus, plus,     0,       cpcplus, "Amstrad plc",         "Amstrad CPC6128+",                          0 )
3222CONS( 1990, gx4000,   0,        0,      gx4000,  gx4000,   0,       gx4000,  "Amstrad plc",         "Amstrad GX4000",                            0 )
3223COMP( 1989, kccomp,   cpc464,   0,      kccomp,  kccomp,   0,       cpc6128, "VEB Mikroelektronik", "KC Compact",                                0 )
3224COMP( 1993, al520ex,  cpc464,   0,      aleste,  aleste,   aleste,  aleste,  "Patisonic",           "Aleste 520EX",                              GAME_IMPERFECT_SOUND )

Previous 15994 Revisions Next


© 1998-2018 The MESS Team