Previous 199869 Revisions Next

r33999 Sunday 21st December, 2014 at 15:54:15 UTC by David Haywood
Merge branch 'master' of https://github.com/mamedev/mame
[src/mess/drivers]tispeak.c
[src/mess/layout]tispeak.lay

trunk/src/mess/drivers/tispeak.c
r242510r242511
11// license:BSD-3-Clause
2// copyright-holders:hap
2// copyright-holders:hap, Lord Nightmare
33/***************************************************************************
44
55  Texas Instruments Speak & Spell hardware
r242510r242511
159159
160160WRITE_LINE_MEMBER(tispeak_state::auto_power_off)
161161{
162   // power-off request from the MCU, usually after a couple of minutes of idling
162   // power-off request from the MCU, when [OFF] is pressed, also typically after a couple of minutes of idling
163163   if (state)
164164      power_off();
165165}
r242510r242511
186186
187187INPUT_CHANGED_MEMBER(tispeak_state::power_button)
188188{
189   // note: even though power buttons are on the matrix, they are not MCU-controlled
190189   int on = (int)(FPTR)param;
191190   
192191   if (on)
r242510r242511
245244   PORT_BIT( 0x1f, IP_ACTIVE_HIGH, IPT_UNUSED )
246245
247246   PORT_START("IN.7") // R7
248   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_PGDN) PORT_NAME("Off") PORT_CHANGED_MEMBER(DEVICE_SELF, tispeak_state, power_button, (void *)0)
247   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_PGDN) PORT_NAME("Off") // -> auto_power_off
249248   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_1) PORT_NAME("Go")
250249   PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_2) PORT_NAME("Replay")
251250   PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_3) PORT_NAME("Repeat")
r242510r242511
286285   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED )
287286   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_ENTER) PORT_CODE(KEYCODE_ENTER_PAD) PORT_NAME("Enter")
288287   PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_Q) PORT_NAME("Go")
289   PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_PGDN) PORT_NAME("Off") PORT_CHANGED_MEMBER(DEVICE_SELF, tispeak_state, power_button, (void *)0)
288   PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_PGDN) PORT_NAME("Off") // -> auto_power_off
290289   PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED )
291290
292291   PORT_START("IN.4") // R4
r242510r242511
300299   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_PLUS_PAD) PORT_NAME("+")
301300   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_MINUS_PAD) PORT_NAME("-")
302301   PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_ASTERISK) PORT_NAME(UTF8_MULTIPLY)
303   PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_SLASH_PAD) PORT_NAME(UTF8_DIVIDE)
302   PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_SLASH_PAD) PORT_NAME(UTF8_DIVIDE) // /
304303   PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_E) PORT_NAME("Mix It")
305304
306305   PORT_START("IN.6") // R6
trunk/src/mess/layout/tispeak.lay
r242510r242511
66<!-- note: the TI Speak & Spell 14seg digits look different from MAME's default, most notably the right half is wider -->
77
88   <element name="digit" defstate="0">
9      <led14seg><color red="0.3" green="1.0" blue="0.7" /></led14seg>
9      <led14seg><color red="0.2" green="1.0" blue="0.85" /></led14seg>
1010   </element>
1111
1212<!-- add our own for DP(display point) and the custom AP(apostrophe) segments -->
1313
1414   <element name="lamp_dp" defstate="0">
15      <disk state="0"><color red="0.0353" green="0.1255" blue="0.0863" /></disk>
16      <disk state="1"><color red="0.3" green="1.0" blue="0.7" /></disk>
15      <disk state="0"><color red="0.0235" green="0.1255" blue="0.1059" /></disk>
16      <disk state="1"><color red="0.2" green="1.0" blue="0.85" /></disk>
1717   </element>
1818   <element name="lamp_ap" defstate="0">
19      <rect state="0"><color red="0.0353" green="0.1255" blue="0.0863" /></rect>
20      <rect state="1"><color red="0.3" green="1.0" blue="0.7" /></rect>
19      <rect state="0"><color red="0.0235" green="0.1255" blue="0.1059" /></rect>
20      <rect state="1"><color red="0.2" green="1.0" blue="0.85" /></rect>
2121   </element>
2222
2323


Previous 199869 Revisions Next


© 1997-2024 The MAME Team