summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/64h156.cpp
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2017-03-02 16:42:45 -0500
committer AJR <ajrhacker@users.noreply.github.com>2017-03-02 16:42:45 -0500
commit4e59ab6ffe18b23ef4da44707ddf8728c01d5c5b (patch)
tree2ecab322c18f928df67b9cf75b226aec725a6c91 /src/devices/machine/64h156.cpp
parent71656df5c3a0751113f0cbb90da1ad284219a098 (diff)
Device fixups (nw)
- c2040fdc, c64h156: Calculate clock period in device_clock_changed rather than in constructor - isa8, isa16: Eliminate device_config_complete (probably unnecessary, since m_maincpu is already set in device_start) These changes prevent assert failures with the new ad-hoc device construction in -listxml, though they are otherwise independent.
Diffstat (limited to 'src/devices/machine/64h156.cpp')
-rw-r--r--src/devices/machine/64h156.cpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/devices/machine/64h156.cpp b/src/devices/machine/64h156.cpp
index 5ce4497c860..e3f81183202 100644
--- a/src/devices/machine/64h156.cpp
+++ b/src/devices/machine/64h156.cpp
@@ -70,8 +70,7 @@ c64h156_device::c64h156_device(const machine_config &mconfig, const char *tag, d
m_ted(0),
m_yb(0),
m_atni(0),
- m_atna(0),
- m_period(attotime::from_hz(clock))
+ m_atna(0)
{
memset(&cur_live, 0x00, sizeof(cur_live));
cur_live.tm = attotime::never;
@@ -110,6 +109,17 @@ void c64h156_device::device_start()
//-------------------------------------------------
+// device_clock_changed - called when the
+// device clock is altered in any way
+//-------------------------------------------------
+
+void c64h156_device::device_clock_changed()
+{
+ m_period = attotime::from_hz(clock());
+}
+
+
+//-------------------------------------------------
// device_reset - device-specific reset
//-------------------------------------------------