From 8aae3f6163ae01b799a5224de490d7e5a35f34dc Mon Sep 17 00:00:00 2001 From: OBattler Date: Sat, 10 Apr 2021 19:46:06 +0200 Subject: [PATCH] Reverted the inappropriate PIT "fix" by qeggers that actually broke PIT readouts while writing the counts (so yes, the wm was intended, not rm), fixes several machines. --- src/pit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pit.c b/src/pit.c index 9646097ec..e9f25237b 100644 --- a/src/pit.c +++ b/src/pit.c @@ -647,7 +647,7 @@ pit_read(uint16_t addr, void *priv) break; case 3: case 0x83: - if (ctr->rm & 0x80) + if (ctr->wm & 0x80) ret = ~(ctr->l & 0xff); else ret = count >> ((ctr->rm & 0x80) ? 8 : 0);