src/mess/machine/coco.c
| r6166 | r6167 | |
| 1093 | 1093 | static attotime coco_hiresjoy_xtransitiontime; |
| 1094 | 1094 | static attotime coco_hiresjoy_ytransitiontime; |
| 1095 | 1095 | |
| 1096 | | static attotime coco_hiresjoy_computetransitiontime(running_machine *machine, UINT8 port, UINT8 axis) |
| 1096 | static attotime coco_hiresjoy_computetransitiontime( running_machine *machine, UINT8 port, UINT8 axis ) |
| 1097 | 1097 | { |
| 1098 | 1098 | double val; |
| 1099 | | UINT8 ctrl = input_port_read_safe(machine, "ctrl_sel", 0x00); |
| 1100 | | /* this function gets only called for hi-res joystick. hence, ctrl can only take values |
| 1101 | | 0x04, 0x40 (hi-res) or 0x05, 0x50 (hi-res coco3max) */ |
| 1102 | | UINT8 coco3max = ((ctrl & 0x0f) == 0x05 || (ctrl & 0xf0) == 0x50) ? 1 : 0; |
| 1099 | UINT8 hires = input_port_read_safe(machine, "hires_intf", 0x00); |
| 1100 | /* this function gets only called for hi-res joystick. hence, hires can only take values |
| 1101 | 0x01, 0x03 (hi-res) or 0x02, 0x04 (hi-res coco3max) */ |
| 1102 | UINT8 coco3max = (hires == 0x02 || hires == 0x04) ? 1 : 0; |
| 1103 | 1103 | |
| 1104 | | static const char *const port_tags[2][4] = |
| 1105 | | { |
| 1106 | | {"joystick_hires_rx", "joystick_hires_ry", "joystick_hires_max_rx", "joystick_hires_max_ry"}, /* right ports */ |
| 1107 | | {"joystick_hires_lx", "joystick_hires_ly", "joystick_hires_max_lx", "joystick_hires_max_ly" } /* left ports */ |
| 1108 | | }; |
| 1104 | static const char *const port_tags[4] = {"joystick_rx", "joystick_ry", "joystick_lx", "joystick_ly"}; |
| 1109 | 1105 | |
| 1110 | | val = input_port_read_safe(machine, port_tags[port][axis + 2 * coco3max], 0) / 255.0; |
| 1106 | val = input_port_read_safe(machine, port_tags[axis + 2 * port], 0) / 255.0; |
| 1111 | 1107 | |
| 1112 | 1108 | if (coco3max) |
| 1113 | 1109 | { |
| r6166 | r6167 | |
| 1123 | 1119 | return attotime_add(timer_get_time(machine), attotime_mul(COCO_CPU_SPEED, val)); |
| 1124 | 1120 | } |
| 1125 | 1121 | |
| 1126 | | static void coco_hiresjoy_w(running_machine *machine, int data, UINT8 port) |
| 1122 | static void coco_hiresjoy_w( running_machine *machine, int data, UINT8 port ) |
| 1127 | 1123 | { |
| 1128 | 1124 | if (!data && coco_hiresjoy_ca) |
| 1129 | 1125 | { |
| r6166 | r6167 | |
| 1141 | 1137 | (*update_keyboard)(machine); |
| 1142 | 1138 | } |
| 1143 | 1139 | |
| 1144 | | static int coco_hiresjoy_readone(running_machine *machine, attotime transitiontime) |
| 1140 | static int coco_hiresjoy_readone( running_machine *machine, attotime transitiontime ) |
| 1145 | 1141 | { |
| 1146 | 1142 | return attotime_compare(timer_get_time(machine), transitiontime) >= 0; |
| 1147 | 1143 | } |
| 1148 | 1144 | |
| 1149 | | static int coco_hiresjoy_rx(running_machine *machine) |
| 1145 | static int coco_hiresjoy_rx( running_machine *machine ) |
| 1150 | 1146 | { |
| 1151 | 1147 | return coco_hiresjoy_readone(machine, coco_hiresjoy_xtransitiontime); |
| 1152 | 1148 | } |
| 1153 | 1149 | |
| 1154 | | static int coco_hiresjoy_ry(running_machine *machine) |
| 1150 | static int coco_hiresjoy_ry( running_machine *machine ) |
| 1155 | 1151 | { |
| 1156 | 1152 | return coco_hiresjoy_readone(machine, coco_hiresjoy_ytransitiontime); |
| 1157 | 1153 | } |
| r6166 | r6167 | |
| 1284 | 1280 | return 0; |
| 1285 | 1281 | } |
| 1286 | 1282 | |
| 1287 | | WRITE8_HANDLER ( dgnalpha_psg_porta_write ) |
| 1283 | WRITE8_HANDLER( dgnalpha_psg_porta_write ) |
| 1288 | 1284 | { |
| 1289 | 1285 | const device_config *fdc = devtag_get_device(space->machine, "wd2797"); |
| 1290 | 1286 | /* Bits 0..3 are the drive select lines for the internal floppy interface */ |
| r6166 | r6167 | |
| 1318 | 1314 | PIA0 CB2 - SEL2 (Used by sound mux and joystick) |
| 1319 | 1315 | ***************************************************************************/ |
| 1320 | 1316 | |
| 1321 | | static WRITE8_DEVICE_HANDLER ( d_pia0_ca2_w ) |
| 1317 | static WRITE8_DEVICE_HANDLER( d_pia0_ca2_w ) |
| 1322 | 1318 | { |
| 1323 | 1319 | timer_adjust_oneshot(mux_sel1_timer, JOYSTICK_MUX_DELAY, data); |
| 1324 | 1320 | } |
| 1325 | 1321 | |
| 1326 | | static TIMER_CALLBACK(coco_update_sel1_timerproc) |
| 1322 | static TIMER_CALLBACK( coco_update_sel1_timerproc ) |
| 1327 | 1323 | { |
| 1328 | 1324 | mux_sel1 = param; |
| 1329 | 1325 | (*update_keyboard)(machine); |
| 1330 | 1326 | soundmux_update(machine); |
| 1331 | 1327 | } |
| 1332 | 1328 | |
| 1333 | | static WRITE8_DEVICE_HANDLER ( d_pia0_cb2_w ) |
| 1329 | static WRITE8_DEVICE_HANDLER( d_pia0_cb2_w ) |
| 1334 | 1330 | { |
| 1335 | 1331 | timer_adjust_oneshot(mux_sel2_timer, JOYSTICK_MUX_DELAY, data); |
| 1336 | 1332 | } |
| 1337 | 1333 | |
| 1338 | | static TIMER_CALLBACK(coco_update_sel2_timerproc) |
| 1334 | static TIMER_CALLBACK( coco_update_sel2_timerproc ) |
| 1339 | 1335 | { |
| 1340 | 1336 | mux_sel2 = param; |
| 1341 | 1337 | (*update_keyboard)(machine); |
| r6166 | r6167 | |
| 1343 | 1339 | } |
| 1344 | 1340 | |
| 1345 | 1341 | |
| 1346 | | static attotime get_relative_time(running_machine *machine, attotime absolute_time) |
| 1342 | static attotime get_relative_time( running_machine *machine, attotime absolute_time ) |
| 1347 | 1343 | { |
| 1348 | 1344 | attotime result; |
| 1349 | 1345 | attotime now = timer_get_time(machine); |
| r6166 | r6167 | |
| 1357 | 1353 | |
| 1358 | 1354 | |
| 1359 | 1355 | |
| 1360 | | static UINT8 coco_update_keyboard(running_machine *machine) |
| 1356 | static UINT8 coco_update_keyboard( running_machine *machine ) |
| 1361 | 1357 | { |
| 1362 | 1358 | coco_state *state = machine->driver_data; |
| 1363 | 1359 | UINT8 porta = 0x7f, port_za = 0x7f; |
| r6166 | r6167 | |
| 1367 | 1363 | attotime dclg_time = attotime_zero; |
| 1368 | 1364 | UINT8 pia0_pb; |
| 1369 | 1365 | UINT8 dac = pia6821_get_output_a(state->pia_1) & 0xfc; |
| 1370 | | int joystick_axis, joystick, joy_mask, joy_shift, ctrl; |
| 1366 | UINT8 hires = input_port_read_safe(machine, "hires_intf", 0x00); |
| 1367 | int joystick_axis, joystick, joy_mask, joy_shift, ctrl, hires_val, ccm3_val; |
| 1371 | 1368 | |
| 1372 | | static const char *const portnames[2][6][2] = |
| 1369 | static const char *const portnames[2][4][2] = |
| 1373 | 1370 | { |
| 1374 | | { {0}, {"joystick_rx", "joystick_ry"}, {"rat_mouse_rx", "rat_mouse_ry"}, {"dclg_rx", "dclg_ry"}, |
| 1375 | | {"joystick_hires_rx", "joystick_hires_ry"}, {"joystick_hires_max_rx", "joystick_hires_max_ry"} }, /* right ports */ |
| 1376 | | { {0}, {"joystick_lx", "joystick_ly"}, {"rat_mouse_lx", "rat_mouse_ly"}, {"dclg_lx", "dclg_ly"}, |
| 1377 | | {"joystick_hires_lx", "joystick_hires_ly"}, {"joystick_hires_max_lx", "joystick_hires_max_ly"} }, /* left ports */ |
| 1371 | { {0}, {"joystick_rx", "joystick_ry"}, {"rat_mouse_rx", "rat_mouse_ry"}, {"dclg_rx", "dclg_ry"} }, /* right ports */ |
| 1372 | { {0}, {"joystick_lx", "joystick_ly"}, {"rat_mouse_lx", "rat_mouse_ly"}, {"dclg_lx", "dclg_ly"} }, /* left ports */ |
| 1378 | 1373 | }; |
| 1374 | static const char *const button_names[4] = { "empty", "joystick_buttons", "rat_mouse_buttons", "dclg_triggers" }; |
| 1379 | 1375 | |
| 1376 | |
| 1377 | |
| 1380 | 1378 | pia0_pb = pia6821_get_output_b(state->pia_0); |
| 1381 | 1379 | joystick_axis = mux_sel1; |
| 1382 | 1380 | joystick = mux_sel2; |
| 1381 | |
| 1382 | /* which kind of controller is selected? */ |
| 1383 | 1383 | joy_mask = joystick ? 0xf0 : 0x0f; |
| 1384 | 1384 | joy_shift = joystick ? 4 : 0; |
| 1385 | 1385 | ctrl = (input_port_read_safe(machine, "ctrl_sel", 0x00) & joy_mask) >> joy_shift; |
| 1386 | 1386 | |
| 1387 | /* is any Hi-Res Interface turned on? prepare masks to check it */ |
| 1388 | hires_val = joystick ? 0x03 : 0x01; |
| 1389 | ccm3_val = joystick ? 0x04 : 0x02; |
| 1390 | |
| 1387 | 1391 | /* poll keyboard keys */ |
| 1388 | 1392 | if ((input_port_read(machine, "row0") | pia0_pb) != 0xff) porta &= ~0x01; |
| 1389 | 1393 | if ((input_port_read(machine, "row1") | pia0_pb) != 0xff) porta &= ~0x02; |
| r6166 | r6167 | |
| 1404 | 1408 | switch (ctrl) |
| 1405 | 1409 | { |
| 1406 | 1410 | case 0x01: /* Joystick */ |
| 1407 | | joyval = input_port_read_safe(machine, portnames[joystick][ctrl][joystick_axis], 0x00); |
| 1408 | | if (dac <= joyval) |
| 1409 | | porta |= 0x80; |
| 1411 | if (hires == hires_val || hires == ccm3_val) |
| 1412 | { |
| 1413 | /* Hi-Res Joystick or Hi-Res CoCo3Max Joystick */ |
| 1414 | if (joystick_axis ? coco_hiresjoy_ry(machine) : coco_hiresjoy_rx(machine)) |
| 1415 | porta |= 0x80; |
| 1416 | } |
| 1417 | else |
| 1418 | { |
| 1419 | joyval = input_port_read_safe(machine, portnames[joystick][ctrl][joystick_axis], 0x00); |
| 1420 | if (dac <= joyval) |
| 1421 | porta |= 0x80; |
| 1422 | } |
| 1410 | 1423 | break; |
| 1411 | 1424 | |
| 1412 | | case 0x04: /* Hi-Res Joystick */ |
| 1413 | | case 0x05: /* Hi-Res CC3Max Joystick */ |
| 1414 | | if (joystick_axis ? coco_hiresjoy_ry(machine) : coco_hiresjoy_rx(machine)) |
| 1415 | | porta |= 0x80; |
| 1416 | | break; |
| 1417 | | |
| 1418 | 1425 | case 0x02: /* Rat Mouse */ |
| 1419 | 1426 | joyval = input_port_read_safe(machine, portnames[joystick][ctrl][joystick_axis], 0x00); |
| 1420 | 1427 | if ((dac >> 2) <= joy_rat_table[joyval]) |
| r6166 | r6167 | |
| 1422 | 1429 | break; |
| 1423 | 1430 | |
| 1424 | 1431 | case 0x03: /* Diecom Light Gun */ |
| 1425 | | if( (video_screen_get_vpos(machine->primary_screen) == input_port_read_safe(machine, portnames[joystick][ctrl][1], 0)) ) |
| 1432 | if ((video_screen_get_vpos(machine->primary_screen) == input_port_read_safe(machine, portnames[joystick][ctrl][1], 0))) |
| 1426 | 1433 | { |
| 1427 | 1434 | /* If gun is pointing at the current scan line, set hit bit and cache horizontal timer value */ |
| 1428 | 1435 | dclg_output_h |= 0x02; |
| 1429 | 1436 | dclg_timer = input_port_read_safe(machine, portnames[joystick][ctrl][0], 0) << 1; |
| 1430 | 1437 | } |
| 1431 | 1438 | |
| 1432 | | if ( (dac >> 2) <= dclg_table[(joystick_axis ? dclg_output_h : dclg_output_v) & 0x03]) |
| 1439 | if ((dac >> 2) <= dclg_table[(joystick_axis ? dclg_output_h : dclg_output_v) & 0x03]) |
| 1433 | 1440 | porta |= 0x80; |
| 1434 | 1441 | |
| 1435 | | if( (dclg_state == 7) ) |
| 1442 | if ((dclg_state == 7)) |
| 1436 | 1443 | { |
| 1437 | 1444 | /* While in state 7, prepare to chech next video frame for a hit */ |
| 1438 | 1445 | dclg_time = video_screen_get_time_until_pos(machine->primary_screen, input_port_read_safe(machine, portnames[joystick][ctrl][1], 0), 0); |
| r6166 | r6167 | |
| 1444 | 1451 | break; |
| 1445 | 1452 | } |
| 1446 | 1453 | |
| 1447 | | if( attotime_compare(dclg_time, attotime_zero) ) |
| 1454 | if (attotime_compare(dclg_time, attotime_zero)) |
| 1448 | 1455 | { |
| 1449 | 1456 | /* schedule lightgun events */ |
| 1450 | | timer_reset(update_keyboard_timer, dclg_time ); |
| 1457 | timer_reset(update_keyboard_timer, dclg_time); |
| 1451 | 1458 | } |
| 1452 | 1459 | else |
| 1453 | 1460 | { |
| r6166 | r6167 | |
| 1460 | 1467 | } |
| 1461 | 1468 | |
| 1462 | 1469 | /* sample joystick buttons */ |
| 1463 | | porta &= ~input_port_read_safe(machine, "joystick_buttons", 0); |
| 1464 | | port_za &= ~input_port_read_safe(machine, "joystick_buttons", 0); |
| 1470 | porta &= ~input_port_read_safe(machine, button_names[ctrl], 0); |
| 1471 | port_za &= ~input_port_read_safe(machine, button_names[ctrl], 0); |
| 1465 | 1472 | |
| 1466 | 1473 | pia6821_set_input_a(state->pia_0, porta, port_za); |
| 1467 | 1474 | return porta; |
| r6166 | r6167 | |
| 1469 | 1476 | |
| 1470 | 1477 | |
| 1471 | 1478 | |
| 1472 | | static UINT8 coco3_update_keyboard(running_machine *machine) |
| 1479 | static UINT8 coco3_update_keyboard( running_machine *machine ) |
| 1473 | 1480 | { |
| 1474 | 1481 | /* the CoCo 3 keyboard update routine must also check for the GIME EI1 interrupt */ |
| 1475 | | UINT8 porta; |
| 1476 | | porta = coco_update_keyboard(machine); |
| 1477 | | coco3_raise_interrupt(machine, COCO3_INT_EI1, ((porta & 0x7F) == 0x7F) ? CLEAR_LINE : ASSERT_LINE); |
| 1482 | UINT8 porta = coco_update_keyboard(machine); |
| 1483 | coco3_raise_interrupt(machine, COCO3_INT_EI1, ((porta & 0x7f) == 0x7f) ? CLEAR_LINE : ASSERT_LINE); |
| 1478 | 1484 | return porta; |
| 1479 | 1485 | } |
| 1480 | 1486 | |
| 1481 | 1487 | |
| 1482 | 1488 | |
| 1483 | 1489 | /* three functions that update the keyboard in varying ways */ |
| 1484 | | static WRITE8_DEVICE_HANDLER ( d_pia0_pb_w ) { (*update_keyboard)(device->machine); } |
| 1485 | | INPUT_CHANGED(coco_keyboard_changed) { (*update_keyboard)(field->port->machine); } |
| 1486 | | static TIMER_CALLBACK(coco_update_keyboard_timerproc) { (*update_keyboard)(machine); } |
| 1490 | static WRITE8_DEVICE_HANDLER( d_pia0_pb_w ) { (*update_keyboard)(device->machine); } |
| 1491 | INPUT_CHANGED( coco_keyboard_changed ) { (*update_keyboard)(field->port->machine); } |
| 1492 | static TIMER_CALLBACK( coco_update_keyboard_timerproc) { (*update_keyboard)(machine); } |
| 1487 | 1493 | |
| 1488 | | static WRITE8_DEVICE_HANDLER ( d_pia0_pa_w ) |
| 1494 | static WRITE8_DEVICE_HANDLER( d_pia0_pa_w ) |
| 1489 | 1495 | { |
| 1496 | UINT8 ctrl = input_port_read_safe(device->machine, "ctrl_sel", 0x00); |
| 1497 | UINT8 hires = input_port_read_safe(device->machine, "hires_intf", 0x00); |
| 1498 | |
| 1490 | 1499 | /* Hi-Res CC3Max Joystick (either in Left or in Right Port) writes here */ |
| 1491 | | if ((input_port_read_safe(device->machine, "ctrl_sel", 0x00) & 0x0f) == 0x05) |
| 1500 | if ((ctrl & 0x0f) == 0x01 && hires == 0x02) |
| 1492 | 1501 | coco_hiresjoy_w(device->machine, data & 0x04, 0); |
| 1493 | | else if ((input_port_read_safe(device->machine, "ctrl_sel", 0x00) & 0xf0) == 0x50) |
| 1502 | else if ((ctrl & 0xf0) == 0x10 && hires == 0x04) |
| 1494 | 1503 | coco_hiresjoy_w(device->machine, data & 0x04, 1); |
| 1495 | 1504 | } |
| 1496 | 1505 | |
| 1497 | 1506 | |
| 1498 | | |
| 1499 | 1507 | /*************************************************************************** |
| 1500 | 1508 | PIA1 ($FF20-$FF3F) (Chip U4) |
| 1501 | 1509 | |
| r6166 | r6167 | |
| 1551 | 1559 | * 7-2: DAC to speaker or cassette |
| 1552 | 1560 | * 1: Serial out (CoCo), Printer strobe (Dragon) |
| 1553 | 1561 | */ |
| 1554 | | UINT8 dac = pia6821_get_output_a(device) & 0xFC; |
| 1562 | UINT8 dac = pia6821_get_output_a(device) & 0xfc; |
| 1555 | 1563 | static int dclg_previous_bit; |
| 1564 | UINT8 ctrl = input_port_read_safe(device->machine, "ctrl_sel", 0x00); |
| 1565 | UINT8 hires = input_port_read_safe(device->machine, "hires_intf", 0x00); |
| 1556 | 1566 | |
| 1557 | 1567 | coco_sound_update(device->machine); |
| 1558 | 1568 | |
| 1559 | 1569 | /* Diecom Light Gun (either in Left or in Right Port) writes here */ |
| 1560 | | if ((input_port_read_safe(device->machine, "ctrl_sel", 0x00) & 0x0f) == 0x03 || |
| 1561 | | (input_port_read_safe(device->machine, "ctrl_sel", 0x00) & 0xf0) == 0x30) |
| 1570 | if ((ctrl & 0x0f) == 0x03 || (ctrl & 0xf0) == 0x30) |
| 1562 | 1571 | { |
| 1563 | 1572 | int dclg_this_bit = ((data & 2) >> 1); |
| 1564 | 1573 | |
| 1565 | | if( dclg_previous_bit == 1 ) |
| 1574 | if (dclg_previous_bit == 1) |
| 1566 | 1575 | { |
| 1567 | | if( dclg_this_bit == 0 ) |
| 1576 | if (dclg_this_bit == 0) |
| 1568 | 1577 | { |
| 1569 | 1578 | /* Clock Diecom Light gun interface on a high to low transistion */ |
| 1570 | 1579 | dclg_state++; |
| r6166 | r6167 | |
| 1573 | 1582 | /* Clear hit bit for every transistion */ |
| 1574 | 1583 | dclg_output_h &= ~0x02; |
| 1575 | 1584 | |
| 1576 | | if( dclg_state > 7 ) |
| 1585 | if (dclg_state > 7) |
| 1577 | 1586 | { |
| 1578 | 1587 | /* Bit shift timer data on state 8 thru 15 */ |
| 1579 | | if (((dclg_timer >> (dclg_state-8+1)) & 0x01) == 1) |
| 1588 | if (((dclg_timer >> (dclg_state - 8 + 1)) & 0x01) == 1) |
| 1580 | 1589 | dclg_output_v |= 0x01; |
| 1581 | 1590 | else |
| 1582 | 1591 | dclg_output_v &= ~0x01; |
| 1583 | 1592 | |
| 1584 | 1593 | /* Bit 9 of timer is only avaiable if state == 8*/ |
| 1585 | | if (dclg_state == 8 && (((dclg_timer >> 9) & 0x01) == 1) ) |
| 1594 | if (dclg_state == 8 && (((dclg_timer >> 9) & 0x01) == 1)) |
| 1586 | 1595 | dclg_output_v |= 0x02; |
| 1587 | 1596 | else |
| 1588 | 1597 | dclg_output_v &= ~0x02; |
| 1589 | 1598 | } |
| 1590 | 1599 | |
| 1591 | 1600 | /* During state 15, this bit is high. */ |
| 1592 | | if( dclg_state == 15 ) |
| 1601 | if (dclg_state == 15) |
| 1593 | 1602 | dclg_output_h |= 0x01; |
| 1594 | 1603 | else |
| 1595 | 1604 | dclg_output_h &= ~0x01; |
| r6166 | r6167 | |
| 1607 | 1616 | (*update_keyboard)(device->machine); |
| 1608 | 1617 | |
| 1609 | 1618 | /* Hi-Res Joystick (either in Left or in Right Port) writes here */ |
| 1610 | | if ((input_port_read_safe(device->machine, "ctrl_sel", 0x00) & 0x0f) == 0x04) |
| 1619 | if ((ctrl & 0x0f) == 0x04 && hires == 0x01) |
| 1611 | 1620 | coco_hiresjoy_w(device->machine, dac >= 0x80, 0); |
| 1612 | | else if ((input_port_read_safe(device->machine, "ctrl_sel", 0x00) & 0xf0) == 0x40) |
| 1621 | else if ((ctrl & 0xf0) == 0x40 && hires == 0x03) |
| 1613 | 1622 | coco_hiresjoy_w(device->machine, dac >= 0x80, 1); |
| 1614 | 1623 | |
| 1615 | 1624 | /* Handle printer output, serial for CoCos, parallel for Dragons */ |
| 1616 | | |
| 1617 | 1625 | printer_out(device->machine, data); |
| 1618 | 1626 | } |
| 1619 | 1627 | |
| r6166 | r6167 | |
| 2944 | 2952 | coco3_mmu_update(machine, 0, 8); |
| 2945 | 2953 | } |
| 2946 | 2954 | |
| 2947 | | static void update_lightgun(running_machine *machine) |
| 2955 | static void update_lightgun( running_machine *machine ) |
| 2948 | 2956 | { |
| 2949 | 2957 | /* is there a Diecom Light Gun either in Left or in Right Port? */ |
| 2950 | | int is_lightgun = ((input_port_read_safe(machine, "ctrl_sel", 0x00) & 0x0f) == 0x03 || |
| 2951 | | (input_port_read_safe(machine, "ctrl_sel", 0x00) & 0xf0) == 0x30) ? 1 :0; |
| 2958 | UINT8 ctrl = input_port_read_safe(machine, "ctrl_sel", 0x00); |
| 2959 | int is_lightgun = ((ctrl & 0x0f) == 0x03 || (ctrl & 0xf0) == 0x30) ? 1 :0; |
| 2952 | 2960 | |
| 2953 | 2961 | crosshair_set_screen(machine, 0, is_lightgun ? CROSSHAIR_SCREEN_ALL : CROSSHAIR_SCREEN_NONE); |
| 2954 | 2962 | } |
src/mess/drivers/coco.c
| r6166 | r6167 | |
| 19 | 19 | coco3p 1.2 2.0 1.1 |
| 20 | 20 | coco3h 1.2 2.0 1.1 |
| 21 | 21 | |
| 22 | | |
| 23 | | Input-related note (FP, 2009-10): currently, button inputs are shared |
| 24 | | by the various controllers. This makes life easier when trying to |
| 25 | | re-configure buttons (a single change modifies all the controllers), |
| 26 | | but it has the undesired side effect of making the buttons available |
| 27 | | for remapping also when no device is connected to the input port. |
| 28 | | We should probably move buttons to separate INPUT_PORTS. |
| 29 | | |
| 30 | 22 | ***************************************************************************/ |
| 31 | 23 | |
| 32 | 24 | #include "driver.h" |
| r6166 | r6167 | |
| 136 | 128 | AM_RANGE(0xff20, 0xff3f) AM_DEVREADWRITE("pia_1", pia6821_r, coco_pia_1_w) |
| 137 | 129 | AM_RANGE(0xff40, 0xff7f) AM_DEVREADWRITE("coco_cartslot", coco_cartridge_r, coco_cartridge_w) |
| 138 | 130 | AM_RANGE(0xff80, 0xff85) AM_DEVREADWRITE("vhd", coco_vhd_io_r, coco_vhd_io_w) |
| 139 | | AM_RANGE(0xff90, 0xff9f) AM_READWRITE(coco3_gime_r, coco3_gime_w) |
| 140 | | AM_RANGE(0xffa0, 0xffaf) AM_READWRITE(coco3_mmu_r, coco3_mmu_w) |
| 141 | | AM_RANGE(0xffb0, 0xffbf) AM_READWRITE(SMH_BANK(10), coco3_palette_w) |
| 131 | AM_RANGE(0xff90, 0xff9f) AM_READWRITE(coco3_gime_r, coco3_gime_w) |
| 132 | AM_RANGE(0xffa0, 0xffaf) AM_READWRITE(coco3_mmu_r, coco3_mmu_w) |
| 133 | AM_RANGE(0xffb0, 0xffbf) AM_READWRITE(SMH_BANK(10), coco3_palette_w) |
| 142 | 134 | AM_RANGE(0xffc0, 0xffdf) AM_DEVWRITE("sam", sam6883_w) |
| 143 | 135 | AM_RANGE(0xffe0, 0xffef) AM_NOP |
| 144 | 136 | AM_RANGE(0xfff0, 0xffff) AM_ROM AM_REGION("maincpu", 0x7ff0) |
| r6166 | r6167 | |
| 276 | 268 | AM_RANGE(0xE000, 0xEFFF) AM_RAMBANK(15) |
| 277 | 269 | AM_RANGE(0xF000, 0xFEFF) AM_RAMBANK(16) |
| 278 | 270 | AM_RANGE(0xff00, 0xff03) AM_DEVREADWRITE("pia_0", pia6821_r, pia6821_w) |
| 279 | | AM_RANGE(0xff04, 0xff07) AM_DEVREADWRITE("acia", acia_6551_r, acia_6551_w) |
| 271 | AM_RANGE(0xff04, 0xff07) AM_DEVREADWRITE("acia", acia_6551_r, acia_6551_w) |
| 280 | 272 | AM_RANGE(0xff20, 0xff23) AM_DEVREADWRITE("pia_1", pia6821_r, coco_pia_1_w) |
| 281 | 273 | AM_RANGE(0xff24, 0xff27) AM_DEVREADWRITE("pia_2", pia6821_r, pia6821_w) /* Third PIA on Dragon Alpha */ |
| 282 | | AM_RANGE(0Xff28, 0xff2b) AM_READWRITE(alpha_modem_r, alpha_modem_w) /* Modem, dummy to stop eror log ! */ |
| 283 | | AM_RANGE(0xff2c, 0xff2f) AM_READWRITE(wd2797_r, wd2797_w) /* Alpha onboard disk interface */ |
| 274 | AM_RANGE(0Xff28, 0xff2b) AM_READWRITE(alpha_modem_r, alpha_modem_w) /* Modem, dummy to stop eror log ! */ |
| 275 | AM_RANGE(0xff2c, 0xff2f) AM_READWRITE(wd2797_r, wd2797_w) /* Alpha onboard disk interface */ |
| 284 | 276 | AM_RANGE(0xff40, 0xff7f) AM_DEVREADWRITE("coco_cartslot", coco_cartridge_r, coco_cartridge_w) |
| 285 | 277 | AM_RANGE(0xff90, 0xffbf) AM_NOP |
| 286 | 278 | AM_RANGE(0xffc0, 0xffdf) AM_DEVWRITE("sam", sam6883_w) |
| r6166 | r6167 | |
| 298 | 290 | PORT_BIT( 0xff, 0x80, IPT_AD_STICK_X) PORT_SENSITIVITY(JOYSTICK_SENSITIVITY) PORT_KEYDELTA(JOYSTICK_DELTA) PORT_MINMAX(0x00,0xFF) PORT_CODE_DEC(KEYCODE_4_PAD) PORT_CODE_INC(KEYCODE_6_PAD) PORT_CODE_DEC(JOYCODE_X_LEFT_SWITCH) PORT_CODE_INC(JOYCODE_X_RIGHT_SWITCH) PORT_PLAYER(2) PORT_CATEGORY(21) |
| 299 | 291 | PORT_START("joystick_ly") |
| 300 | 292 | PORT_BIT( 0xff, 0x80, IPT_AD_STICK_Y) PORT_SENSITIVITY(JOYSTICK_SENSITIVITY) PORT_KEYDELTA(JOYSTICK_DELTA) PORT_MINMAX(0x00,0xFF) PORT_CODE_DEC(KEYCODE_8_PAD) PORT_CODE_INC(KEYCODE_2_PAD) PORT_CODE_DEC(JOYCODE_Y_UP_SWITCH) PORT_CODE_INC(JOYCODE_Y_DOWN_SWITCH) PORT_PLAYER(2) PORT_CATEGORY(21) |
| 301 | | INPUT_PORTS_END |
| 302 | | |
| 303 | | static INPUT_PORTS_START( coco_hires_joystick ) |
| 304 | | PORT_START("joystick_hires_rx") |
| 305 | | PORT_BIT( 0xff, 0x80, IPT_AD_STICK_X) PORT_SENSITIVITY(JOYSTICK_SENSITIVITY) PORT_KEYDELTA(JOYSTICK_DELTA) PORT_MINMAX(0x00,0xFF) PORT_CODE_DEC(KEYCODE_4_PAD) PORT_CODE_INC(KEYCODE_6_PAD) PORT_CODE_DEC(JOYCODE_X_LEFT_SWITCH) PORT_CODE_INC(JOYCODE_X_RIGHT_SWITCH) PORT_PLAYER(1) PORT_CATEGORY(14) |
| 306 | | PORT_START("joystick_hires_ry") |
| 307 | | PORT_BIT( 0xff, 0x80, IPT_AD_STICK_Y) PORT_SENSITIVITY(JOYSTICK_SENSITIVITY) PORT_KEYDELTA(JOYSTICK_DELTA) PORT_MINMAX(0x00,0xFF) PORT_CODE_DEC(KEYCODE_8_PAD) PORT_CODE_INC(KEYCODE_2_PAD) PORT_CODE_DEC(JOYCODE_Y_UP_SWITCH) PORT_CODE_INC(JOYCODE_Y_DOWN_SWITCH) PORT_PLAYER(1) PORT_CATEGORY(14) |
| 308 | | PORT_START("joystick_hires_lx") |
| 309 | | PORT_BIT( 0xff, 0x80, IPT_AD_STICK_X) PORT_SENSITIVITY(JOYSTICK_SENSITIVITY) PORT_KEYDELTA(JOYSTICK_DELTA) PORT_MINMAX(0x00,0xFF) PORT_CODE_DEC(KEYCODE_4_PAD) PORT_CODE_INC(KEYCODE_6_PAD) PORT_CODE_DEC(JOYCODE_X_LEFT_SWITCH) PORT_CODE_INC(JOYCODE_X_RIGHT_SWITCH) PORT_PLAYER(2) PORT_CATEGORY(24) |
| 310 | | PORT_START("joystick_hires_ly") |
| 311 | | PORT_BIT( 0xff, 0x80, IPT_AD_STICK_Y) PORT_SENSITIVITY(JOYSTICK_SENSITIVITY) PORT_KEYDELTA(JOYSTICK_DELTA) PORT_MINMAX(0x00,0xFF) PORT_CODE_DEC(KEYCODE_8_PAD) PORT_CODE_INC(KEYCODE_2_PAD) PORT_CODE_DEC(JOYCODE_Y_UP_SWITCH) PORT_CODE_INC(JOYCODE_Y_DOWN_SWITCH) PORT_PLAYER(2) PORT_CATEGORY(24) |
| 312 | | INPUT_PORTS_END |
| 313 | | |
| 314 | | |
| 315 | | static INPUT_PORTS_START( coco_hires_max_joystick ) |
| 316 | | PORT_START("joystick_hires_max_rx") |
| 317 | | PORT_BIT( 0xff, 0x80, IPT_AD_STICK_X) PORT_SENSITIVITY(JOYSTICK_SENSITIVITY) PORT_KEYDELTA(JOYSTICK_DELTA) PORT_MINMAX(0x00,0xFF) PORT_CODE_DEC(KEYCODE_4_PAD) PORT_CODE_INC(KEYCODE_6_PAD) PORT_CODE_DEC(JOYCODE_X_LEFT_SWITCH) PORT_CODE_INC(JOYCODE_X_RIGHT_SWITCH) PORT_PLAYER(1) PORT_CATEGORY(15) |
| 318 | | PORT_START("joystick_hires_max_ry") |
| 319 | | PORT_BIT( 0xff, 0x80, IPT_AD_STICK_Y) PORT_SENSITIVITY(JOYSTICK_SENSITIVITY) PORT_KEYDELTA(JOYSTICK_DELTA) PORT_MINMAX(0x00,0xFF) PORT_CODE_DEC(KEYCODE_8_PAD) PORT_CODE_INC(KEYCODE_2_PAD) PORT_CODE_DEC(JOYCODE_Y_UP_SWITCH) PORT_CODE_INC(JOYCODE_Y_DOWN_SWITCH) PORT_PLAYER(1) PORT_CATEGORY(15) |
| 320 | | PORT_START("joystick_hires_max_lx") |
| 321 | | PORT_BIT( 0xff, 0x80, IPT_AD_STICK_X) PORT_SENSITIVITY(JOYSTICK_SENSITIVITY) PORT_KEYDELTA(JOYSTICK_DELTA) PORT_MINMAX(0x00,0xFF) PORT_CODE_DEC(KEYCODE_4_PAD) PORT_CODE_INC(KEYCODE_6_PAD) PORT_CODE_DEC(JOYCODE_X_LEFT_SWITCH) PORT_CODE_INC(JOYCODE_X_RIGHT_SWITCH) PORT_PLAYER(2) PORT_CATEGORY(25) |
| 322 | | PORT_START("joystick_hires_max_ly") |
| 323 | | PORT_BIT( 0xff, 0x80, IPT_AD_STICK_Y) PORT_SENSITIVITY(JOYSTICK_SENSITIVITY) PORT_KEYDELTA(JOYSTICK_DELTA) PORT_MINMAX(0x00,0xFF) PORT_CODE_DEC(KEYCODE_8_PAD) PORT_CODE_INC(KEYCODE_2_PAD) PORT_CODE_DEC(JOYCODE_Y_UP_SWITCH) PORT_CODE_INC(JOYCODE_Y_DOWN_SWITCH) PORT_PLAYER(2) PORT_CATEGORY(25) |
| 324 | | INPUT_PORTS_END |
| 325 | | |
| 326 | | static INPUT_PORTS_START( coco_joystick_buttons ) |
| 327 | 293 | PORT_START("joystick_buttons") |
| 328 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1) PORT_NAME("Right Button") PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_0_PAD) PORT_CODE(JOYCODE_BUTTON1) PORT_CODE(MOUSECODE_BUTTON1) PORT_PLAYER(1) |
| 329 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON1) PORT_NAME("Left Button") PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_0_PAD) PORT_CODE(JOYCODE_BUTTON1) PORT_CODE(MOUSECODE_BUTTON1) PORT_PLAYER(2) |
| 294 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1) PORT_NAME("Right Button") PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_0_PAD) PORT_CODE(JOYCODE_BUTTON1) PORT_CODE(MOUSECODE_BUTTON1) PORT_PLAYER(1) PORT_CATEGORY(11) |
| 295 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON1) PORT_NAME("Left Button") PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_0_PAD) PORT_CODE(JOYCODE_BUTTON1) PORT_CODE(MOUSECODE_BUTTON1) PORT_PLAYER(2) PORT_CATEGORY(21) |
| 330 | 296 | INPUT_PORTS_END |
| 331 | 297 | |
| 332 | | static INPUT_PORTS_START( coco3_joystick_buttons ) |
| 298 | static INPUT_PORTS_START( coco3_joystick ) |
| 299 | PORT_START("joystick_rx") |
| 300 | PORT_BIT( 0xff, 0x80, IPT_AD_STICK_X) PORT_SENSITIVITY(JOYSTICK_SENSITIVITY) PORT_KEYDELTA(JOYSTICK_DELTA) PORT_MINMAX(0x00,0xFF) PORT_CODE_DEC(KEYCODE_4_PAD) PORT_CODE_INC(KEYCODE_6_PAD) PORT_CODE_DEC(JOYCODE_X_LEFT_SWITCH) PORT_CODE_INC(JOYCODE_X_RIGHT_SWITCH) PORT_PLAYER(1) PORT_CATEGORY(11) |
| 301 | PORT_START("joystick_ry") |
| 302 | PORT_BIT( 0xff, 0x80, IPT_AD_STICK_Y) PORT_SENSITIVITY(JOYSTICK_SENSITIVITY) PORT_KEYDELTA(JOYSTICK_DELTA) PORT_MINMAX(0x00,0xFF) PORT_CODE_DEC(KEYCODE_8_PAD) PORT_CODE_INC(KEYCODE_2_PAD) PORT_CODE_DEC(JOYCODE_Y_UP_SWITCH) PORT_CODE_INC(JOYCODE_Y_DOWN_SWITCH) PORT_PLAYER(1) PORT_CATEGORY(11) |
| 303 | PORT_START("joystick_lx") |
| 304 | PORT_BIT( 0xff, 0x80, IPT_AD_STICK_X) PORT_SENSITIVITY(JOYSTICK_SENSITIVITY) PORT_KEYDELTA(JOYSTICK_DELTA) PORT_MINMAX(0x00,0xFF) PORT_CODE_DEC(KEYCODE_4_PAD) PORT_CODE_INC(KEYCODE_6_PAD) PORT_CODE_DEC(JOYCODE_X_LEFT_SWITCH) PORT_CODE_INC(JOYCODE_X_RIGHT_SWITCH) PORT_PLAYER(2) PORT_CATEGORY(21) |
| 305 | PORT_START("joystick_ly") |
| 306 | PORT_BIT( 0xff, 0x80, IPT_AD_STICK_Y) PORT_SENSITIVITY(JOYSTICK_SENSITIVITY) PORT_KEYDELTA(JOYSTICK_DELTA) PORT_MINMAX(0x00,0xFF) PORT_CODE_DEC(KEYCODE_8_PAD) PORT_CODE_INC(KEYCODE_2_PAD) PORT_CODE_DEC(JOYCODE_Y_UP_SWITCH) PORT_CODE_INC(JOYCODE_Y_DOWN_SWITCH) PORT_PLAYER(2) PORT_CATEGORY(21) |
| 333 | 307 | PORT_START("joystick_buttons") |
| 334 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1) PORT_NAME("Right Button 1") PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_0_PAD) PORT_CODE(JOYCODE_BUTTON1) PORT_CODE(MOUSECODE_BUTTON1) PORT_PLAYER(1) |
| 335 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_BUTTON2) PORT_NAME("Right Button 2") PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_DEL_PAD) PORT_CODE(JOYCODE_BUTTON2) PORT_CODE(MOUSECODE_BUTTON2) PORT_PLAYER(1) |
| 336 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON1) PORT_NAME("Left Button 1") PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_0_PAD) PORT_CODE(JOYCODE_BUTTON1) PORT_CODE(MOUSECODE_BUTTON1) PORT_PLAYER(2) |
| 337 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_BUTTON2) PORT_NAME("Left Button 2") PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_DEL_PAD) PORT_CODE(JOYCODE_BUTTON2) PORT_CODE(MOUSECODE_BUTTON2) PORT_PLAYER(2) |
| 308 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1) PORT_NAME("Right Button 1") PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_0_PAD) PORT_CODE(JOYCODE_BUTTON1) PORT_CODE(MOUSECODE_BUTTON1) PORT_PLAYER(1) PORT_CATEGORY(11) |
| 309 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_BUTTON2) PORT_NAME("Right Button 2") PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_DEL_PAD) PORT_CODE(JOYCODE_BUTTON2) PORT_CODE(MOUSECODE_BUTTON2) PORT_PLAYER(1) PORT_CATEGORY(11) |
| 310 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON1) PORT_NAME("Left Button 1") PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_0_PAD) PORT_CODE(JOYCODE_BUTTON1) PORT_CODE(MOUSECODE_BUTTON1) PORT_PLAYER(2) PORT_CATEGORY(21) |
| 311 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_BUTTON2) PORT_NAME("Left Button 2") PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_DEL_PAD) PORT_CODE(JOYCODE_BUTTON2) PORT_CODE(MOUSECODE_BUTTON2) PORT_PLAYER(2) PORT_CATEGORY(21) |
| 338 | 312 | INPUT_PORTS_END |
| 339 | 313 | |
| 340 | 314 | static INPUT_PORTS_START( coco_rat_mouse ) |
| r6166 | r6167 | |
| 346 | 320 | PORT_BIT( 0x03, 0x00, IPT_MOUSE_X) PORT_NAME("Rat Mouse X (Left Port)") PORT_SENSITIVITY(100) PORT_KEYDELTA(1) PORT_CODE_DEC(KEYCODE_LEFT) PORT_CODE_INC(KEYCODE_RIGHT) PORT_CODE_DEC(JOYCODE_X_LEFT_SWITCH) PORT_CODE_INC(JOYCODE_X_RIGHT_SWITCH) PORT_PLAYER(2) PORT_CATEGORY(22) |
| 347 | 321 | PORT_START("rat_mouse_ly") |
| 348 | 322 | PORT_BIT( 0x03, 0x00, IPT_MOUSE_Y) PORT_NAME("Rat Mouse Y (Left Port)") PORT_SENSITIVITY(100) PORT_KEYDELTA(1) PORT_CODE_DEC(KEYCODE_UP) PORT_CODE_INC(KEYCODE_DOWN) PORT_CODE_DEC(JOYCODE_Y_UP_SWITCH) PORT_CODE_INC(JOYCODE_Y_DOWN_SWITCH) PORT_PLAYER(2) PORT_CATEGORY(22) |
| 323 | PORT_START("rat_mouse_buttons") |
| 324 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1) PORT_NAME("Rat Mouse Button 1 (Right Port)") PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_0_PAD) PORT_CODE(JOYCODE_BUTTON1) PORT_CODE(MOUSECODE_BUTTON1) PORT_PLAYER(1) PORT_CATEGORY(12) |
| 325 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_BUTTON2) PORT_NAME("Rat Mouse Button 2 (Right Port)") PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_DEL_PAD) PORT_CODE(JOYCODE_BUTTON2) PORT_CODE(MOUSECODE_BUTTON2) PORT_PLAYER(1) PORT_CATEGORY(12) |
| 326 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON1) PORT_NAME("Rat Mouse Button 1 (Left Port)") PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_0_PAD) PORT_CODE(JOYCODE_BUTTON1) PORT_CODE(MOUSECODE_BUTTON1) PORT_PLAYER(2) PORT_CATEGORY(22) |
| 327 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_BUTTON2) PORT_NAME("Rat Mouse Button 2 (Left Port)") PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_DEL_PAD) PORT_CODE(JOYCODE_BUTTON2) PORT_CODE(MOUSECODE_BUTTON2) PORT_PLAYER(2) PORT_CATEGORY(22) |
| 349 | 328 | INPUT_PORTS_END |
| 350 | 329 | |
| 351 | 330 | static INPUT_PORTS_START( coco_lightgun ) |
| r6166 | r6167 | |
| 357 | 336 | PORT_BIT( 0x1ff, 266, IPT_LIGHTGUN_X ) PORT_NAME("Lightgun X (Left Port)") PORT_CROSSHAIR(X, 1.0, 0.0, 0) PORT_MINMAX(116,416) PORT_SENSITIVITY(100) PORT_KEYDELTA(1) PORT_PLAYER(1) PORT_CATEGORY(23) |
| 358 | 337 | PORT_START("dclg_ly") |
| 359 | 338 | PORT_BIT( 0xff, 121, IPT_LIGHTGUN_Y ) PORT_NAME("Lightgun Y (Left Port)") PORT_CROSSHAIR(Y, 1.0, 0.0, 0) PORT_MINMAX(0,242) PORT_SENSITIVITY(100) PORT_KEYDELTA(1) PORT_PLAYER(1) PORT_CATEGORY(23) |
| 339 | PORT_START("dclg_triggers") |
| 340 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1) PORT_NAME("Lightgun Trigger (Right Port)") PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_0_PAD) PORT_CODE(JOYCODE_BUTTON1) PORT_CODE(MOUSECODE_BUTTON1) PORT_PLAYER(1) PORT_CATEGORY(13) |
| 341 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON1) PORT_NAME("Lightgun Trigger (Left Port)") PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_0_PAD) PORT_CODE(JOYCODE_BUTTON1) PORT_CODE(MOUSECODE_BUTTON1) PORT_PLAYER(2) PORT_CATEGORY(23) |
| 360 | 342 | INPUT_PORTS_END |
| 361 | 343 | |
| 362 | 344 | |
| 363 | 345 | static INPUT_PORTS_START( cart_autostart ) |
| 364 | 346 | PORT_START("CARTAUTO") |
| 365 | 347 | PORT_CONFNAME( 0x01, 0x01, "Cart Auto-Start" ) |
| 366 | | PORT_CONFSETTING(0x00, DEF_STR( Off )) |
| 367 | | PORT_CONFSETTING(0x01, DEF_STR( On )) |
| 348 | PORT_CONFSETTING( 0x00, DEF_STR( Off )) |
| 349 | PORT_CONFSETTING( 0x01, DEF_STR( On )) |
| 368 | 350 | INPUT_PORTS_END |
| 369 | 351 | |
| 370 | 352 | /* Dragon keyboard |
| r6166 | r6167 | |
| 379 | 361 | PA0: 0 1 2 3 4 5 6 7 |
| 380 | 362 | */ |
| 381 | 363 | static INPUT_PORTS_START( dragon32 ) |
| 382 | | PORT_START("row0") /* KEY ROW 0 */ |
| 364 | PORT_START("row0") |
| 383 | 365 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_0) PORT_CHAR('0') |
| 384 | 366 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_1) PORT_CHAR('1') PORT_CHAR('!') |
| 385 | 367 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_2) PORT_CHAR('2') PORT_CHAR('\"') |
| r6166 | r6167 | |
| 389 | 371 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_6) PORT_CHAR('6') PORT_CHAR('&') |
| 390 | 372 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_7) PORT_CHAR('7') PORT_CHAR('\'') |
| 391 | 373 | |
| 392 | | PORT_START("row1") /* KEY ROW 1 */ |
| 374 | PORT_START("row1") |
| 393 | 375 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_8) PORT_CHAR('8') PORT_CHAR('(') |
| 394 | 376 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_9) PORT_CHAR('9') PORT_CHAR(')') |
| 395 | 377 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_COLON) PORT_CHAR(':') PORT_CHAR('*') |
| r6166 | r6167 | |
| 399 | 381 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_STOP) PORT_CHAR('.') PORT_CHAR('>') |
| 400 | 382 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_SLASH) PORT_CHAR('/') PORT_CHAR('?') |
| 401 | 383 | |
| 402 | | PORT_START("row2") /* KEY ROW 2 */ |
| 384 | PORT_START("row2") |
| 403 | 385 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_ASTERISK) PORT_CHAR('@') |
| 404 | 386 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_A) PORT_CHAR('A') |
| 405 | 387 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_B) PORT_CHAR('B') |
| r6166 | r6167 | |
| 409 | 391 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_F) PORT_CHAR('F') |
| 410 | 392 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_G) PORT_CHAR('G') |
| 411 | 393 | |
| 412 | | PORT_START("row3") /* KEY ROW 3 */ |
| 394 | PORT_START("row3") |
| 413 | 395 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_H) PORT_CHAR('H') |
| 414 | 396 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_I) PORT_CHAR('I') |
| 415 | 397 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_J) PORT_CHAR('J') |
| r6166 | r6167 | |
| 419 | 401 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_N) PORT_CHAR('N') |
| 420 | 402 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_O) PORT_CHAR('O') |
| 421 | 403 | |
| 422 | | PORT_START("row4") /* KEY ROW 4 */ |
| 404 | PORT_START("row4") |
| 423 | 405 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_P) PORT_CHAR('P') |
| 424 | 406 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_Q) PORT_CHAR('Q') |
| 425 | 407 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_R) PORT_CHAR('R') |
| r6166 | r6167 | |
| 429 | 411 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_V) PORT_CHAR('V') |
| 430 | 412 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_W) PORT_CHAR('W') |
| 431 | 413 | |
| 432 | | PORT_START("row5") /* KEY ROW 5 */ |
| 414 | PORT_START("row5") |
| 433 | 415 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_X) PORT_CHAR('X') |
| 434 | 416 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_Y) PORT_CHAR('Y') |
| 435 | 417 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_Z) PORT_CHAR('Z') |
| r6166 | r6167 | |
| 439 | 421 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_NAME("RIGHT") PORT_CODE(KEYCODE_RIGHT) PORT_CHAR(9) |
| 440 | 422 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_NAME("SPACE") PORT_CODE(KEYCODE_SPACE) PORT_CHAR(' ') |
| 441 | 423 | |
| 442 | | PORT_START("row6") /* KEY ROW 6 */ |
| 424 | PORT_START("row6") |
| 443 | 425 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_NAME("ENTER") PORT_CODE(KEYCODE_ENTER) PORT_CHAR(13) |
| 444 | 426 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_NAME("CLEAR") PORT_CODE(KEYCODE_HOME) PORT_CHAR(12) |
| 445 | 427 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_NAME("BREAK") PORT_CODE(KEYCODE_END) PORT_CODE(KEYCODE_ESC) PORT_CHAR(27) |
| 446 | 428 | PORT_BIT(0x78, IP_ACTIVE_LOW, IPT_UNUSED) |
| 447 | 429 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_NAME("SHIFT") PORT_CODE(KEYCODE_LSHIFT) PORT_CODE(KEYCODE_RSHIFT) PORT_CHAR(UCHAR_SHIFT_1) |
| 448 | 430 | |
| 449 | | /* Fix me: was any other controller compatible with dragon? */ |
| 431 | /* Other CoCo controllers were compatible with the Dragon, even if no software is known to make use of them */ |
| 432 | /* We add them here, based on this compatibility, in case anyone wants to use them in homebrew software */ |
| 450 | 433 | PORT_START("ctrl_sel") /* Select Controller Type */ |
| 451 | 434 | PORT_CATEGORY_CLASS( 0x0f, 0x01, "Right Controller Port (P1)") PORT_CHANGED( coco_joystick_mode_changed, 0 ) |
| 452 | 435 | PORT_CATEGORY_ITEM( 0x00, "Unconnected", 10 ) |
| 453 | 436 | PORT_CATEGORY_ITEM( 0x01, "Joystick", 11 ) |
| 437 | PORT_CATEGORY_ITEM( 0x02, "The Rat Graphics Mouse", 12 ) PORT_CONDITION("ctrl_sel", 0xf0, PORTCOND_NOTEQUALS, 0x20) |
| 438 | PORT_CATEGORY_ITEM( 0x03, "Diecom Light Gun Adaptor", 13 ) PORT_CONDITION("ctrl_sel", 0xf0, PORTCOND_NOTEQUALS, 0x30) |
| 454 | 439 | PORT_CATEGORY_CLASS( 0xf0, 0x10, "Left Controller Port (P2)") PORT_CHANGED( coco_joystick_mode_changed, 0 ) |
| 455 | 440 | PORT_CATEGORY_ITEM( 0x00, "Unconnected", 20 ) |
| 456 | 441 | PORT_CATEGORY_ITEM( 0x10, "Joystick", 21 ) |
| 442 | PORT_CATEGORY_ITEM( 0x20, "The Rat Graphics Mouse", 22 ) PORT_CONDITION("ctrl_sel", 0x0f, PORTCOND_NOTEQUALS, 0x02) |
| 443 | PORT_CATEGORY_ITEM( 0x30, "Diecom Light Gun Adaptor", 23 ) PORT_CONDITION("ctrl_sel", 0x0f, PORTCOND_NOTEQUALS, 0x03) |
| 457 | 444 | |
| 445 | PORT_START("hires_intf") |
| 446 | PORT_CONFNAME( 0x07, 0x00, "Hi-Res Joystick Interfaces" ) |
| 447 | PORT_CONFSETTING( 0x00, "None" ) |
| 448 | PORT_CONFSETTING( 0x01, "Hi-Res in Right Port" ) PORT_CONDITION("ctrl_sel", 0x0f, PORTCOND_EQUALS, 0x01) |
| 449 | PORT_CONFSETTING( 0x02, "Hi-Res CoCoMax 3 Style in Right Port" ) PORT_CONDITION("ctrl_sel", 0x0f, PORTCOND_EQUALS, 0x01) |
| 450 | PORT_CONFSETTING( 0x03, "Hi-Res in Left Port" ) PORT_CONDITION("ctrl_sel", 0xf0, PORTCOND_EQUALS, 0x10) |
| 451 | PORT_CONFSETTING( 0x04, "Hi-Res CoCoMax 3 Style in Left Port" ) PORT_CONDITION("ctrl_sel", 0xf0, PORTCOND_EQUALS, 0x10) |
| 452 | |
| 458 | 453 | PORT_INCLUDE( coco_joystick ) |
| 459 | | PORT_INCLUDE( coco_joystick_buttons ) |
| 454 | PORT_INCLUDE( coco_rat_mouse ) |
| 455 | PORT_INCLUDE( coco_lightgun ) |
| 456 | |
| 460 | 457 | PORT_INCLUDE( coco6847_artifacting ) |
| 461 | 458 | |
| 462 | 459 | PORT_INCLUDE( cart_autostart ) |
| r6166 | r6167 | |
| 474 | 471 | PA0: @ A B C D E F G |
| 475 | 472 | */ |
| 476 | 473 | static INPUT_PORTS_START( coco ) |
| 477 | | PORT_START("row0") /* KEY ROW 0 */ |
| 474 | PORT_START("row0") |
| 478 | 475 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_ASTERISK) PORT_CHAR('@') |
| 479 | 476 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_A) PORT_CHAR('A') |
| 480 | 477 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_B) PORT_CHAR('B') |
| r6166 | r6167 | |
| 484 | 481 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_F) PORT_CHAR('F') |
| 485 | 482 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_G) PORT_CHAR('G') |
| 486 | 483 | |
| 487 | | PORT_START("row1") /* KEY ROW 1 */ |
| 484 | PORT_START("row1") |
| 488 | 485 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_H) PORT_CHAR('H') |
| 489 | 486 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_I) PORT_CHAR('I') |
| 490 | 487 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_J) PORT_CHAR('J') |
| r6166 | r6167 | |
| 494 | 491 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_N) PORT_CHAR('N') |
| 495 | 492 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_O) PORT_CHAR('O') |
| 496 | 493 | |
| 497 | | PORT_START("row2") /* KEY ROW 2 */ |
| 494 | PORT_START("row2") |
| 498 | 495 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_P) PORT_CHAR('P') |
| 499 | 496 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_Q) PORT_CHAR('Q') |
| 500 | 497 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_R) PORT_CHAR('R') |
| r6166 | r6167 | |
| 504 | 501 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_V) PORT_CHAR('V') |
| 505 | 502 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_W) PORT_CHAR('W') |
| 506 | 503 | |
| 507 | | PORT_START("row3") /* KEY ROW 3 */ |
| 504 | PORT_START("row3") |
| 508 | 505 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_X) PORT_CHAR('X') |
| 509 | 506 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_Y) PORT_CHAR('Y') |
| 510 | 507 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_Z) PORT_CHAR('Z') |
| r6166 | r6167 | |
| 514 | 511 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_NAME("RIGHT") PORT_CODE(KEYCODE_RIGHT) PORT_CHAR(9) |
| 515 | 512 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_NAME("SPACE") PORT_CODE(KEYCODE_SPACE) PORT_CHAR(' ') |
| 516 | 513 | |
| 517 | | PORT_START("row4") /* KEY ROW 4 */ |
| 514 | PORT_START("row4") |
| 518 | 515 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_0) PORT_CHAR('0') |
| 519 | 516 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_1) PORT_CHAR('1') PORT_CHAR('!') |
| 520 | 517 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_2) PORT_CHAR('2') PORT_CHAR('\"') |
| r6166 | r6167 | |
| 524 | 521 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_6) PORT_CHAR('6') PORT_CHAR('&') |
| 525 | 522 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_7) PORT_CHAR('7') PORT_CHAR('\'') |
| 526 | 523 | |
| 527 | | PORT_START("row5") /* KEY ROW 5 */ |
| 524 | PORT_START("row5") |
| 528 | 525 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_8) PORT_CHAR('8') PORT_CHAR('(') |
| 529 | 526 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_9) PORT_CHAR('9') PORT_CHAR(')') |
| 530 | 527 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_COLON) PORT_CHAR(':') PORT_CHAR('*') |
| r6166 | r6167 | |
| 534 | 531 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_STOP) PORT_CHAR('.') PORT_CHAR('>') |
| 535 | 532 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_SLASH) PORT_CHAR('/') PORT_CHAR('?') |
| 536 | 533 | |
| 537 | | PORT_START("row6") /* KEY ROW 6 */ |
| 534 | PORT_START("row6") |
| 538 | 535 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_NAME("ENTER") PORT_CODE(KEYCODE_ENTER) PORT_CHAR(13) |
| 539 | 536 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_NAME("CLEAR") PORT_CODE(KEYCODE_HOME) PORT_CHAR(12) |
| 540 | 537 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_NAME("BREAK") PORT_CODE(KEYCODE_END) PORT_CODE(KEYCODE_ESC) PORT_CHAR(27) |
| r6166 | r6167 | |
| 543 | 540 | |
| 544 | 541 | PORT_INCLUDE( coco6847_artifacting ) |
| 545 | 542 | |
| 546 | | PORT_START("real_time_clock") /* 13 */ |
| 543 | PORT_START("real_time_clock") |
| 547 | 544 | PORT_CONFNAME( 0x03, 0x00, "Real Time Clock" ) |
| 548 | 545 | PORT_CONFSETTING( 0x00, "Disto" ) |
| 549 | 546 | PORT_CONFSETTING( 0x01, "Cloud-9" ) |
| 550 | 547 | |
| 551 | | /* Port Condition is used because you can plug Hi-Res joystick, |
| 552 | | Rat Mouse and Lightgun in either ports, but not both */ |
| 553 | | /* Fix me: should Rat Mouse and Diecom Light Gun be available also for coco & coco2? */ |
| 548 | /* Port Condition is used because you can plug Hi-Res joystick, Rat Mouse and Lightgun in either ports, but not both */ |
| 554 | 549 | PORT_START("ctrl_sel") /* Select Controller Type */ |
| 555 | 550 | PORT_CATEGORY_CLASS( 0x0f, 0x01, "Right Controller Port (P1)") PORT_CHANGED( coco_joystick_mode_changed, 0 ) |
| 556 | 551 | PORT_CATEGORY_ITEM( 0x00, "Unconnected", 10 ) |
| 557 | 552 | PORT_CATEGORY_ITEM( 0x01, "Joystick", 11 ) |
| 558 | 553 | PORT_CATEGORY_ITEM( 0x02, "The Rat Graphics Mouse", 12 ) PORT_CONDITION("ctrl_sel", 0xf0, PORTCOND_NOTEQUALS, 0x20) |
| 559 | 554 | PORT_CATEGORY_ITEM( 0x03, "Diecom Light Gun Adaptor", 13 ) PORT_CONDITION("ctrl_sel", 0xf0, PORTCOND_NOTEQUALS, 0x30) |
| 560 | | PORT_CATEGORY_ITEM( 0x04, "Hi-Res Interface Joystick", 14 ) PORT_CONDITION("ctrl_sel", 0xf0, PORTCOND_LESSTHAN, 0x40) |
| 561 | | PORT_CATEGORY_ITEM( 0x05, "Hi-Res Interface (CoCoMax 3 Style)", 15 ) PORT_CONDITION("ctrl_sel", 0xf0, PORTCOND_LESSTHAN, 0x40) |
| 562 | 555 | PORT_CATEGORY_CLASS( 0xf0, 0x10, "Left Controller Port (P2)") PORT_CHANGED( coco_joystick_mode_changed, 0 ) |
| 563 | 556 | PORT_CATEGORY_ITEM( 0x00, "Unconnected", 20 ) |
| 564 | 557 | PORT_CATEGORY_ITEM( 0x10, "Joystick", 21 ) |
| 565 | 558 | PORT_CATEGORY_ITEM( 0x20, "The Rat Graphics Mouse", 22 ) PORT_CONDITION("ctrl_sel", 0x0f, PORTCOND_NOTEQUALS, 0x02) |
| 566 | 559 | PORT_CATEGORY_ITEM( 0x30, "Diecom Light Gun Adaptor", 23 ) PORT_CONDITION("ctrl_sel", 0x0f, PORTCOND_NOTEQUALS, 0x03) |
| 567 | | PORT_CATEGORY_ITEM( 0x40, "Hi-Res Interface Joystick", 24 ) PORT_CONDITION("ctrl_sel", 0x0f, PORTCOND_LESSTHAN, 0x04) |
| 568 | | PORT_CATEGORY_ITEM( 0x50, "Hi-Res Interface (CoCoMax 3 Style)", 25 ) PORT_CONDITION("ctrl_sel", 0x0f, PORTCOND_LESSTHAN, 0x04) |
| 569 | 560 | |
| 561 | PORT_START("hires_intf") |
| 562 | PORT_CONFNAME( 0x07, 0x00, "Hi-Res Joystick Interfaces" )// PORT_CHANGED( coco_joystick_mode_changed, 0 ) |
| 563 | PORT_CONFSETTING( 0x00, "None" ) |
| 564 | PORT_CONFSETTING( 0x01, "Hi-Res in Right Port" ) PORT_CONDITION("ctrl_sel", 0x0f, PORTCOND_EQUALS, 0x01) |
| 565 | PORT_CONFSETTING( 0x02, "Hi-Res CoCoMax 3 Style in Right Port" ) PORT_CONDITION("ctrl_sel", 0x0f, PORTCOND_EQUALS, 0x01) |
| 566 | PORT_CONFSETTING( 0x03, "Hi-Res in Left Port" ) PORT_CONDITION("ctrl_sel", 0xf0, PORTCOND_EQUALS, 0x10) |
| 567 | PORT_CONFSETTING( 0x04, "Hi-Res CoCoMax 3 Style in Left Port" ) PORT_CONDITION("ctrl_sel", 0xf0, PORTCOND_EQUALS, 0x10) |
| 568 | |
| 570 | 569 | PORT_INCLUDE( coco_joystick ) |
| 571 | 570 | PORT_INCLUDE( coco_rat_mouse ) |
| 572 | 571 | PORT_INCLUDE( coco_lightgun ) |
| 573 | | PORT_INCLUDE( coco_hires_joystick ) |
| 574 | | PORT_INCLUDE( coco_hires_max_joystick ) |
| 575 | | /* buttons are shared among the controllers at the moment */ |
| 576 | | PORT_INCLUDE( coco_joystick_buttons ) |
| 577 | 572 | |
| 578 | 573 | PORT_INCLUDE( cart_autostart ) |
| 579 | 574 | INPUT_PORTS_END |
| r6166 | r6167 | |
| 590 | 585 | PA0: @ A B C D E F G |
| 591 | 586 | */ |
| 592 | 587 | static INPUT_PORTS_START( coco3 ) |
| 593 | | PORT_START("row0") /* KEY ROW 0 */ |
| 588 | PORT_START("row0") |
| 594 | 589 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_ASTERISK) PORT_CHAR('@') |
| 595 | 590 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_A) PORT_CHAR('A') |
| 596 | 591 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_B) PORT_CHAR('B') |
| r6166 | r6167 | |
| 600 | 595 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_F) PORT_CHAR('F') |
| 601 | 596 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_G) PORT_CHAR('G') |
| 602 | 597 | |
| 603 | | PORT_START("row1") /* KEY ROW 1 */ |
| 598 | PORT_START("row1") |
| 604 | 599 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_H) PORT_CHAR('H') |
| 605 | 600 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_I) PORT_CHAR('I') |
| 606 | 601 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_J) PORT_CHAR('J') |
| r6166 | r6167 | |
| 610 | 605 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_N) PORT_CHAR('N') |
| 611 | 606 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_O) PORT_CHAR('O') |
| 612 | 607 | |
| 613 | | PORT_START("row2") /* KEY ROW 2 */ |
| 608 | PORT_START("row2") |
| 614 | 609 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_P) PORT_CHAR('P') |
| 615 | 610 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_Q) PORT_CHAR('Q') |
| 616 | 611 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_R) PORT_CHAR('R') |
| r6166 | r6167 | |
| 620 | 615 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_V) PORT_CHAR('V') |
| 621 | 616 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_W) PORT_CHAR('W') |
| 622 | 617 | |
| 623 | | PORT_START("row3") /* KEY ROW 3 */ |
| 618 | PORT_START("row3") |
| 624 | 619 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_X) PORT_CHAR('X') |
| 625 | 620 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_Y) PORT_CHAR('Y') |
| 626 | 621 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_Z) PORT_CHAR('Z') |
| r6166 | r6167 | |
| 630 | 625 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_NAME("RIGHT") PORT_CODE(KEYCODE_RIGHT) PORT_CHAR(9) |
| 631 | 626 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_NAME("SPACE") PORT_CODE(KEYCODE_SPACE) PORT_CHAR(' ') |
| 632 | 627 | |
| 633 | | PORT_START("row4") /* KEY ROW 4 */ |
| 628 | PORT_START("row4") |
| 634 | 629 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_0) PORT_CHAR('0') |
| 635 | 630 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_1) PORT_CHAR('1') PORT_CHAR('!') |
| 636 | 631 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_2) PORT_CHAR('2') PORT_CHAR('\"') |
| r6166 | r6167 | |
| 640 | 635 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_6) PORT_CHAR('6') PORT_CHAR('&') |
| 641 | 636 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_7) PORT_CHAR('7') PORT_CHAR('\'') |
| 642 | 637 | |
| 643 | | PORT_START("row5") /* KEY ROW 5 */ |
| 638 | PORT_START("row5") |
| 644 | 639 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_8) PORT_CHAR('8') PORT_CHAR('(') |
| 645 | 640 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_9) PORT_CHAR('9') PORT_CHAR(')') |
| 646 | 641 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_COLON) PORT_CHAR(':') PORT_CHAR('*') |
| r6166 | r6167 | |
| 650 | 645 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_STOP) PORT_CHAR('.') PORT_CHAR('>') |
| 651 | 646 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_CODE(KEYCODE_SLASH) PORT_CHAR('/') PORT_CHAR('?') |
| 652 | 647 | |
| 653 | | PORT_START("row6") /* KEY ROW 6 */ |
| 648 | PORT_START("row6") |
| 654 | 649 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_NAME("ENTER") PORT_CODE(KEYCODE_ENTER) PORT_CHAR(13) |
| 655 | 650 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_NAME("CLEAR") PORT_CODE(KEYCODE_HOME) PORT_CHAR(12) |
| 656 | 651 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHANGED(coco_keyboard_changed, NULL) PORT_NAME("BREAK") PORT_CODE(KEYCODE_END) PORT_CODE(KEYCODE_ESC) PORT_CHAR(27) |
| r6166 | r6167 | |
| 667 | 662 | PORT_CONFSETTING( 0x00, "Disto" ) |
| 668 | 663 | PORT_CONFSETTING( 0x01, "Cloud-9" ) |
| 669 | 664 | |
| 670 | | /* Port Condition is used because you can plug Hi-Res joystick, |
| 671 | | Rat Mouse and Lightgun in either ports, but not both */ |
| 672 | | /* Fix me: should Rat Mouse and Diecom Light Gun be available also for coco & coco2? */ |
| 665 | /* Port Condition is used because you can plug Hi-Res joystick, Rat Mouse and Lightgun in either ports, but not both */ |
| 673 | 666 | PORT_START("ctrl_sel") /* Select Controller Type */ |
| 674 | 667 | PORT_CATEGORY_CLASS( 0x0f, 0x01, "Right Controller Port (P1)") PORT_CHANGED( coco_joystick_mode_changed, 0 ) |
| 675 | 668 | PORT_CATEGORY_ITEM( 0x00, "Unconnected", 10 ) |
| 676 | 669 | PORT_CATEGORY_ITEM( 0x01, "Joystick", 11 ) |
| 677 | 670 | PORT_CATEGORY_ITEM( 0x02, "The Rat Graphics Mouse", 12 ) PORT_CONDITION("ctrl_sel", 0xf0, PORTCOND_NOTEQUALS, 0x20) |
| 678 | 671 | PORT_CATEGORY_ITEM( 0x03, "Diecom Light Gun Adaptor", 13 ) PORT_CONDITION("ctrl_sel", 0xf0, PORTCOND_NOTEQUALS, 0x30) |
| 679 | | PORT_CATEGORY_ITEM( 0x04, "Hi-Res Interface Joystick", 14 ) PORT_CONDITION("ctrl_sel", 0xf0, PORTCOND_LESSTHAN, 0x40) |
| 680 | | PORT_CATEGORY_ITEM( 0x05, "Hi-Res Interface (CoCoMax 3 Style)", 15 ) PORT_CONDITION("ctrl_sel", 0xf0, PORTCOND_LESSTHAN, 0x40) |
| 681 | 672 | PORT_CATEGORY_CLASS( 0xf0, 0x10, "Left Controller Port (P2)") PORT_CHANGED( coco_joystick_mode_changed, 0 ) |
| 682 | 673 | PORT_CATEGORY_ITEM( 0x00, "Unconnected", 20 ) |
| 683 | 674 | PORT_CATEGORY_ITEM( 0x10, "Joystick", 21 ) |
| 684 | 675 | PORT_CATEGORY_ITEM( 0x20, "The Rat Graphics Mouse", 22 ) PORT_CONDITION("ctrl_sel", 0x0f, PORTCOND_NOTEQUALS, 0x02) |
| 685 | 676 | PORT_CATEGORY_ITEM( 0x30, "Diecom Light Gun Adaptor", 23 ) PORT_CONDITION("ctrl_sel", 0x0f, PORTCOND_NOTEQUALS, 0x03) |
| 686 | | PORT_CATEGORY_ITEM( 0x40, "Hi-Res Interface Joystick", 24 ) PORT_CONDITION("ctrl_sel", 0x0f, PORTCOND_LESSTHAN, 0x04) |
| 687 | | PORT_CATEGORY_ITEM( 0x50, "Hi-Res Interface (CoCoMax 3 Style)", 25 ) PORT_CONDITION("ctrl_sel", 0x0f, PORTCOND_LESSTHAN, 0x04) |
| 688 | 677 | |
| 689 | | PORT_INCLUDE( coco_joystick ) |
| 678 | PORT_START("hires_intf") |
| 679 | PORT_CONFNAME( 0x07, 0x00, "Hi-Res Joystick Interfaces" ) |
| 680 | PORT_CONFSETTING( 0x00, "None" ) |
| 681 | PORT_CONFSETTING( 0x01, "Hi-Res in Right Port" ) PORT_CONDITION("ctrl_sel", 0x0f, PORTCOND_EQUALS, 0x01) |
| 682 | PORT_CONFSETTING( 0x02, "Hi-Res CoCoMax 3 Style in Right Port" ) PORT_CONDITION("ctrl_sel", 0x0f, PORTCOND_EQUALS, 0x01) |
| 683 | PORT_CONFSETTING( 0x03, "Hi-Res in Left Port" ) PORT_CONDITION("ctrl_sel", 0xf0, PORTCOND_EQUALS, 0x10) |
| 684 | PORT_CONFSETTING( 0x04, "Hi-Res CoCoMax 3 Style in Left Port" ) PORT_CONDITION("ctrl_sel", 0xf0, PORTCOND_EQUALS, 0x10) |
| 685 | |
| 686 | PORT_INCLUDE( coco3_joystick ) |
| 690 | 687 | PORT_INCLUDE( coco_rat_mouse ) |
| 691 | 688 | PORT_INCLUDE( coco_lightgun ) |
| 692 | | PORT_INCLUDE( coco_hires_joystick ) |
| 693 | | PORT_INCLUDE( coco_hires_max_joystick ) |
| 694 | | /* buttons are shared among the controllers at the moment */ |
| 695 | | PORT_INCLUDE( coco3_joystick_buttons ) |
| 696 | 689 | |
| 697 | 690 | PORT_INCLUDE( cart_autostart ) |
| 698 | 691 | INPUT_PORTS_END |
| r6166 | r6167 | |
| 1400 | 1393 | /* use 64K rams, and will boot with 4k, if this is selected, so I have */ |
| 1401 | 1394 | /* split these to avoid confusion -- PHS */ |
| 1402 | 1395 | |
| 1403 | | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME */ |
| 1404 | | COMP( 1980, coco, 0, 0, coco, coco, 0, 0, "Tandy Radio Shack", "Color Computer" , 0) |
| 1405 | | COMP( 1981, cocoe, coco, 0, cocoe, coco, 0, 0, "Tandy Radio Shack", "Color Computer (Extended BASIC 1.0)" , 0) |
| 1406 | | COMP( 1983, coco2, coco, 0, coco2, coco, 0, 0, "Tandy Radio Shack", "Color Computer 2" , 0) |
| 1407 | | COMP( 1985?, coco2b, coco, 0, coco2b, coco, 0, 0, "Tandy Radio Shack", "Color Computer 2B" , 0) |
| 1408 | | COMP( 1986, coco3, coco, 0, coco3, coco3, 0, 0, "Tandy Radio Shack", "Color Computer 3 (NTSC)" , 0) |
| 1409 | | COMP( 1986, coco3p, coco, 0, coco3p, coco3, 0, 0, "Tandy Radio Shack", "Color Computer 3 (PAL)" , 0) |
| 1410 | | COMP( 19??, coco3h, coco, 0, coco3h, coco3, 0, 0, "Tandy Radio Shack", "Color Computer 3 (NTSC; HD6309)", GAME_COMPUTER_MODIFIED) |
| 1411 | | COMP( 1982, dragon32, coco, 0, dragon32, dragon32, 0, 0, "Dragon Data Ltd", "Dragon 32" , 0) |
| 1412 | | COMP( 1983, dragon64, coco, 0, dragon64, dragon32, 0, 0, "Dragon Data Ltd", "Dragon 64" , 0) |
| 1413 | | COMP( 1983, d64plus, coco, 0, d64plus, dragon32, 0, 0, "Dragon Data Ltd", "Dragon 64 Plus" , 0) |
| 1414 | | COMP( 1983, tanodr64, coco, 0, tanodr64, dragon32, 0, 0, "Dragon Data Ltd/Tano Ltd","Tano Dragon 64 (NTSC)" , 0) |
| 1415 | | COMP( 1984, dgnalpha, coco, 0, dgnalpha, dragon32, 0, 0, "Dragon Data Ltd", "Dragon Alpha Prototype" , 0) |
| 1416 | | COMP( 1984, cp400, coco, 0, coco, coco, 0, 0, "Prologica", "CP400" , 0) |
| 1396 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME */ |
| 1397 | COMP( 1980, coco, 0, 0, coco, coco, 0, 0, "Tandy Radio Shack", "Color Computer", 0) |
| 1398 | COMP( 1981, cocoe, coco, 0, cocoe, coco, 0, 0, "Tandy Radio Shack", "Color Computer (Extended BASIC 1.0)", 0) |
| 1399 | COMP( 1983, coco2, coco, 0, coco2, coco, 0, 0, "Tandy Radio Shack", "Color Computer 2", 0) |
| 1400 | COMP( 1985?, coco2b, coco, 0, coco2b, coco, 0, 0, "Tandy Radio Shack", "Color Computer 2B", 0) |
| 1401 | COMP( 1986, coco3, coco, 0, coco3, coco3, 0, 0, "Tandy Radio Shack", "Color Computer 3 (NTSC)", 0) |
| 1402 | COMP( 1986, coco3p, coco, 0, coco3p, coco3, 0, 0, "Tandy Radio Shack", "Color Computer 3 (PAL)", 0) |
| 1403 | COMP( 19??, coco3h, coco, 0, coco3h, coco3, 0, 0, "Tandy Radio Shack", "Color Computer 3 (NTSC; HD6309)", GAME_COMPUTER_MODIFIED) |
| 1404 | COMP( 1982, dragon32, coco, 0, dragon32, dragon32, 0, 0, "Dragon Data Ltd", "Dragon 32", 0) |
| 1405 | COMP( 1983, dragon64, coco, 0, dragon64, dragon32, 0, 0, "Dragon Data Ltd", "Dragon 64", 0) |
| 1406 | COMP( 1983, d64plus, coco, 0, d64plus, dragon32, 0, 0, "Dragon Data Ltd", "Dragon 64 Plus", 0) |
| 1407 | COMP( 1983, tanodr64, coco, 0, tanodr64, dragon32, 0, 0, "Dragon Data Ltd / Tano Ltd", "Tano Dragon 64 (NTSC)", 0) |
| 1408 | COMP( 1984, dgnalpha, coco, 0, dgnalpha, dragon32, 0, 0, "Dragon Data Ltd", "Dragon Alpha Prototype", 0) |
| 1409 | COMP( 1984, cp400, coco, 0, coco, coco, 0, 0, "Prologica", "CP400", 0) |