mirror of
https://github.com/holub/mame
synced 2025-07-04 17:38:08 +03:00
usability (nw)
This commit is contained in:
parent
fc1c6766c9
commit
a9fe679d8a
@ -99,6 +99,7 @@ public:
|
|||||||
m_addr = (m_addr + 1) & 0x0fff;
|
m_addr = (m_addr + 1) & 0x0fff;
|
||||||
output().set_led_value(0, !BIT(data, 2));
|
output().set_led_value(0, !BIT(data, 2));
|
||||||
output().set_led_value(1, !BIT(data, 1));
|
output().set_led_value(1, !BIT(data, 1));
|
||||||
|
output().set_led_value(3, !BIT(data, 0) && BIT(m_sw->read(), 1));
|
||||||
m_mcu->set_input_line(M68705_VPP_LINE, (!BIT(data, 0) && BIT(m_sw->read(), 1)) ? ASSERT_LINE : CLEAR_LINE);
|
m_mcu->set_input_line(M68705_VPP_LINE, (!BIT(data, 0) && BIT(m_sw->read(), 1)) ? ASSERT_LINE : CLEAR_LINE);
|
||||||
|
|
||||||
m_pb_val = data;
|
m_pb_val = data;
|
||||||
@ -129,9 +130,11 @@ public:
|
|||||||
|
|
||||||
DECLARE_MACHINE_RESET(m68705prg)
|
DECLARE_MACHINE_RESET(m68705prg)
|
||||||
{
|
{
|
||||||
// FIXME: how do we set toggling inputs to desired value on reset? This doesn't work.
|
m_sw->field(0x01)->live().value = 0;
|
||||||
m_sw->field(0x01)->set_value(0);
|
m_sw->field(0x02)->live().value = 0;
|
||||||
m_sw->field(0x02)->set_value(0);
|
|
||||||
|
output().set_led_value(2, 1);
|
||||||
|
output().set_led_value(3, 0);
|
||||||
|
|
||||||
m_mcu->set_input_line(M68705_IRQ_LINE, ASSERT_LINE);
|
m_mcu->set_input_line(M68705_IRQ_LINE, ASSERT_LINE);
|
||||||
m_mcu->set_input_line(M68705_VPP_LINE, CLEAR_LINE);
|
m_mcu->set_input_line(M68705_VPP_LINE, CLEAR_LINE);
|
||||||
@ -160,8 +163,14 @@ protected:
|
|||||||
TIMER_CALLBACK_MEMBER(input_poll_callback)
|
TIMER_CALLBACK_MEMBER(input_poll_callback)
|
||||||
{
|
{
|
||||||
ioport_value const switches(m_sw->read());
|
ioport_value const switches(m_sw->read());
|
||||||
m_mcu->set_input_line(M68705_VPP_LINE, (BIT(switches, 1) && !BIT(m_pb_val, 0)) ? ASSERT_LINE : CLEAR_LINE);
|
bool const reset(!BIT(switches, 0));
|
||||||
m_mcu->set_input_line(INPUT_LINE_RESET, BIT(switches, 0) ? ASSERT_LINE : CLEAR_LINE);
|
bool const vpp(BIT(switches, 1) && !BIT(m_pb_val, 0));
|
||||||
|
|
||||||
|
output().set_led_value(2, reset);
|
||||||
|
output().set_led_value(3, vpp);
|
||||||
|
|
||||||
|
m_mcu->set_input_line(M68705_VPP_LINE, vpp ? ASSERT_LINE : CLEAR_LINE);
|
||||||
|
m_mcu->set_input_line(INPUT_LINE_RESET, reset ? ASSERT_LINE : CLEAR_LINE);
|
||||||
}
|
}
|
||||||
|
|
||||||
required_ioport m_sw;
|
required_ioport m_sw;
|
||||||
|
@ -44,6 +44,16 @@ MC68705 programmer layout
|
|||||||
<color red="1.0" green="1.0" blue="1.0" />
|
<color red="1.0" green="1.0" blue="1.0" />
|
||||||
</text>
|
</text>
|
||||||
</element>
|
</element>
|
||||||
|
<element name="reset">
|
||||||
|
<text string="Reset">
|
||||||
|
<color red="1.0" green="1.0" blue="1.0" />
|
||||||
|
</text>
|
||||||
|
</element>
|
||||||
|
<element name="vpp">
|
||||||
|
<text string="Vpp">
|
||||||
|
<color red="1.0" green="1.0" blue="1.0" />
|
||||||
|
</text>
|
||||||
|
</element>
|
||||||
|
|
||||||
<element name="background">
|
<element name="background">
|
||||||
<rect>
|
<rect>
|
||||||
@ -54,7 +64,7 @@ MC68705 programmer layout
|
|||||||
|
|
||||||
<view name="Default Layout">
|
<view name="Default Layout">
|
||||||
<bezel element="background">
|
<bezel element="background">
|
||||||
<bounds left="0" top="0" right="190" bottom="160" />
|
<bounds left="0" top="0" right="190" bottom="200" />
|
||||||
</bezel>
|
</bezel>
|
||||||
|
|
||||||
<bezel name="address" element="address">
|
<bezel name="address" element="address">
|
||||||
@ -83,5 +93,19 @@ MC68705 programmer layout
|
|||||||
<bezel name="led0" element="green_led">
|
<bezel name="led0" element="green_led">
|
||||||
<bounds x="132" y="135" width="15" height="15" />
|
<bounds x="132" y="135" width="15" height="15" />
|
||||||
</bezel>
|
</bezel>
|
||||||
|
|
||||||
|
<bezel name="reset" element="reset">
|
||||||
|
<bounds x="10" y="160" width="80" height="10" />
|
||||||
|
</bezel>
|
||||||
|
<bezel name="led2" element="red_led">
|
||||||
|
<bounds x="42" y="175" width="15" height="15" />
|
||||||
|
</bezel>
|
||||||
|
|
||||||
|
<bezel name="vpp" element="vpp">
|
||||||
|
<bounds x="100" y="160" width="80" height="10" />
|
||||||
|
</bezel>
|
||||||
|
<bezel name="led3" element="red_led">
|
||||||
|
<bounds x="132" y="175" width="15" height="15" />
|
||||||
|
</bezel>
|
||||||
</view>
|
</view>
|
||||||
</mamelayout>
|
</mamelayout>
|
||||||
|
Loading…
Reference in New Issue
Block a user