From f2e1e307c6fef5388ebe20936f59d50050ac53b5 Mon Sep 17 00:00:00 2001 From: SarahW Date: Mon, 6 Nov 2017 21:38:07 +0000 Subject: [PATCH] Don't write directly to PC speaker state when writing PIT control byte. Fixes engine cacophony in Hard Drivin' II. --- src/pit.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/pit.c b/src/pit.c index c6e96f8..af493a6 100644 --- a/src/pit.c +++ b/src/pit.c @@ -401,7 +401,6 @@ void pit_write(uint16_t addr, uint8_t val, void *p) pit->rl[t] = pit_read_timer(pit, t); } pit->rereadlatch[t]=1; - if (t == 2) ppispeakon=speakon=(pit->m[2]==0)?0:1; pit->initial[t] = 1; if (!pit->m[t]) pit_set_out(pit, t, 0);