summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/cpu/h83002/h8_8.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2010-07-07 21:01:36 +0000
committer Aaron Giles <aaron@aarongiles.com>2010-07-07 21:01:36 +0000
commit20fe094c0e9cacc0ceeaa2f15b0348ed81751fab (patch)
treee44d35618aad60fa43ac4675033b4e47eaf5765c /src/emu/cpu/h83002/h8_8.c
parent65f8a15555ffecb57a65e447e428a4212ec33e4c (diff)
Remove the global clock accessors and cpu_* aliases:
cpu_get_clock -> device_get_clock cpu_set_clock -> device_set_clock cpu_get_clockscale -> device_get_clock_scale cpu_set_clockscale -> device_set_clock_scale Search: device_get_clock([ \t]*)\(([ \t]*)([^)]+) Replace: \3->unscaled_clock\1\(\2 Search: device_set_clock([ \t]*)\(([ \t]*)([^,]+),[ \t]* Replace: \3->set_unscaled_clock\1\(\2 Search: device_get_clock_scale([ \t]*)\(([ \t]*)([^)]+) Replace: \3->clock_scale\1\(\2 Search: device_set_clock_scale([ \t]*)\(([ \t]*)([^,]+),[ \t]* Replace: \3->set_clock_scale\1\(\2
Diffstat (limited to 'src/emu/cpu/h83002/h8_8.c')
-rw-r--r--src/emu/cpu/h83002/h8_8.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/cpu/h83002/h8_8.c b/src/emu/cpu/h83002/h8_8.c
index 0dd5d6ef9f0..2eded59d614 100644
--- a/src/emu/cpu/h83002/h8_8.c
+++ b/src/emu/cpu/h83002/h8_8.c
@@ -416,13 +416,13 @@ static void recalc_8bit_timer(h83xx_state *h8, int t)
if (h8->TCORA[t])
{
- time = (cpu_get_clock(h8->device) / dividers[div]) / (h8->TCORA[t] - h8->TCNT[t]);
+ time = (h8->device->unscaled_clock() / dividers[div]) / (h8->TCORA[t] - h8->TCNT[t]);
timer_adjust_oneshot(h8->timer[(t*2)], ATTOTIME_IN_HZ(time), 0);
}
if (h8->TCORB[t])
{
- time = (cpu_get_clock(h8->device) / dividers[div]) / (h8->TCORB[t] - h8->TCNT[t]);
+ time = (h8->device->unscaled_clock() / dividers[div]) / (h8->TCORB[t] - h8->TCNT[t]);
timer_adjust_oneshot(h8->timer[(t*2)+1], ATTOTIME_IN_HZ(time), 0);
}
}