src/mess/drivers/amstrad.c
| r1504 | r1505 | |
| 44 | 44 | Tested with the Arnold 5 Diagnostic Cartridge. Mostly works fine, but the soft scroll test is |
| 45 | 45 | noticably wrong. |
| 46 | 46 | |
| 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). |
| 50 | 50 | Dick Tracy: Sprite visibility issues |
| 51 | 51 | Switchblade: has some slowdown when numerous enemies are on screen (normal?) |
| 52 | 52 | Epyx World of Sports: doesn't start at all. |
| r1504 | r1505 | |
| 95 | 95 | #define MANUFACTURER_NAME 0x07 |
| 96 | 96 | #define TV_REFRESH_RATE 0x10 |
| 97 | 97 | |
| 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 |
| 100 | 101 | |
| 101 | 102 | //int selected_m6845_address = 0; |
| 102 | 103 | |
| r1504 | r1505 | |
| 278 | 279 | { |
| 279 | 280 | int data = 0; |
| 280 | 281 | /* 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 | } |
| 284 | 288 | /* 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 | } |
| 288 | 295 | /* Set b4-b1 50hz/60hz state and manufacturer name defined by links on PCB */ |
| 289 | 296 | data |= (ppi_port_inputs[amstrad_ppi_PortB] & 0x1e); |
| 290 | 297 | |
| r1504 | r1505 | |
| 326 | 333 | update_psg(); |
| 327 | 334 | |
| 328 | 335 | /* 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 | } |
| 332 | 342 | } |
| 333 | 343 | |
| 334 | 344 | /* 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 | } |
| 339 | 352 | } |
| 340 | 353 | |
| 341 | 354 | /* b3-b0 Keyboard line Select keyboard line to be scanned */ |
| r1504 | r1505 | |
| 926 | 939 | /* If bit 5 is enabled on a CPC Plus/GX4000 when the ASIC is unlocked, sets the lower ROM position and cart bank |
| 927 | 940 | b5 = 1, b4b3 = RAM position for lower ROM area and if the ASIC registers are visible at &4000, |
| 928 | 941 | 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) |
| 930 | 943 | { |
| 931 | 944 | if((dataToGateArray & 0x20) != 0) |
| 932 | 945 | { |
| r1504 | r1505 | |
| 1118 | 1131 | If b10 is reset but none of b7-b5 are reset, user expansion peripherals are selected. |
| 1119 | 1132 | The exception is the case where none of b7-b0 are reset (i.e. port &FBFF), which causes the expansion peripherals to reset. |
| 1120 | 1133 | */ |
| 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 | } |
| 1133 | 1149 | } |
| 1134 | 1150 | } |
| 1135 | 1151 | } |
| r1504 | r1505 | |
| 1156 | 1172 | 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))); |
| 1157 | 1173 | #endif |
| 1158 | 1174 | m6845_address_w(0,data); |
| 1159 | | if(amstrad_system_type == SYSTEM_PLUS) |
| 1175 | if(amstrad_system_type != SYSTEM_CPC) |
| 1160 | 1176 | amstrad_plus_seqcheck(data); |
| 1161 | 1177 | // selected_m6845_address = (data & 0x1F); |
| 1162 | 1178 | } break; |
| r1504 | r1505 | |
| 1182 | 1198 | previous_amstrad_UpperRom_data = (data & 0xff); |
| 1183 | 1199 | } |
| 1184 | 1200 | /* 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 */ |
| 1189 | 1207 | |
| 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 | } |
| 1196 | 1215 | } |
| 1216 | previous_printer_data_byte = data; |
| 1197 | 1217 | } |
| 1198 | | previous_printer_data_byte = data; |
| 1199 | 1218 | } |
| 1200 | 1219 | /* if b11 = 0 : 8255 PPI Write selected - bits 9 and 8 then define the PPI function access as shown below: |
| 1201 | 1220 | b9 b8 | PPI Function Read/Write status |
| r1504 | r1505 | |
| 1227 | 1246 | If b10 is reset but none of b7-b5 are reset, user expansion peripherals are selected. |
| 1228 | 1247 | The exception is the case where none of b7-b0 are reset (i.e. port &FBFF), which causes the expansion peripherals to reset. |
| 1229 | 1248 | */ |
| 1230 | | if ((offset & (1<<7)) == 0) { |
| 1249 | if(amstrad_system_type != SYSTEM_GX4000) |
| 1250 | { |
| 1251 | if ((offset & (1<<7)) == 0) { |
| 1231 | 1252 | unsigned int b8b0 = ((offset & 0x0100) >> (8 - 1)) | (offset & 0x01); |
| 1232 | 1253 | |
| 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; |
| 1243 | 1264 | |
| 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 | } |
| 1249 | 1271 | } |
| 1250 | 1272 | } |
| 1251 | 1273 | } |
| r1504 | r1505 | |
| 1606 | 1628 | // Get manufacturer name and TV refresh rate from PCB link (dipswitch for mess emulation) |
| 1607 | 1629 | ppi_port_inputs[amstrad_ppi_PortB] = (((readinputportbytag("solder_links")&MANUFACTURER_NAME)<<1) | (readinputportbytag("solder_links")&TV_REFRESH_RATE)); |
| 1608 | 1630 | |
| 1609 | | if(amstrad_system_type == SYSTEM_PLUS) |
| 1631 | if(amstrad_system_type != SYSTEM_CPC) |
| 1610 | 1632 | memset(amstrad_plus_asic_ram,0,16384); // clear ASIC RAM |
| 1611 | 1633 | |
| 1612 | 1634 | multiface_reset(); |
| r1504 | r1505 | |
| 1804 | 1826 | else |
| 1805 | 1827 | cpunum_set_input_line_vector(0, 0,0x00); |
| 1806 | 1828 | |
| 1807 | | nec765_init(&amstrad_nec765_interface,NEC765A/*?*/); |
| 1808 | 1829 | ppi8255_init(&amstrad_ppi8255_interface); |
| 1809 | 1830 | |
| 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 | } |
| 1813 | 1837 | /* Every microsecond: |
| 1814 | 1838 | |
| 1815 | 1839 | The CRTC generates a memory address using it's MA and RA signal outputs |
| r1504 | r1505 | |
| 1907 | 1931 | amstrad_plus_asic_ram = memory_region(REGION_USER1); // 16kB RAM for ASIC, memory-mapped registers. |
| 1908 | 1932 | } |
| 1909 | 1933 | |
| 1934 | static 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 | |
| 1910 | 1978 | static MACHINE_RESET( kccomp ) |
| 1911 | 1979 | { |
| 1912 | 1980 | int i; |
| r1504 | r1505 | |
| 2092 | 2160 | // PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_BUTTON3) PORT_PLAYER(1) |
| 2093 | 2161 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Del") PORT_CODE(KEYCODE_INSERT) PORT_CHAR(8) |
| 2094 | 2162 | |
| 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. */ |
| 2096 | 2165 | |
| 2097 | 2166 | /* The CPC supports at least two different brands of lightpens, probably connected to the expansion port */ |
| 2098 | 2167 | |
| r1504 | r1505 | |
| 2394 | 2463 | PORT_PLAYER(4) |
| 2395 | 2464 | |
| 2396 | 2465 | INPUT_PORTS_END |
| 2466 | |
| 2467 | static 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 | |
| 2563 | INPUT_PORTS_END |
| 2564 | |
| 2397 | 2565 | /* -------------------- |
| 2398 | 2566 | - AY8910_interface - |
| 2399 | 2567 | --------------------*/ |
| r1504 | r1505 | |
| 2469 | 2637 | |
| 2470 | 2638 | /* sound hardware */ |
| 2471 | 2639 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 2472 | | MDRV_SOUND_ADD(WAVE, 0) |
| 2640 | MDRV_SOUND_ADD_TAG("tape", WAVE, 0) |
| 2473 | 2641 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) |
| 2474 | 2642 | MDRV_SOUND_ADD(AY8910, 1000000) |
| 2475 | 2643 | MDRV_SOUND_CONFIG(ay8912_interface) |
| r1504 | r1505 | |
| 2499 | 2667 | MACHINE_DRIVER_END |
| 2500 | 2668 | |
| 2501 | 2669 | |
| 2670 | static 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 ) |
| 2681 | MACHINE_DRIVER_END |
| 2682 | |
| 2502 | 2683 | /*************************************************************************** |
| 2503 | 2684 | |
| 2504 | 2685 | Game driver(s) |
| r1504 | r1505 | |
| 2594 | 2775 | CONFIG_DEVICE(cpcplus_snapshot_getinfo) |
| 2595 | 2776 | SYSTEM_CONFIG_END |
| 2596 | 2777 | |
| 2778 | SYSTEM_CONFIG_START(gx4000) |
| 2779 | CONFIG_RAM_DEFAULT(64 * 1024) // has 64k RAM |
| 2780 | CONFIG_DEVICE(cpcplus_cartslot_getinfo) |
| 2781 | CONFIG_DEVICE(cpcplus_snapshot_getinfo) |
| 2782 | SYSTEM_CONFIG_END |
| 2597 | 2783 | |
| 2784 | |
| 2598 | 2785 | /* --------------------------------------------- |
| 2599 | 2786 | - Rom definition for the ROM loading system - |
| 2600 | 2787 | ---------------------------------------------*/ |
| r1504 | r1505 | |
| 2678 | 2865 | COMP( 1985, cpc6128f, cpc464, 0, amstrad, cpc6128f, 0, cpc6128, "Amstrad plc", "Amstrad CPC6128 (France, AZERTY Keyboard)", 0) |
| 2679 | 2866 | COMP( 1990, cpc464p, 0, 0, cpcplus, plus, 0, cpcplus, "Amstrad plc", "Amstrad CPC464+", 0) |
| 2680 | 2867 | COMP( 1990, cpc6128p, 0, 0, cpcplus, plus, 0, cpcplus, "Amstrad plc", "Amstrad CPC6128+", 0) |
| 2868 | COMP( 1990, gx4000, 0, 0, gx4000, gx4000, 0, gx4000, "Amstrad plc", "Amstrad GX4000", 0) |
| 2681 | 2869 | COMP( 1989, kccomp, cpc464, 0, kccomp, kccomp, 0, cpc6128, "VEB Mikroelektronik", "KC Compact", 0) |
| 2682 | 2870 | |