diff options
Diffstat (limited to 'src/devices/machine/64h156.cpp')
-rw-r--r-- | src/devices/machine/64h156.cpp | 14 |
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 //------------------------------------------------- |