summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/machine/pit8253.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2011-02-06 07:29:03 +0000
committer Aaron Giles <aaron@aarongiles.com>2011-02-06 07:29:03 +0000
commitae5dfca0bf78cf1d3d51107ec29e82629d008fbe (patch)
tree686d62bb42e994b060317064d9b42c24176db8a3 /src/emu/machine/pit8253.c
parent4526f1b3a916cc469ab5a0cab9d78bbe5c159cbc (diff)
Fix build break from last checkin.
Also replace timer_get_time() with machine->time() 1. Main conversion timer_get_time( *)\( *([^)]+) *\) \2->time\1() 2. Cleanup #1 &machine->time machine.time 3. Cleanup #2 &m_machine->time m_machine.time
Diffstat (limited to 'src/emu/machine/pit8253.c')
-rw-r--r--src/emu/machine/pit8253.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/emu/machine/pit8253.c b/src/emu/machine/pit8253.c
index 6f642c998f7..ab854eb38ff 100644
--- a/src/emu/machine/pit8253.c
+++ b/src/emu/machine/pit8253.c
@@ -614,7 +614,7 @@ static void simulate2(device_t *device, struct pit8253_timer *timer, INT64 elaps
{
attotime next_fire_time = timer->last_updated + cycles_to_output * attotime::from_hz( timer->clockin );
- timer_adjust_oneshot(timer->updatetimer, next_fire_time - timer_get_time(device->machine), timer->index );
+ timer_adjust_oneshot(timer->updatetimer, next_fire_time - device->machine->time(), timer->index );
}
LOG2(("pit8253: simulate2(): simulating %d cycles for %d in mode %d, bcd = %d, phase = %d, gate = %d, output %d, value = 0x%04x, cycles_to_output = %04x\n",
@@ -654,7 +654,7 @@ static void update(device_t *device, struct pit8253_timer *timer)
{
/* With the 82C54's maximum clockin of 10MHz, 64 bits is nearly 60,000
years of time. Should be enough for now. */
- attotime now = timer_get_time(device->machine);
+ attotime now = device->machine->time();
attotime elapsed_time = now - timer->last_updated;
INT64 elapsed_cycles = elapsed_time.as_double() * timer->clockin;
@@ -916,7 +916,7 @@ WRITE8_DEVICE_HANDLER( pit8253_w )
update(device, timer);
- if ( timer_get_time(device->machine) > timer->last_updated && timer->clockin != 0 )
+ if ( device->machine->time() > timer->last_updated && timer->clockin != 0 )
{
middle_of_a_cycle = 1;
}
@@ -1149,7 +1149,7 @@ static DEVICE_RESET( pit8253 ) {
timer->null_count = 1;
timer->cycles_to_output = CYCLES_NEVER;
- timer->last_updated = timer_get_time(device->machine);
+ timer->last_updated = device->machine->time();
update(device, timer);
}