summaryrefslogtreecommitdiffstats
path: root/src/devices/cpu/psx/rcnt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/psx/rcnt.cpp')
-rw-r--r--src/devices/cpu/psx/rcnt.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/devices/cpu/psx/rcnt.cpp b/src/devices/cpu/psx/rcnt.cpp
index 590cb49bde0..210c6359323 100644
--- a/src/devices/cpu/psx/rcnt.cpp
+++ b/src/devices/cpu/psx/rcnt.cpp
@@ -58,7 +58,7 @@ void psxrcnt_device::device_start()
for( n = 0; n < 3; n++ )
{
- root_counter[ n ].timer = timer_alloc(n);
+ root_counter[ n ].timer = timer_alloc( FUNC( psxrcnt_device::timer_update ), this );
save_item(NAME(root_counter[ n ].n_count), n);
save_item(NAME(root_counter[ n ].n_mode), n);
save_item(NAME(root_counter[ n ].n_target), n);
@@ -227,9 +227,9 @@ void psxrcnt_device::root_timer_adjust( int n_counter )
}
}
-void psxrcnt_device::device_timer(emu_timer &timer, device_timer_id id, int param)
+TIMER_CALLBACK_MEMBER( psxrcnt_device::timer_update )
{
- int n_counter = id;
+ int n_counter = param;
psx_root *root = &root_counter[ n_counter ];
verboselog( *this, 2, "root_finished( %d ) %04x\n", n_counter, root_current( n_counter ) );