src/mess/drivers/fidelz80.c
| r9741 | r9742 | |
| 498 | 498 | Input Ports |
| 499 | 499 | ******************************************************************************/ |
| 500 | 500 | |
| 501 | static INPUT_CHANGED( fidelz80_trigger_reset ) |
| 502 | { |
| 503 | fidelz80_state *state = field->port->machine->driver_data<fidelz80_state>(); |
| 504 | |
| 505 | cpu_set_input_line(state->m_maincpu, INPUT_LINE_RESET, newval ? CLEAR_LINE : ASSERT_LINE); |
| 506 | } |
| 507 | |
| 508 | static INPUT_CHANGED( abc_trigger_reset ) |
| 509 | { |
| 510 | fidelz80_state *state = field->port->machine->driver_data<fidelz80_state>(); |
| 511 | |
| 512 | cpu_set_input_line(state->m_maincpu, INPUT_LINE_RESET, newval ? CLEAR_LINE : ASSERT_LINE); |
| 513 | cpu_set_input_line(state->m_i8041, INPUT_LINE_RESET, newval ? CLEAR_LINE : ASSERT_LINE); |
| 514 | } |
| 515 | |
| 501 | 516 | static INPUT_PORTS_START( fidelz80 ) |
| 502 | 517 | PORT_START("LEVEL") // cc10 only |
| 503 | 518 | PORT_CONFNAME( 0x80, 0x00, "Number of levels" ) |
| r9741 | r9742 | |
| 505 | 520 | PORT_CONFSETTING( 0x80, "3" ) |
| 506 | 521 | |
| 507 | 522 | PORT_START("LINE1") |
| 508 | | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_NAME("RE") PORT_CODE(KEYCODE_R) |
| 523 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_NAME("RE") PORT_CODE(KEYCODE_R) PORT_CHANGED(fidelz80_trigger_reset, 0) |
| 509 | 524 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_NAME("LV") PORT_CODE(KEYCODE_V) |
| 510 | 525 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_NAME("A1") PORT_CODE(KEYCODE_1) |
| 511 | 526 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_NAME("E5") PORT_CODE(KEYCODE_5) |
| r9741 | r9742 | |
| 581 | 596 | |
| 582 | 597 | PORT_START("LINE8") |
| 583 | 598 | PORT_BIT(0x0f, IP_ACTIVE_LOW, IPT_UNUSED) PORT_UNUSED |
| 584 | | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_NAME("RE") PORT_CODE(KEYCODE_R) |
| 599 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_NAME("RE") PORT_CODE(KEYCODE_R) PORT_CHANGED(abc_trigger_reset, 0) |
| 585 | 600 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_NAME("BR") PORT_CODE(KEYCODE_T) |
| 586 | 601 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_NAME("DL") PORT_CODE(KEYCODE_L) |
| 587 | 602 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_NAME("Clubs") PORT_CODE(KEYCODE_4_PAD) |