src/mess/formats/ti85_ser.c
| r11165 | r11166 | |
| 1268 | 1268 | |
| 1269 | 1269 | if (ti85serial->status == TI85_SEND_STOP) |
| 1270 | 1270 | { |
| 1271 | | if (input_port_read(device->machine(), "SERIAL") & 0x01) |
| 1271 | if (input_port_read(device, "SERIAL") & 0x01) |
| 1272 | 1272 | { |
| 1273 | 1273 | if(!ti85_alloc_serial_data_memory(device, 15)) return; |
| 1274 | 1274 | if(!ti85_receive_serial (device, ti85serial->receive_buffer, 7*8)) |
| r11165 | r11166 | |
| 1287 | 1287 | { |
| 1288 | 1288 | ti85_receive_serial(device, NULL, 0); |
| 1289 | 1289 | ti85_free_serial_data_memory(device); |
| 1290 | | if (input_port_read(device->machine(), "DUMP") & 0x01) |
| 1290 | if (input_port_read(device, "DUMP") & 0x01) |
| 1291 | 1291 | { |
| 1292 | 1292 | ti85serial->status = TI85_PREPARE_SCREEN_REQUEST; |
| 1293 | 1293 | ti85serial->transfer_type = TI85_RECEIVE_SCREEN; |
| r11165 | r11166 | |
| 1460 | 1460 | } |
| 1461 | 1461 | |
| 1462 | 1462 | |
| 1463 | static INPUT_PORTS_START ( ti85serial ) |
| 1464 | PORT_START("SERIAL") /* receive data from calculator */ |
| 1465 | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Receive data") PORT_CODE(KEYCODE_R) |
| 1466 | PORT_START("DUMP") /* screen dump requesting */ |
| 1467 | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Screen dump request") PORT_CODE(KEYCODE_S) |
| 1468 | INPUT_PORTS_END |
| 1469 | |
| 1470 | |
| 1463 | 1471 | DEVICE_GET_INFO( ti85serial ) |
| 1464 | 1472 | { |
| 1465 | 1473 | switch ( state ) |
| r11165 | r11166 | |
| 1475 | 1483 | case DEVINFO_FCT_STOP: info->stop = DEVICE_STOP_NAME( ti85serial ); break; |
| 1476 | 1484 | case DEVINFO_FCT_IMAGE_LOAD: info->f = (genf *) DEVICE_IMAGE_LOAD_NAME( ti85serial ); break; |
| 1477 | 1485 | case DEVINFO_FCT_IMAGE_UNLOAD: info->f = (genf *) DEVICE_IMAGE_UNLOAD_NAME( ti85serial ); break; |
| 1486 | case DEVINFO_PTR_INPUT_PORTS: info->ipt = INPUT_PORTS_NAME( ti85serial ); break; |
| 1478 | 1487 | case DEVINFO_STR_IMAGE_BRIEF_INSTANCE_NAME: strcpy(info->s, "ser"); break; |
| 1479 | 1488 | case DEVINFO_STR_IMAGE_INSTANCE_NAME: |
| 1480 | 1489 | case DEVINFO_STR_NAME: strcpy(info->s, "TI85 Serial"); break; |
src/mess/drivers/ti85.c
| r11165 | r11166 | |
| 415 | 415 | PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("MORE (MODE)") PORT_CODE(KEYCODE_TILDE) |
| 416 | 416 | PORT_START("ON") /* ON */ |
| 417 | 417 | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("ON/OFF") PORT_CODE(KEYCODE_Q) |
| 418 | | PORT_START("SERIAL") /* receive data from calculator */ |
| 419 | | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Receive data") PORT_CODE(KEYCODE_R) |
| 420 | | PORT_START("DUMP") /* screen dump requesting */ |
| 421 | | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Screen dump request") PORT_CODE(KEYCODE_S) |
| 422 | 418 | INPUT_PORTS_END |
| 423 | 419 | |
| 424 | 420 | static INPUT_PORTS_START (ti82) |
| r11165 | r11166 | |
| 481 | 477 | PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("DEL") PORT_CODE(KEYCODE_DEL) |
| 482 | 478 | PORT_START("ON") /* ON */ |
| 483 | 479 | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("ON/OFF") PORT_CODE(KEYCODE_Q) |
| 484 | | PORT_START("SERIAL") /* receive data from calculator */ |
| 485 | | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Receive data") PORT_CODE(KEYCODE_R) |
| 486 | | PORT_START("DUMP") /* screen dump requesting */ |
| 487 | | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Screen dump request") PORT_CODE(KEYCODE_S) |
| 488 | 480 | INPUT_PORTS_END |
| 489 | 481 | |
| 490 | 482 | static INPUT_PORTS_START (ti83) |