From 0f3a4dfdc96fdc16d3fac7209daab2a42e2cd50b Mon Sep 17 00:00:00 2001 From: jbu Date: Tue, 9 Dec 2014 18:13:57 +0100 Subject: [PATCH] There be light on the 8seg display (nw) --- src/mame/drivers/gts1.c | 11 ++------- src/mame/layout/gts1.lay | 52 +++++++++++++++++++++------------------- 2 files changed, 30 insertions(+), 33 deletions(-) diff --git a/src/mame/drivers/gts1.c b/src/mame/drivers/gts1.c index 669bd6af5a9..dffe6b9b7d8 100644 --- a/src/mame/drivers/gts1.c +++ b/src/mame/drivers/gts1.c @@ -98,7 +98,6 @@ public: private: virtual void machine_reset(); required_device m_maincpu; - // required_device m_gpkd; // FIXME: doesn't compile UINT8 m_io[256]; UINT8 m_counter; UINT8 m_6351_addr; @@ -258,14 +257,8 @@ WRITE8_MEMBER(gts1_state::gts1_display_w) LOG(("%s: offset:%d data:%02x\n", __FUNCTION__, offset, data)); const UINT8 a = ttl7448_mod[(data >> 0) & 15]; const UINT8 b = ttl7448_mod[(data >> 4) & 15]; - if (offset < 6) { - output_set_digit_value(offset, a); - output_set_digit_value(offset + 10, b); - } - if (offset >= 8 && offset < 8 + 6) { - output_set_digit_value(offset - 8 + 6, a); - output_set_digit_value(offset - 8 + 10, b); - } + output_set_digit_value(offset, a); + output_set_digit_value(offset + 16, b); } READ8_MEMBER (gts1_state::gts1_io_r) diff --git a/src/mame/layout/gts1.lay b/src/mame/layout/gts1.lay index 2193ca88a6a..ac392641344 100644 --- a/src/mame/layout/gts1.lay +++ b/src/mame/layout/gts1.lay @@ -28,79 +28,83 @@ - + - + - + - + - + - + - + + - + - + - + - + - + + - + - + - + - + - + - + - + + - + - + - + - + - + +