Previous 15994 Revisions Next

r1505 Saturday 12th January, 2008 at 10:26:35 UTC by Barry Rodewald
[AMSTRAD] Added GX4000 console driver.
[docs]messnew.txt
[src/mess]messdriv.c
[src/mess/drivers]amstrad.c
[src/mess/video]amstrad.c

src/mess/video/amstrad.c
r1504r1505
579579
580580   unsigned char data = mess_ram[addr];
581581
582   if(amstrad_system_type == 1)
582   if(amstrad_system_type != 0)
583583   {
584584      amstrad_plus_draw_screen_enabled_mode_0();
585585      return;
r1504r1505
627627  unsigned char data1 = mess_ram[addr];
628628  unsigned char data2 = mess_ram[addr+1];
629629
630   if(amstrad_system_type == 1)
630   if(amstrad_system_type != 0)
631631   {
632632      amstrad_plus_draw_screen_enabled_mode_1();
633633      return;
r1504r1505
665665   int i, cpcpen, messpen;
666666   unsigned long data = (mess_ram[addr]<<8) | mess_ram[addr+1];
667667
668   if(amstrad_system_type == 1)
668   if(amstrad_system_type != 0)
669669   {
670670      amstrad_plus_draw_screen_enabled_mode_2();
671671      return;
r1504r1505
699699   int cpcpen, messpen;
700700   unsigned char data = mess_ram[addr];
701701
702   if(amstrad_system_type == 1)
702   if(amstrad_system_type != 0)
703703   {
704704      amstrad_plus_draw_screen_enabled_mode_3();
705705      return;
r1504r1505
10821082   rect.max_y = AMSTRAD_SCREEN_HEIGHT-1;
10831083
10841084#ifdef MAME_DEBUG
1085   if(input_code_pressed(KEYCODE_Z) && amstrad_system_type == 1)
1085   if(input_code_pressed(KEYCODE_Z) && amstrad_system_type != 0)
10861086   {
10871087      int x;
10881088      for(x=0;x<32;x+=2)
src/mess/messdriv.c
r1504r1505
207207   DRIVER( cpc664 )   /* Amstrad (Schneider in Germany) 1985            */
208208   DRIVER( cpc6128 )   /* Amstrad (Schneider in Germany) 1985            */
209209   DRIVER( cpc6128f )   /* Amstrad (Schneider in Germany) 1985 (AZERTY)      */
210   DRIVER( cpc464p )   /* Amstrad CPC464  Plus - 1987                  */
211   DRIVER( cpc6128p )   /* Amstrad CPC6128 Plus - 1987                  */
210   DRIVER( cpc464p )   /* Amstrad CPC464  Plus - 1990                  */
211   DRIVER( cpc6128p )   /* Amstrad CPC6128 Plus - 1990                  */
212   DRIVER( gx4000 )    /* Amstrad GX4000 - 1990                            */
212213   DRIVER( kccomp )   /* VEB KC compact                           */
213214TESTDRIVER( pcw8256 )   /* 198? PCW8256                              */
214215TESTDRIVER( pcw8512 )   /* 198? PCW8512                              */
src/mess/drivers/amstrad.c
r1504r1505
4444               Tested with the Arnold 5 Diagnostic Cartridge.  Mostly works fine, but the soft scroll test is
4545               noticably wrong.
4646
47               Known issues with some games (as at 08/08/06):
48               Robocop 2:  playable, but sprites cut out for some reason (possibly IRQ related, I think) every now and then.
49               Navy Seals:  Playable, but has similar problems to Robocop 2.
47               Known issues with some games (as at 12/01/08):
48               Robocop 2:  playable, but sprites should be cut off outside the playing area (partial updates should be able to fix this).
49               Navy Seals:  Playable, but sound effects cut out at times (probably DMA related).
5050               Dick Tracy:  Sprite visibility issues
5151               Switchblade:  has some slowdown when numerous enemies are on screen (normal?)
5252               Epyx World of Sports: doesn't start at all.
r1504r1505
9595#define MANUFACTURER_NAME 0x07
9696#define TV_REFRESH_RATE 0x10
9797
98#define SYSTEM_CPC 0
99#define SYSTEM_PLUS 1
98#define SYSTEM_CPC    0
99#define SYSTEM_PLUS   1
100#define SYSTEM_GX4000 2
100101
101102//int selected_m6845_address = 0;
102103
r1504r1505
278279{
279280   int data = 0;
280281/* Set b7 with cassette tape input */
281   if (cassette_input(image_from_devtype_and_index(IO_CASSETTE, 0)) > 0.03) {
282      data |= (1<<7);
283  }
282   if(amstrad_system_type != SYSTEM_GX4000)
283   {
284      if (cassette_input(image_from_devtype_and_index(IO_CASSETTE, 0)) > 0.03) {
285         data |= (1<<7);
286      }
287   }
284288/* Set b6 with Parallel/Printer port ready */
285   if (printer_status(image_from_devtype_and_index(IO_PRINTER, 0), 0)==0 ) {
286      data |= (1<<6);
287  }
289   if(amstrad_system_type != SYSTEM_GX4000)
290   {
291      if (printer_status(image_from_devtype_and_index(IO_PRINTER, 0), 0)==0 ) {
292         data |= (1<<6);
293      }
294   }
288295/* Set b4-b1 50hz/60hz state and manufacturer name defined by links on PCB */
289296   data |= (ppi_port_inputs[amstrad_ppi_PortB] & 0x1e);
290297
r1504r1505
326333   update_psg();
327334
328335/* b5 Cassette Write data */
329   if ((changed_data & 0x20) != 0) {
330      cassette_output(image_from_devtype_and_index(IO_CASSETTE, 0),
331         ((data & 0x20) ? -1.0 : +1.0));
336   if(amstrad_system_type != SYSTEM_GX4000)
337   {
338      if ((changed_data & 0x20) != 0) {
339         cassette_output(image_from_devtype_and_index(IO_CASSETTE, 0),
340            ((data & 0x20) ? -1.0 : +1.0));
341      }
332342   }
333343
334344/* b4 Cassette Motor Control */
335   if ((changed_data & 0x10) != 0) {
336      cassette_change_state(image_from_devtype_and_index(IO_CASSETTE, 0),
337         ((data & 0x10) ? CASSETTE_MOTOR_ENABLED : CASSETTE_MOTOR_DISABLED),
338         CASSETTE_MASK_MOTOR);
345   if(amstrad_system_type != SYSTEM_GX4000)
346   {
347      if ((changed_data & 0x10) != 0) {
348         cassette_change_state(image_from_devtype_and_index(IO_CASSETTE, 0),
349            ((data & 0x10) ? CASSETTE_MOTOR_ENABLED : CASSETTE_MOTOR_DISABLED),
350            CASSETTE_MASK_MOTOR);
351      }
339352   }
340353
341354/* b3-b0 Keyboard line Select keyboard line to be scanned */
r1504r1505
926939      /* If bit 5 is enabled on a CPC Plus/GX4000 when the ASIC is unlocked, sets the lower ROM position and cart bank
927940           b5 = 1, b4b3 = RAM position for lower ROM area and if the ASIC registers are visible at &4000,
928941           b2b1b0 = cartridge bank to read from lower ROM area (0-7 only) */
929      if(amstrad_system_type == SYSTEM_PLUS && amstrad_plus_asic_enabled != 0)
942      if(amstrad_system_type != SYSTEM_CPC && amstrad_plus_asic_enabled != 0)
930943      {
931944         if((dataToGateArray & 0x20) != 0)
932945         {
r1504r1505
11181131If b10 is reset but none of b7-b5 are reset, user expansion peripherals are selected.
11191132The exception is the case where none of b7-b0 are reset (i.e. port &FBFF), which causes the expansion peripherals to reset.
11201133 */
1121    if ((offset & (1<<10)) == 0)   {
1122      if ((offset & (1<<10)) == 0) {
1123         int b8b0 = ((offset & (1<<8)) >> (8 - 1)) | (offset & (0x01));
1124         switch (b8b0) {
1125           case 0x02: {
1126                 data = nec765_status_r(0);
1127           } break;
1128           case 0x03: {
1129                 data = nec765_data_r(0);
1130           } break;
1131           default: {
1132           } break;
1134   if(amstrad_system_type != SYSTEM_GX4000)
1135   {
1136       if ((offset & (1<<10)) == 0)   {
1137         if ((offset & (1<<10)) == 0) {
1138            int b8b0 = ((offset & (1<<8)) >> (8 - 1)) | (offset & (0x01));
1139            switch (b8b0) {
1140              case 0x02: {
1141                    data = nec765_status_r(0);
1142              } break;
1143              case 0x03: {
1144                    data = nec765_data_r(0);
1145              } break;
1146              default: {
1147              } break;
1148            }
11331149         }
11341150      }
11351151   }
r1504r1505
11561172           EventList_AddItemOffset((EVENT_LIST_CODE_CRTC_INDEX_WRITE<<6), data, TIME_TO_CYCLES(0,video_screen_get_vpos(0)*video_screen_get_scan_period(0)));
11571173#endif
11581174        m6845_address_w(0,data);
1159      if(amstrad_system_type == SYSTEM_PLUS)
1175      if(amstrad_system_type != SYSTEM_CPC)
11601176         amstrad_plus_seqcheck(data);
11611177//          selected_m6845_address = (data & 0x1F);
11621178      } break;
r1504r1505
11821198      previous_amstrad_UpperRom_data = (data & 0xff);
11831199   }
11841200/* b12 = 0 : Printer port Write Selected*/
1185   if ((offset & (1<<12)) == 0) {
1186      /* on CPC, write to printer through LS chip */
1187      /* the amstrad is crippled with a 7-bit port :( */
1188      /* bit 7 of the data is the printer /strobe */
1201   if(amstrad_system_type != SYSTEM_GX4000)
1202   {
1203      if ((offset & (1<<12)) == 0) {
1204         /* on CPC, write to printer through LS chip */
1205         /* the amstrad is crippled with a 7-bit port :( */
1206         /* bit 7 of the data is the printer /strobe */
11891207
1190      /* strobe state changed? */
1191      if (((previous_printer_data_byte^data) & (1<<7)) !=0 ) {
1192         /* check for only one transition */
1193         if ((data & (1<<7)) == 0)  {
1194            /* output data to printer */
1195            printer_output(image_from_devtype_and_index(IO_PRINTER, 0), data & 0x07f);
1208         /* strobe state changed? */
1209         if (((previous_printer_data_byte^data) & (1<<7)) !=0 ) {
1210            /* check for only one transition */
1211            if ((data & (1<<7)) == 0)  {
1212               /* output data to printer */
1213               printer_output(image_from_devtype_and_index(IO_PRINTER, 0), data & 0x07f);
1214            }
11961215         }
1216         previous_printer_data_byte = data;
11971217      }
1198      previous_printer_data_byte = data;
11991218   }
12001219/* if b11 = 0 : 8255 PPI Write selected - bits 9 and 8 then define the PPI function access as shown below:
12011220b9 b8 | PPI Function Read/Write status
r1504r1505
12271246If b10 is reset but none of b7-b5 are reset, user expansion peripherals are selected.
12281247The exception is the case where none of b7-b0 are reset (i.e. port &FBFF), which causes the expansion peripherals to reset.
12291248*/
1230    if ((offset & (1<<7)) == 0) {
1249   if(amstrad_system_type != SYSTEM_GX4000)
1250   {
1251      if ((offset & (1<<7)) == 0) {
12311252         unsigned int b8b0 = ((offset & 0x0100) >> (8 - 1)) | (offset & 0x01);
12321253
1233         switch (b8b0) {
1234         case 0x00:
1235        /* FDC Motor Control - Bit 0 defines the state of the FDD motor:
1236         * "1" the FDD motor will be active.
1237         * "0" the FDD motor will be in-active.*/
1238            floppy_drive_set_motor_state(image_from_devtype_and_index(IO_FLOPPY, 0), (data & 0x01));
1239            floppy_drive_set_motor_state(image_from_devtype_and_index(IO_FLOPPY, 1), (data & 0x01));
1240            floppy_drive_set_ready_state(image_from_devtype_and_index(IO_FLOPPY, 0), 1,1);
1241            floppy_drive_set_ready_state(image_from_devtype_and_index(IO_FLOPPY, 1), 1,1);
1242        break;
1254            switch (b8b0) {
1255            case 0x00:
1256         /* FDC Motor Control - Bit 0 defines the state of the FDD motor:
1257          * "1" the FDD motor will be active.
1258          * "0" the FDD motor will be in-active.*/
1259               floppy_drive_set_motor_state(image_from_devtype_and_index(IO_FLOPPY, 0), (data & 0x01));
1260               floppy_drive_set_motor_state(image_from_devtype_and_index(IO_FLOPPY, 1), (data & 0x01));
1261               floppy_drive_set_ready_state(image_from_devtype_and_index(IO_FLOPPY, 0), 1,1);
1262               floppy_drive_set_ready_state(image_from_devtype_and_index(IO_FLOPPY, 1), 1,1);
1263           break;
12431264
1244      case 0x03: /* Write Data register of FDC */
1245            nec765_data_w(0,data);
1246         break;
1247         default:
1248         break;
1265        case 0x03: /* Write Data register of FDC */
1266               nec765_data_w(0,data);
1267            break;
1268            default:
1269            break;
1270            }
12491271         }
12501272      }
12511273   }
r1504r1505
16061628  // Get manufacturer name and TV refresh rate from PCB link (dipswitch for mess emulation)
16071629   ppi_port_inputs[amstrad_ppi_PortB] = (((readinputportbytag("solder_links")&MANUFACTURER_NAME)<<1) | (readinputportbytag("solder_links")&TV_REFRESH_RATE));
16081630
1609   if(amstrad_system_type == SYSTEM_PLUS)
1631   if(amstrad_system_type != SYSTEM_CPC)
16101632      memset(amstrad_plus_asic_ram,0,16384);  // clear ASIC RAM
16111633
16121634   multiface_reset();
r1504r1505
18041826   else
18051827      cpunum_set_input_line_vector(0, 0,0x00);
18061828
1807   nec765_init(&amstrad_nec765_interface,NEC765A/*?*/);
18081829   ppi8255_init(&amstrad_ppi8255_interface);
18091830
1810   floppy_drive_set_geometry(image_from_devtype_and_index(IO_FLOPPY, 0),  FLOPPY_DRIVE_SS_40);
1811   floppy_drive_set_geometry(image_from_devtype_and_index(IO_FLOPPY, 1),  FLOPPY_DRIVE_SS_40);
1812
1831   if(amstrad_system_type != SYSTEM_GX4000)
1832   {
1833      nec765_init(&amstrad_nec765_interface,NEC765A/*?*/);
1834      floppy_drive_set_geometry(image_from_devtype_and_index(IO_FLOPPY, 0),  FLOPPY_DRIVE_SS_40);
1835      floppy_drive_set_geometry(image_from_devtype_and_index(IO_FLOPPY, 1),  FLOPPY_DRIVE_SS_40);
1836   }
18131837/* Every microsecond:
18141838
18151839The CRTC generates a memory address using it's MA and RA signal outputs
r1504r1505
19071931   amstrad_plus_asic_ram = memory_region(REGION_USER1);  // 16kB RAM for ASIC, memory-mapped registers.
19081932}
19091933
1934static MACHINE_RESET( gx4000 )
1935{
1936   int i;
1937
1938   amstrad_system_type = SYSTEM_GX4000;
1939
1940   for (i=0; i<128; i++)  // fill ROM table
1941   {
1942      Amstrad_ROM_Table[i] = &memory_region(REGION_CPU1)[0x4000];
1943   }
1944   for(i=128;i<160;i++)
1945   {
1946      Amstrad_ROM_Table[i] = &memory_region(REGION_CPU1)[(i-128)*0x4000];
1947   }
1948   Amstrad_ROM_Table[7] = &memory_region(REGION_CPU1)[0xc000];
1949
1950   amstrad_plus_lower = 0;  // cart bank 0
1951   amstrad_plus_lower_addr = 0;  // at 0x0000, reg page disabled by default
1952   amstrad_plus_lower_enabled = 1; // lower ROM enabled by default (as per usual)
1953   amstrad_plus_asic_enabled = 0;  // ASIC disabled
1954   amstrad_plus_asic_regpage = 0;  // ASIC register page disabled
1955   amstrad_plus_asic_seqptr = 0;
1956   amstrad_plus_pri = 0;  // disable PRI
1957   amstrad_plus_scroll_x = 0;
1958   amstrad_plus_scroll_y = 0;
1959   amstrad_plus_scroll_border = 0;  // disable soft scroll
1960   amstrad_plus_dma_status = 0;  // disable all DMA channels
1961   amstrad_plus_dma_0_addr = 0;
1962   amstrad_plus_dma_prescaler[0] = 0;
1963   amstrad_plus_dma_1_addr = 0;
1964   amstrad_plus_dma_prescaler[1] = 0;
1965   amstrad_plus_dma_2_addr = 0;
1966   amstrad_plus_dma_prescaler[2] = 0;
1967   amstrad_plus_dma_clear = 1;  // by default, DMA interrupts must be cleared by writing to the DSCR (&6c0f)
1968   amstrad_plus_irq_cause = 6;
1969
1970   amstrad_common_init();
1971   amstrad_reset_machine();
1972   amstrad_plus_asic_ram[0x2805] = 0x01;  // interrupt vector is undefined at startup, except that bit 0 is always 1.
1973   AmstradCPC_GA_SetRamConfiguration();
1974   amstrad_plus_setsplitline(0,0);
1975   //  multiface_init();
1976}
1977
19101978static MACHINE_RESET( kccomp )
19111979{
19121980   int i;
r1504r1505
20922160//  PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_BUTTON3)        PORT_PLAYER(1)
20932161   PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Del")                   PORT_CODE(KEYCODE_INSERT)     PORT_CHAR(8)
20942162
2095/* Second joystick port need to be defined: the second joystick is daisy-chained on the back of the first one */
2163/* Second joystick port need to be defined: the second joystick is daisy-chained on the back of the first one
2164   Joystick 2 is mapped to keyboard line 6.  */
20962165
20972166/* The CPC supports at least two different brands of lightpens, probably connected to the expansion port */
20982167
r1504r1505
23942463   PORT_PLAYER(4)
23952464
23962465INPUT_PORTS_END
2466
2467static INPUT_PORTS_START(gx4000)
2468
2469   // The GX4000 is a console, so no keyboard access other than the joysticks.
2470   PORT_START_TAG("keyboard_row_0")
2471   PORT_BIT(0xff, IP_ACTIVE_LOW, IPT_UNUSED)
2472
2473   PORT_START_TAG("keyboard_row_1")
2474   PORT_BIT(0xff, IP_ACTIVE_LOW, IPT_UNUSED)
2475
2476   PORT_START_TAG("keyboard_row_2")
2477   PORT_BIT(0xff, IP_ACTIVE_LOW, IPT_UNUSED)
2478
2479   PORT_START_TAG("keyboard_row_3")
2480   PORT_BIT(0xff, IP_ACTIVE_LOW, IPT_UNUSED)
2481
2482   PORT_START_TAG("keyboard_row_4")
2483   PORT_BIT(0xff, IP_ACTIVE_LOW, IPT_UNUSED)
2484
2485   PORT_START_TAG("keyboard_row_5")
2486   PORT_BIT(0xff, IP_ACTIVE_LOW, IPT_UNUSED)
2487
2488   PORT_START_TAG("keyboard_row_6")  // Joystick 2
2489   PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP)    PORT_PLAYER(2) PORT_8WAY
2490   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN)  PORT_PLAYER(2) PORT_8WAY
2491   PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT)  PORT_PLAYER(2) PORT_8WAY
2492   PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT) PORT_PLAYER(2) PORT_8WAY
2493   PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_BUTTON1)        PORT_PLAYER(2)
2494   PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_BUTTON2)        PORT_PLAYER(2)
2495   PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_UNUSED)
2496   
2497   PORT_START_TAG("keyboard_row_7")
2498   PORT_BIT(0xff, IP_ACTIVE_LOW, IPT_UNUSED)
2499
2500   PORT_START_TAG("keyboard_row_8")
2501   PORT_BIT(0xff, IP_ACTIVE_LOW, IPT_UNUSED)
2502
2503   PORT_START_TAG("keyboard_row_9")  // Joystick 1
2504   PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP)    PORT_PLAYER(1) PORT_8WAY
2505   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN)  PORT_PLAYER(1) PORT_8WAY
2506   PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT)  PORT_PLAYER(1) PORT_8WAY
2507   PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT) PORT_PLAYER(1) PORT_8WAY
2508   PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_BUTTON1)        PORT_PLAYER(1)
2509   PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_BUTTON2)        PORT_PLAYER(1)
2510   PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_UNUSED)
2511
2512   PORT_INCLUDE(crtc_links)  // included to keep the driver happy
2513
2514   PORT_START_TAG("analog1")
2515   PORT_BIT(0x3f , 0, IPT_TRACKBALL_X)
2516   PORT_SENSITIVITY(100)
2517   PORT_KEYDELTA(10)
2518   PORT_PLAYER(1)
2519
2520   PORT_START_TAG("analog2")
2521   PORT_BIT(0x3f , 0, IPT_TRACKBALL_Y)
2522   PORT_SENSITIVITY(100)
2523   PORT_KEYDELTA(10)
2524   PORT_PLAYER(1)
2525
2526   PORT_START_TAG("analog3")
2527   PORT_BIT(0x3f , 0, IPT_TRACKBALL_X)
2528   PORT_SENSITIVITY(100)
2529   PORT_KEYDELTA(10)
2530   PORT_PLAYER(2)
2531
2532   PORT_START_TAG("analog4")
2533   PORT_BIT(0x3f , 0, IPT_TRACKBALL_Y)
2534   PORT_SENSITIVITY(100)
2535   PORT_KEYDELTA(10)
2536   PORT_PLAYER(2)
2537
2538// Not used, but are here for completeness
2539   PORT_START_TAG("analog5")
2540   PORT_BIT(0x3f , 0, IPT_TRACKBALL_X)
2541   PORT_SENSITIVITY(100)
2542   PORT_KEYDELTA(10)
2543   PORT_PLAYER(3)
2544
2545   PORT_START_TAG("analog6")
2546   PORT_BIT(0x3f , 0, IPT_TRACKBALL_Y)
2547   PORT_SENSITIVITY(100)
2548   PORT_KEYDELTA(10)
2549   PORT_PLAYER(3)
2550
2551   PORT_START_TAG("analog7")
2552   PORT_BIT(0x3f , 0, IPT_TRACKBALL_X)
2553   PORT_SENSITIVITY(100)
2554   PORT_KEYDELTA(10)
2555   PORT_PLAYER(4)
2556
2557   PORT_START_TAG("analog8")
2558   PORT_BIT(0x3f , 0, IPT_TRACKBALL_Y)
2559   PORT_SENSITIVITY(100)
2560   PORT_KEYDELTA(10)
2561   PORT_PLAYER(4)
2562
2563INPUT_PORTS_END
2564
23972565/* --------------------
23982566   - AY8910_interface -
23992567   --------------------*/
r1504r1505
24692637
24702638   /* sound hardware */
24712639   MDRV_SPEAKER_STANDARD_MONO("mono")
2472   MDRV_SOUND_ADD(WAVE, 0)
2640   MDRV_SOUND_ADD_TAG("tape", WAVE, 0)
24732641   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
24742642   MDRV_SOUND_ADD(AY8910, 1000000)
24752643   MDRV_SOUND_CONFIG(ay8912_interface)
r1504r1505
24992667MACHINE_DRIVER_END
25002668
25012669
2670static MACHINE_DRIVER_START( gx4000 )
2671   MDRV_IMPORT_FROM( amstrad )
2672   MDRV_SOUND_REMOVE( "tape" )
2673   MDRV_SCREEN_REFRESH_RATE( AMSTRAD_FPS )
2674   MDRV_GFXDECODE( asic_sprite )
2675   MDRV_MACHINE_START( plus )
2676   MDRV_MACHINE_RESET( gx4000 )
2677   MDRV_SCREEN_SIZE(800, 312)
2678   MDRV_PALETTE_LENGTH(4096+48)  // extended 12-bit palette, and standard 32 colour palette
2679   MDRV_COLORTABLE_LENGTH(4096+48)
2680   MDRV_PALETTE_INIT( amstrad_plus )
2681MACHINE_DRIVER_END
2682
25022683/***************************************************************************
25032684
25042685  Game driver(s)
r1504r1505
25942775   CONFIG_DEVICE(cpcplus_snapshot_getinfo)
25952776SYSTEM_CONFIG_END
25962777
2778SYSTEM_CONFIG_START(gx4000)
2779   CONFIG_RAM_DEFAULT(64 * 1024)  // has 64k RAM
2780   CONFIG_DEVICE(cpcplus_cartslot_getinfo)
2781   CONFIG_DEVICE(cpcplus_snapshot_getinfo)
2782SYSTEM_CONFIG_END
25972783
2784
25982785/* ---------------------------------------------
25992786   - Rom definition for the ROM loading system -
26002787   ---------------------------------------------*/
r1504r1505
26782865COMP( 1985, cpc6128f, cpc464,   0,      amstrad, cpc6128f, 0,   cpc6128, "Amstrad plc",         "Amstrad CPC6128 (France, AZERTY Keyboard)", 0)
26792866COMP( 1990, cpc464p,  0,        0,      cpcplus, plus,     0,   cpcplus, "Amstrad plc",         "Amstrad CPC464+", 0)
26802867COMP( 1990, cpc6128p, 0,        0,      cpcplus, plus,     0,   cpcplus, "Amstrad plc",         "Amstrad CPC6128+", 0)
2868COMP( 1990, gx4000,   0,        0,      gx4000,  gx4000,   0,   gx4000,  "Amstrad plc",         "Amstrad GX4000", 0)
26812869COMP( 1989, kccomp,   cpc464,   0,      kccomp,  kccomp,   0,   cpc6128, "VEB Mikroelektronik", "KC Compact", 0)
26822870
docs/messnew.txt
r1504r1505
22
33New System Drivers Supported (in no particular order):
44------------------------------------------------------
5(none)
5- Amstrad GX4000 [Barry Rodewald]
66
77
88

Previous 15994 Revisions Next


© 1998-2018 The MESS Team