diff options
author | hap <happppp@users.noreply.github.com> | 2019-02-28 14:45:06 +0100 |
---|---|---|
committer | hap <happppp@users.noreply.github.com> | 2019-02-28 14:45:19 +0100 |
commit | d3368ea66e71824d1891f15c11529b4a6e9a4667 (patch) | |
tree | cb7a3e9dd133ca255a617cf3fda1ae679c7a0dc2 | |
parent | 4c3fdda8feec644a76581076bb47e827399d38f3 (diff) |
arb: fix small problem with reset button (nw)
-rw-r--r-- | src/mame/drivers/ave_arb.cpp | 9 | ||||
-rw-r--r-- | src/mame/drivers/hh_cop400.cpp | 8 |
2 files changed, 9 insertions, 8 deletions
diff --git a/src/mame/drivers/ave_arb.cpp b/src/mame/drivers/ave_arb.cpp index f922382f714..3ca879b461f 100644 --- a/src/mame/drivers/ave_arb.cpp +++ b/src/mame/drivers/ave_arb.cpp @@ -61,8 +61,9 @@ public: { } // halt button is tied to NMI, reset button to RESET(but only if halt button is held) - DECLARE_INPUT_CHANGED_MEMBER(reset_button) { m_maincpu->set_input_line(INPUT_LINE_RESET, (newval && m_inp_matrix[9]->read() & 2) ? ASSERT_LINE : CLEAR_LINE); } - DECLARE_INPUT_CHANGED_MEMBER(halt_button) { m_maincpu->set_input_line(M6502_NMI_LINE, newval ? ASSERT_LINE : CLEAR_LINE); } + void update_reset() { m_maincpu->set_input_line(INPUT_LINE_RESET, (m_inp_matrix[9]->read() == 3) ? ASSERT_LINE : CLEAR_LINE); } + DECLARE_INPUT_CHANGED_MEMBER(reset_button) { update_reset(); } + DECLARE_INPUT_CHANGED_MEMBER(halt_button) { m_maincpu->set_input_line(M6502_NMI_LINE, newval ? ASSERT_LINE : CLEAR_LINE); update_reset(); } // machine drivers void arb(machine_config &config); @@ -191,8 +192,8 @@ static INPUT_PORTS_START( arb ) PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_N) PORT_CODE(KEYCODE_0) PORT_NAME("New Game / Options / Pawn / 0") PORT_START("IN.9") - PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYPAD ) PORT_CODE(KEYCODE_R) PORT_NAME("Reset") PORT_CHANGED_MEMBER(DEVICE_SELF, arb_state, reset_button, nullptr) - PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYPAD ) PORT_CODE(KEYCODE_T) PORT_NAME("Halt") PORT_CHANGED_MEMBER(DEVICE_SELF, arb_state, halt_button, nullptr) + PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYPAD ) PORT_CODE(KEYCODE_R) PORT_CODE(KEYCODE_F2) PORT_NAME("Reset") PORT_CHANGED_MEMBER(DEVICE_SELF, arb_state, reset_button, nullptr) + PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYPAD ) PORT_CODE(KEYCODE_T) PORT_CODE(KEYCODE_F2) PORT_NAME("Halt") PORT_CHANGED_MEMBER(DEVICE_SELF, arb_state, halt_button, nullptr) INPUT_PORTS_END diff --git a/src/mame/drivers/hh_cop400.cpp b/src/mame/drivers/hh_cop400.cpp index 84527d33b92..69b6a3d781c 100644 --- a/src/mame/drivers/hh_cop400.cpp +++ b/src/mame/drivers/hh_cop400.cpp @@ -11,7 +11,7 @@ - vidchal: Add screen and gun cursor with brightness detection callback, and softwarelist for the video tapes. We'd also need a VHS player device. The emulated lightgun itself appears to be working fine(eg. add a 30hz - timer to IN3 to score +100) + timer to IN.3 to score +100) ***************************************************************************/ @@ -47,8 +47,8 @@ class hh_cop400_state : public driver_device { public: - hh_cop400_state(const machine_config &mconfig, device_type type, const char *tag) - : driver_device(mconfig, type, tag), + hh_cop400_state(const machine_config &mconfig, device_type type, const char *tag) : + driver_device(mconfig, type, tag), m_maincpu(*this, "maincpu"), m_inp_matrix(*this, "IN.%u", 0), m_out_x(*this, "%u.%u", 0U, 0U), @@ -347,7 +347,7 @@ void ctstein_state::ctstein(machine_config &config) An earlier revision of this runs on TMS1000, see hh_tms1k.cpp driver. Model numbers are the same. From the outside, an easy way to spot the difference is the Start/Display button: TMS1000 version button label is D, COP420 one is a *. - This version also plays much slower. + The COP420 version also plays much slower. ***************************************************************************/ |