summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/nes/event.cpp
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2018-05-13 12:51:03 -0400
committer AJR <ajrhacker@users.noreply.github.com>2018-05-13 12:51:03 -0400
commit5b316c6d231e8ed95ea23317a897042930e1791e (patch)
tree9defe025da21bbb332691193911b7bde74bc56db /src/devices/bus/nes/event.cpp
parent48b45768a0e452f055ed52249ec0f3161a7370bc (diff)
nes: CPU clock (well, phase 2 clock) also received by cartridge slot (nw)
Diffstat (limited to 'src/devices/bus/nes/event.cpp')
-rw-r--r--src/devices/bus/nes/event.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/bus/nes/event.cpp b/src/devices/bus/nes/event.cpp
index 3f6065f449d..6fd85256f7e 100644
--- a/src/devices/bus/nes/event.cpp
+++ b/src/devices/bus/nes/event.cpp
@@ -52,7 +52,7 @@ void nes_event_device::device_start()
common_start();
event_timer = timer_alloc(TIMER_EVENT);
event_timer->adjust(attotime::never);
- timer_freq = machine().device<cpu_device>("maincpu")->cycles_to_attotime(1);
+ timer_freq = clocks_to_attotime(1);
save_item(NAME(m_latch));
save_item(NAME(m_count));