summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/drivers/pegasus.c
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2012-09-25 14:21:56 +0000
committer Miodrag Milanovic <mmicko@gmail.com>2012-09-25 14:21:56 +0000
commitd8bc866c4a7550ed1b596560125eb77edf618db3 (patch)
treefecc49ffd395261f3907b76d836e5bfba4d7e702 /src/mess/drivers/pegasus.c
parent6c40f0f2920a208ff456d8f34f3684367ef3fd8a (diff)
TIMER_CALLBACK_DEVICE_MEMBER modernization part 2 (no whatsnew)
Diffstat (limited to 'src/mess/drivers/pegasus.c')
-rw-r--r--src/mess/drivers/pegasus.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mess/drivers/pegasus.c b/src/mess/drivers/pegasus.c
index 6197a425e83..967c7fd7f02 100644
--- a/src/mess/drivers/pegasus.c
+++ b/src/mess/drivers/pegasus.c
@@ -81,11 +81,12 @@ public:
virtual void video_start();
UINT32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
DECLARE_DRIVER_INIT(pegasus);
+ TIMER_DEVICE_CALLBACK_MEMBER(pegasus_firq);
};
-static TIMER_DEVICE_CALLBACK( pegasus_firq )
+TIMER_DEVICE_CALLBACK_MEMBER(pegasus_state::pegasus_firq)
{
- device_t *cpu = timer.machine().device( "maincpu" );
+ device_t *cpu = machine().device( "maincpu" );
cpu->execute().set_input_line(M6809_FIRQ_LINE, HOLD_LINE);
}
@@ -494,7 +495,7 @@ static MACHINE_CONFIG_START( pegasus, pegasus_state )
MCFG_CPU_ADD("maincpu", M6809E, XTAL_4MHz) // actually a 6809C - 4MHZ clock coming in, 1MHZ internally
MCFG_CPU_PROGRAM_MAP(pegasus_mem)
- MCFG_TIMER_ADD_PERIODIC("pegasus_firq", pegasus_firq, attotime::from_hz(400)) // controls accuracy of the clock (ctrl-P)
+ MCFG_TIMER_DRIVER_ADD_PERIODIC("pegasus_firq", pegasus_state, pegasus_firq, attotime::from_hz(400))
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)