summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author hap <happppp@users.noreply.github.com>2017-04-27 16:58:37 +0200
committer hap <happppp@users.noreply.github.com>2017-04-27 16:58:59 +0200
commitd2f1a5a87528a125a109799c8a1843209168e0be (patch)
treea813204a3612c100ed1808ea90defcd03fb98990
parent820504f8f36e5d69cb791575c62b4b412808df30 (diff)
novagmcs48: fix led problem (nw)
-rw-r--r--src/mame/drivers/novagmcs48.cpp5
-rw-r--r--src/mame/layout/novag_presto.lay44
2 files changed, 25 insertions, 24 deletions
diff --git a/src/mame/drivers/novagmcs48.cpp b/src/mame/drivers/novagmcs48.cpp
index 7957155f6f5..d2f87bd73a1 100644
--- a/src/mame/drivers/novagmcs48.cpp
+++ b/src/mame/drivers/novagmcs48.cpp
@@ -12,7 +12,7 @@
TODO:
- is presto led handling correct? mux data needs to be auto cleared
- similar to diablo/sexpert. cpu color led should be on while thinking
+ similar to diablo/sexpert
******************************************************************************
@@ -68,6 +68,8 @@ WRITE8_MEMBER(novagmcs48_state::presto_mux_w)
{
// D0-D7: input mux low, led data
m_inp_mux = (m_inp_mux & ~0xff) | (~data & 0xff);
+ display_matrix(8, 3, m_inp_mux, m_led_select);
+ m_led_select = 0; // ?
}
WRITE8_MEMBER(novagmcs48_state::presto_control_w)
@@ -80,7 +82,6 @@ WRITE8_MEMBER(novagmcs48_state::presto_control_w)
// P24-P26: led select
m_led_select = ~data >> 4 & 7;
- display_matrix(8, 3, m_inp_mux, m_led_select);
m_inp_mux &= ~0xff; // ?
}
diff --git a/src/mame/layout/novag_presto.lay b/src/mame/layout/novag_presto.lay
index 2af9f558ca7..3bf1afb89f9 100644
--- a/src/mame/layout/novag_presto.lay
+++ b/src/mame/layout/novag_presto.lay
@@ -144,28 +144,28 @@
<!-- chessboard leds -->
- <bezel name="2.7" element="ledr"><bounds x="-2.5" y="7.25" width="1.5" height="1.5" /></bezel>
- <bezel name="2.6" element="ledr"><bounds x="-2.5" y="17.25" width="1.5" height="1.5" /></bezel>
- <bezel name="2.5" element="ledr"><bounds x="-2.5" y="27.25" width="1.5" height="1.5" /></bezel>
- <bezel name="2.4" element="ledr"><bounds x="-2.5" y="37.25" width="1.5" height="1.5" /></bezel>
- <bezel name="2.3" element="ledr"><bounds x="-2.5" y="47.25" width="1.5" height="1.5" /></bezel>
- <bezel name="2.2" element="ledr"><bounds x="-2.5" y="57.25" width="1.5" height="1.5" /></bezel>
- <bezel name="2.1" element="ledr"><bounds x="-2.5" y="67.25" width="1.5" height="1.5" /></bezel>
- <bezel name="2.0" element="ledr"><bounds x="-2.5" y="77.25" width="1.5" height="1.5" /></bezel>
-
- <bezel name="0.0" element="ledr"><bounds x="6" y="85" width="1.5" height="1.5" /></bezel>
- <bezel name="0.1" element="ledr"><bounds x="16" y="85" width="1.5" height="1.5" /></bezel>
- <bezel name="0.2" element="ledr"><bounds x="26" y="85" width="1.5" height="1.5" /></bezel>
- <bezel name="0.3" element="ledr"><bounds x="36" y="85" width="1.5" height="1.5" /></bezel>
- <bezel name="0.4" element="ledr"><bounds x="46" y="85" width="1.5" height="1.5" /></bezel>
- <bezel name="0.5" element="ledr"><bounds x="56" y="85" width="1.5" height="1.5" /></bezel>
- <bezel name="0.6" element="ledr"><bounds x="66" y="85" width="1.5" height="1.5" /></bezel>
- <bezel name="0.7" element="ledr"><bounds x="76" y="85" width="1.5" height="1.5" /></bezel>
-
- <bezel name="1.0" element="ledr"><bounds x="90.5" y="85" width="1.5" height="1.5" /></bezel>
- <bezel name="1.1" element="ledg"><bounds x="86" y="85" width="1.5" height="1.5" /></bezel>
- <bezel name="1.2" element="ledg"><bounds x="97" y="70.7" width="1.5" height="1.5" /></bezel>
- <bezel name="1.3" element="ledg"><bounds x="97" y="60.7" width="1.5" height="1.5" /></bezel>
+ <bezel name="0.7" element="ledr"><bounds x="-2.5" y="7.25" width="1.5" height="1.5" /></bezel>
+ <bezel name="0.6" element="ledr"><bounds x="-2.5" y="17.25" width="1.5" height="1.5" /></bezel>
+ <bezel name="0.5" element="ledr"><bounds x="-2.5" y="27.25" width="1.5" height="1.5" /></bezel>
+ <bezel name="0.4" element="ledr"><bounds x="-2.5" y="37.25" width="1.5" height="1.5" /></bezel>
+ <bezel name="0.3" element="ledr"><bounds x="-2.5" y="47.25" width="1.5" height="1.5" /></bezel>
+ <bezel name="0.2" element="ledr"><bounds x="-2.5" y="57.25" width="1.5" height="1.5" /></bezel>
+ <bezel name="0.1" element="ledr"><bounds x="-2.5" y="67.25" width="1.5" height="1.5" /></bezel>
+ <bezel name="0.0" element="ledr"><bounds x="-2.5" y="77.25" width="1.5" height="1.5" /></bezel>
+
+ <bezel name="1.0" element="ledr"><bounds x="6" y="85" width="1.5" height="1.5" /></bezel>
+ <bezel name="1.1" element="ledr"><bounds x="16" y="85" width="1.5" height="1.5" /></bezel>
+ <bezel name="1.2" element="ledr"><bounds x="26" y="85" width="1.5" height="1.5" /></bezel>
+ <bezel name="1.3" element="ledr"><bounds x="36" y="85" width="1.5" height="1.5" /></bezel>
+ <bezel name="1.4" element="ledr"><bounds x="46" y="85" width="1.5" height="1.5" /></bezel>
+ <bezel name="1.5" element="ledr"><bounds x="56" y="85" width="1.5" height="1.5" /></bezel>
+ <bezel name="1.6" element="ledr"><bounds x="66" y="85" width="1.5" height="1.5" /></bezel>
+ <bezel name="1.7" element="ledr"><bounds x="76" y="85" width="1.5" height="1.5" /></bezel>
+
+ <bezel name="2.0" element="ledr"><bounds x="90.5" y="85" width="1.5" height="1.5" /></bezel>
+ <bezel name="2.1" element="ledg"><bounds x="86" y="85" width="1.5" height="1.5" /></bezel>
+ <bezel name="2.2" element="ledg"><bounds x="97" y="70.7" width="1.5" height="1.5" /></bezel>
+ <bezel name="2.3" element="ledg"><bounds x="97" y="60.7" width="1.5" height="1.5" /></bezel>
<!-- chessboard bezel -->