From 3d35442da7c897b420540a3af7a893d1853f6f90 Mon Sep 17 00:00:00 2001 From: TomW Date: Wed, 25 Nov 2015 21:25:01 +0000 Subject: [PATCH] Removed duplicate PIT counting from 808x.c - fixes some timing issues with XT machines. --- src/808x.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/808x.c b/src/808x.c index 6448f1b..c0017f2 100644 --- a/src/808x.c +++ b/src/808x.c @@ -806,10 +806,6 @@ void clockhardware() int diff = cycdiff - cycles - current_diff; current_diff += diff; - if (pit.running[0]) pit.c[0] -= diff; - if (pit.running[1]) pit.c[1] -= diff; - if (pit.running[2]) pit.c[2] -= diff; - if ((pit.c[0] < 1) || (pit.c[1] < 1) || (pit.c[2] < 1)) pit_poll(); timer_end_period(cycles); }