summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/tms6100.h
diff options
context:
space:
mode:
author wilbertpol <wilbertpol@users.noreply.github.com>2018-03-03 18:18:08 +0100
committer Vas Crabb <cuavas@users.noreply.github.com>2018-03-04 04:18:08 +1100
commit3b923d59ccb8d2d8e386392518450006f8e644fe (patch)
tree73c48568e76d69edbde9f96a3f57d173dd05a747 /src/devices/machine/tms6100.h
parent25472091b626bd01ef47f11389a4b2ebe0fc0008 (diff)
destaticify initializations (nw) (#3289)
* destaticify initializations (nw) * fix this->set_screen (nw)
Diffstat (limited to 'src/devices/machine/tms6100.h')
-rw-r--r--src/devices/machine/tms6100.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/machine/tms6100.h b/src/devices/machine/tms6100.h
index ec1f3b9817c..d9e34634279 100644
--- a/src/devices/machine/tms6100.h
+++ b/src/devices/machine/tms6100.h
@@ -21,7 +21,7 @@
// note: in 4-bit mode, use data_r, otherwise use data_line_r
#define MCFG_TMS6100_4BIT_MODE() \
- tms6100_device::enable_4bit_mode(*device);
+ downcast<tms6100_device &>(*device).enable_4bit_mode(true);
// pinout reference
@@ -97,7 +97,7 @@ class tms6100_device : public device_t
public:
tms6100_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock);
- static void enable_4bit_mode(device_t &device) { downcast<tms6100_device &>(device).m_4bit_mode = true; }
+ void enable_4bit_mode(bool mode) { m_4bit_mode = mode; }
DECLARE_WRITE_LINE_MEMBER(m0_w);
DECLARE_WRITE_LINE_MEMBER(m1_w);