mirror of
https://github.com/holub/mame
synced 2025-04-22 16:31:49 +03:00
(nw) tec1: added the missing RESET button.
This commit is contained in:
parent
7dbae9dfe9
commit
59951954d3
@ -36,7 +36,7 @@ GO (execute program at current address) is the X key.
|
||||
SHIFT - later monitor versions utilised an extra shift button. Hold
|
||||
it down and press another key (use Left Shift).
|
||||
|
||||
Whenever a program listing mentions RESET, do a Soft Reset.
|
||||
Whenever a program listing mentions RESET, press Left-Alt key.
|
||||
|
||||
Each key causes a beep to be heard. You may need to press more than once
|
||||
to get it to register.
|
||||
@ -104,6 +104,8 @@ public:
|
||||
void tec1(machine_config &config);
|
||||
void tecjmon(machine_config &config);
|
||||
|
||||
DECLARE_INPUT_CHANGED_MEMBER(reset_button);
|
||||
|
||||
private:
|
||||
required_device<cpu_device> m_maincpu;
|
||||
required_device<speaker_sound_device> m_speaker;
|
||||
@ -411,8 +413,16 @@ static INPUT_PORTS_START( tec1 )
|
||||
PORT_BIT(0x1f, IP_ACTIVE_HIGH, IPT_UNUSED)
|
||||
PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Shift") PORT_CODE(KEYCODE_LSHIFT)
|
||||
PORT_BIT(0xc0, IP_ACTIVE_LOW, IPT_UNUSED)
|
||||
|
||||
PORT_START("RESET")
|
||||
PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("RESET") PORT_CODE(KEYCODE_LALT) PORT_CHANGED_MEMBER(DEVICE_SELF, tec1_state, reset_button, nullptr)
|
||||
INPUT_PORTS_END
|
||||
|
||||
INPUT_CHANGED_MEMBER(tec1_state::reset_button)
|
||||
{
|
||||
m_maincpu->set_input_line(INPUT_LINE_RESET, newval ? ASSERT_LINE : CLEAR_LINE);
|
||||
}
|
||||
|
||||
|
||||
/***************************************************************************
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user