diff options
author | 2016-10-28 02:36:58 +0200 | |
---|---|---|
committer | 2016-10-28 02:37:23 +0200 | |
commit | c35c2a9cdc411ec902d898f5d63bc4baeb512253 (patch) | |
tree | 2f4103fdfcfa356fb82b3b2f7284a3a49b038cd9 /src/devices/machine/74161.cpp | |
parent | 93735cdf7e3dbdf75bcd0c29994fd99ff119f6a4 (diff) |
New devices added
-----------------
54/7416x Hex/Quad D Flip-Flops with Clear [Ryan Holtz]
9334/DM9334 8-Bit Addressable Latch [Ryan Holtz]
Diffstat (limited to 'src/devices/machine/74161.cpp')
-rw-r--r-- | src/devices/machine/74161.cpp | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/devices/machine/74161.cpp b/src/devices/machine/74161.cpp index 50cb769ad0f..23f1a27942c 100644 --- a/src/devices/machine/74161.cpp +++ b/src/devices/machine/74161.cpp @@ -16,6 +16,10 @@ const device_type TTL74163 = &device_creator<ttl74163_device>; ttl7416x_device::ttl7416x_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, uint32_t clock, const char *shortname, bool synchronous_reset, uint8_t limit) : device_t(mconfig, type, name, tag, owner, clock, shortname, __FILE__) + , m_qa_func(*this) + , m_qb_func(*this) + , m_qc_func(*this) + , m_qd_func(*this) , m_output_func(*this) , m_tc_func(*this) , m_clear(0) @@ -156,6 +160,35 @@ WRITE_LINE_MEMBER( ttl7416x_device::clock_w ) } } +WRITE8_MEMBER( ttl7416x_device::p_w ) +{ + m_p = data & 0xf; +} + +WRITE_LINE_MEMBER( ttl7416x_device::p1_w ) +{ + m_p &= ~(1 << 0); + m_p |= (state << 0); +} + +WRITE_LINE_MEMBER( ttl7416x_device::p2_w ) +{ + m_p &= ~(1 << 1); + m_p |= (state << 1); +} + +WRITE_LINE_MEMBER( ttl7416x_device::p3_w ) +{ + m_p &= ~(1 << 2); + m_p |= (state << 2); +} + +WRITE_LINE_MEMBER( ttl7416x_device::p4_w ) +{ + m_p &= ~(1 << 3); + m_p |= (state << 3); +} + READ_LINE_MEMBER( ttl7416x_device::output_r ) { return m_out; |