diff options
Diffstat (limited to 'src/mame/video/spectrum.cpp')
-rw-r--r-- | src/mame/video/spectrum.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mame/video/spectrum.cpp b/src/mame/video/spectrum.cpp index 9f475d94c45..f98d5c66640 100644 --- a/src/mame/video/spectrum.cpp +++ b/src/mame/video/spectrum.cpp @@ -37,10 +37,11 @@ VIDEO_START_MEMBER(spectrum_state,spectrum) m_screen_location = m_video_ram; + m_irq_off_timer = timer_alloc(TIMER_IRQ_OFF); + m_CyclesPerLine = SPEC_CYCLES_PER_LINE; m_scanline_timer = timer_alloc(TIMER_SCANLINE); - timer_set(m_maincpu->cycles_to_attotime(m_CyclesPerLine), TIMER_SCANLINE); - + m_scanline_timer->adjust(m_maincpu->cycles_to_attotime(m_CyclesPerLine)); } VIDEO_START_MEMBER(spectrum_state,spectrum_128) @@ -58,9 +59,11 @@ VIDEO_START_MEMBER(spectrum_state,spectrum_128) m_screen_location = m_ram->pointer() + (5 << 14); + m_irq_off_timer = timer_alloc(TIMER_IRQ_OFF); + m_CyclesPerLine = SPEC128_CYCLES_PER_LINE; m_scanline_timer = timer_alloc(TIMER_SCANLINE); - timer_set(m_maincpu->cycles_to_attotime(m_CyclesPerLine), TIMER_SCANLINE); + m_scanline_timer->adjust(m_maincpu->cycles_to_attotime(m_CyclesPerLine)); } |