summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author hap <happppp@users.noreply.github.com>2016-02-24 06:38:27 +0100
committer hap <happppp@users.noreply.github.com>2016-02-24 06:38:44 +0100
commit0cbd8782119b140920097a2bee76f36aef014be9 (patch)
treea323f1242c60b7555750e16b6544d6c1c831c1d5
parentcf9a461f39023c745aa138e760f6e91f1769d78c (diff)
tispeak: nothing much
-rw-r--r--src/mame/drivers/mbdtower.cpp1
-rw-r--r--src/mame/drivers/tispeak.cpp9
-rw-r--r--src/mame/drivers/tispellb.cpp5
3 files changed, 8 insertions, 7 deletions
diff --git a/src/mame/drivers/mbdtower.cpp b/src/mame/drivers/mbdtower.cpp
index d5a1d589604..bd2144742d0 100644
--- a/src/mame/drivers/mbdtower.cpp
+++ b/src/mame/drivers/mbdtower.cpp
@@ -242,7 +242,6 @@ void mbdtower_state::machine_start()
save_item(NAME(m_sensor_blind));
}
-
static MACHINE_CONFIG_START( mbdtower, mbdtower_state )
/* basic machine hardware */
diff --git a/src/mame/drivers/tispeak.cpp b/src/mame/drivers/tispeak.cpp
index cafc46a7cbc..68fd7e966bf 100644
--- a/src/mame/drivers/tispeak.cpp
+++ b/src/mame/drivers/tispeak.cpp
@@ -431,6 +431,7 @@ public:
virtual DECLARE_INPUT_CHANGED_MEMBER(power_button) override;
void power_off();
void prepare_display();
+ bool vfd_filament_on() { return m_display_decay[15][16] != 0; }
DECLARE_READ8_MEMBER(snspell_read_k);
DECLARE_WRITE16_MEMBER(snmath_write_o);
@@ -540,7 +541,7 @@ DRIVER_INIT_MEMBER(tispeak_state, lantutor)
void tispeak_state::prepare_display()
{
- UINT16 gridmask = (m_display_decay[15][16] != 0) ? 0xffff : 0x8000; // vfd filament on/off
+ UINT16 gridmask = vfd_filament_on() ? 0xffff : 0x8000;
set_display_segmask(0x21ff, 0x3fff);
display_matrix(16+1, 16, m_plate | 1<<16, m_grid & gridmask);
}
@@ -548,7 +549,7 @@ void tispeak_state::prepare_display()
WRITE16_MEMBER(tispeak_state::snspell_write_r)
{
// R13: power-off request, on falling edge
- if ((m_r >> 13 & 1) && !(data >> 13 & 1))
+ if (~data & m_r & 0x2000)
power_off();
// R0-R7: input mux and select digit (+R8 if the device has 9 digits)
@@ -614,7 +615,7 @@ WRITE16_MEMBER(tispeak_state::snspellc_write_r)
m_tms5100->pdc_w(data >> 10);
// R9: power-off request, on falling edge
- if ((m_r >> 9 & 1) && !(data >> 9 & 1))
+ if (~data & m_r & 0x200)
power_off();
// R0-R8: input mux
@@ -686,7 +687,7 @@ WRITE16_MEMBER(tispeak_state::k28_write_r)
m_inp_mux = (m_inp_mux & 0xff) | (data << 3 & 0x100);
// R6: power-off request, on falling edge
- if ((m_r >> 6 & 1) && !(data >> 6 & 1))
+ if (~data & m_r & 0x40)
power_off();
// R7-R10: LCD data
diff --git a/src/mame/drivers/tispellb.cpp b/src/mame/drivers/tispellb.cpp
index fcb7b072260..00f581759ef 100644
--- a/src/mame/drivers/tispellb.cpp
+++ b/src/mame/drivers/tispellb.cpp
@@ -83,6 +83,7 @@ public:
virtual DECLARE_INPUT_CHANGED_MEMBER(power_button) override;
void power_off();
void prepare_display();
+ bool vfd_filament_on() { return m_display_decay[15][16] != 0; }
DECLARE_READ8_MEMBER(main_read_k);
DECLARE_WRITE16_MEMBER(main_write_o);
@@ -139,7 +140,7 @@ void tispellb_state::power_off()
void tispellb_state::prepare_display()
{
// almost same as snspell
- UINT16 gridmask = (m_display_decay[15][16] != 0) ? 0xffff : 0x8000; // vfd filament on/off
+ UINT16 gridmask = vfd_filament_on() ? 0xffff : 0x8000;
set_display_segmask(0xff, 0x3fff);
display_matrix(16+1, 16, m_plate | 1<<16, m_grid & gridmask);
}
@@ -154,7 +155,7 @@ WRITE16_MEMBER(tispellb_state::main_write_o)
WRITE16_MEMBER(tispellb_state::main_write_r)
{
// R13: power-off request, on falling edge
- if ((m_r >> 13 & 1) && !(data >> 13 & 1))
+ if (~data & m_r & 0x2000)
power_off();
// R0-R6: input mux