From 6fd2cfaf90765819345ba1e0274f8d4236afee81 Mon Sep 17 00:00:00 2001 From: OBattler Date: Thu, 9 Dec 2021 23:59:45 +0100 Subject: [PATCH] Fixed a PIT bug. --- src/pit.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pit.c b/src/pit.c index 582c748a7..fe256f53d 100644 --- a/src/pit.c +++ b/src/pit.c @@ -154,6 +154,8 @@ ctr_tick(ctr_t *ctr) /* This is true for all modes */ ctr_load_count(ctr); ctr->state = 2; + if ((ctr->m & 0x07) == 0x01) + ctr_set_out(ctr, 0); return; }