summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/machine/6532riot.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2008-11-26 06:38:08 +0000
committer Aaron Giles <aaron@aarongiles.com>2008-11-26 06:38:08 +0000
commit6924ad81208bf71964ee63da20d14582972331f0 (patch)
treea287ea66747c45300dae4963f0bbaa5942b604c3 /src/emu/machine/6532riot.c
parentbbac5a66b24aae68a2822fc4d3fcb17b63c704ab (diff)
Changed timer_alloc, timer_set, timer_pulse, timer_call_after_resynch,
and timer_get_time to pass the machine parameter. Moved timer globals to hang off of the running_machine.
Diffstat (limited to 'src/emu/machine/6532riot.c')
-rw-r--r--src/emu/machine/6532riot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/machine/6532riot.c b/src/emu/machine/6532riot.c
index c24abfc6f45..83661c5a59b 100644
--- a/src/emu/machine/6532riot.c
+++ b/src/emu/machine/6532riot.c
@@ -209,7 +209,7 @@ WRITE8_DEVICE_HANDLER( riot6532_w )
if ((offset & 0x14) == 0x14)
{
static const UINT8 timershift[4] = { 0, 3, 6, 10 };
- attotime curtime = timer_get_time();
+ attotime curtime = timer_get_time(device->machine);
INT64 target;
/* A0-A1 contain the timer divisor */
@@ -446,7 +446,7 @@ static DEVICE_START( riot6532 )
riot->port[1].out_func = riot->intf->out_b_func;
/* allocate timers */
- riot->timer = timer_alloc(timer_end_callback, (void *)device);
+ riot->timer = timer_alloc(device->machine, timer_end_callback, (void *)device);
/* register for save states */
state_save_register_item("riot6532", device->tag, 0, riot->port[0].in);