summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/stfight.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/stfight.cpp')
-rw-r--r--src/mame/machine/stfight.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mame/machine/stfight.cpp b/src/mame/machine/stfight.cpp
index bc8ceeb09fe..199659d145c 100644
--- a/src/mame/machine/stfight.cpp
+++ b/src/mame/machine/stfight.cpp
@@ -78,6 +78,8 @@ void stfight_state::machine_start()
m_main_bank->configure_entries(0, 4, memregion("maincpu")->base() + 0x10000, 0x4000);
m_main_bank->set_entry(0);
+ m_int1_timer = timer_alloc(TIMER_STFIGHT_INTERRUPT_1);
+
save_item(NAME(m_coin_state));
save_item(NAME(m_fm_data));
@@ -131,7 +133,7 @@ INTERRUPT_GEN_MEMBER(stfight_state::stfight_vb_interrupt)
{
// Do a RST10
device.execute().set_input_line_and_vector(0, HOLD_LINE, 0xcf);
- timer_set(attotime::from_hz(120), TIMER_STFIGHT_INTERRUPT_1);
+ m_int1_timer->adjust(attotime::from_hz(120));
}
/*