From 8992f6f8ecb50e34aefc3979a6908a885034d9a0 Mon Sep 17 00:00:00 2001 From: cracyc Date: Sun, 20 Oct 2013 00:22:27 +0000 Subject: [PATCH] i186: timer is 1/4 internal clock, 1/8 external clock (nw) --- src/emu/cpu/i86/i186.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/emu/cpu/i86/i186.c b/src/emu/cpu/i86/i186.c index a36b8bcfad2..66ef7b10b9b 100644 --- a/src/emu/cpu/i86/i186.c +++ b/src/emu/cpu/i86/i186.c @@ -1000,7 +1000,7 @@ void i80186_cpu_device::device_timer(emu_timer &timer, device_timer_id id, int p count = t->maxA; count = count ? count : 0x10000; - t->int_timer->adjust((attotime::from_hz(clock()/4) * count), which); + t->int_timer->adjust((attotime::from_hz(clock()/8) * count), which); if (LOG_TIMER) logerror(" Repriming interrupt\n"); } else @@ -1168,7 +1168,7 @@ void i80186_cpu_device::internal_timer_update(int which,int new_count,int new_ma int diff = t->maxA - t->count; if (diff <= 0) diff += 0x10000; - t->int_timer->adjust(attotime::from_hz(clock()/4) * diff, which); + t->int_timer->adjust(attotime::from_hz(clock()/8) * diff, which); if (LOG_TIMER) logerror("Set interrupt timer for %d\n", which); } else