summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/namcos23.c
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2012-09-24 15:01:45 +0000
committer Miodrag Milanovic <mmicko@gmail.com>2012-09-24 15:01:45 +0000
commite624f84f348ad700b12230a7513288c3ff97f5bf (patch)
tree576984d6a73376e195baccd6bf401825eca23486 /src/mame/drivers/namcos23.c
parent3679f744c291a75d83085fe049f91ddc94b1419a (diff)
modernization or timer callbacks part 3 - final (no whatsnew)
Diffstat (limited to 'src/mame/drivers/namcos23.c')
-rw-r--r--src/mame/drivers/namcos23.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mame/drivers/namcos23.c b/src/mame/drivers/namcos23.c
index 6a1de93007c..acd323341d4 100644
--- a/src/mame/drivers/namcos23.c
+++ b/src/mame/drivers/namcos23.c
@@ -1439,6 +1439,7 @@ public:
DECLARE_MACHINE_RESET(gmen);
UINT32 screen_update_ss23(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
INTERRUPT_GEN_MEMBER(s23_interrupt);
+ TIMER_CALLBACK_MEMBER(c361_timer_cb);
};
@@ -1749,14 +1750,13 @@ READ16_MEMBER(namcos23_state::s23_ctl_r)
}
// raster timer. TC2 indicates it's probably one-shot since it resets it each VBL...
-static TIMER_CALLBACK( c361_timer_cb )
+TIMER_CALLBACK_MEMBER(namcos23_state::c361_timer_cb)
{
- namcos23_state *state = machine.driver_data<namcos23_state>();
- c361_t &c361 = state->m_c361;
+ c361_t &c361 = m_c361;
if (c361.scanline != 511)
{
- machine.device("maincpu")->execute().set_input_line(MIPS3_IRQ1, ASSERT_LINE);
+ machine().device("maincpu")->execute().set_input_line(MIPS3_IRQ1, ASSERT_LINE);
c361.timer->adjust(attotime::never);
}
}
@@ -2452,7 +2452,7 @@ INTERRUPT_GEN_MEMBER(namcos23_state::s23_interrupt)
MACHINE_START_MEMBER(namcos23_state,s23)
{
c361_t &c361 = m_c361;
- c361.timer = machine().scheduler().timer_alloc(FUNC(c361_timer_cb));
+ c361.timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(namcos23_state::c361_timer_cb),this));
c361.timer->adjust(attotime::never);
}