summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/machine/nes_bootleg.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mess/machine/nes_bootleg.c')
-rw-r--r--src/mess/machine/nes_bootleg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mess/machine/nes_bootleg.c b/src/mess/machine/nes_bootleg.c
index ecf28397dbb..94ef6074c32 100644
--- a/src/mess/machine/nes_bootleg.c
+++ b/src/mess/machine/nes_bootleg.c
@@ -202,6 +202,7 @@ void nes_mbaby_device::device_start()
common_start();
irq_timer = timer_alloc(TIMER_IRQ);
irq_timer->reset();
+ timer_freq = machine().device<cpu_device>("maincpu")->cycles_to_attotime(24576);
save_item(NAME(m_irq_enable));
save_item(NAME(m_latch));
@@ -673,7 +674,7 @@ WRITE8_MEMBER(nes_mbaby_device::write_h)
if (!m_irq_enable && (data & 0x02))
{
m_irq_enable = 1;
- irq_timer->adjust(machine().device<cpu_device>("maincpu")->cycles_to_attotime(24576));
+ irq_timer->adjust(timer_freq);
}
if (!(data & 0x02))
{