From c4fd9e775333f9262240b5f1224600bc49106027 Mon Sep 17 00:00:00 2001 From: OBattler Date: Sat, 10 Apr 2021 19:49:07 +0200 Subject: [PATCH] Added a comment to that piece of code in pit.c to avoid future confusion. --- src/pit.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pit.c b/src/pit.c index e9f25237b..a4b865f1c 100644 --- a/src/pit.c +++ b/src/pit.c @@ -647,6 +647,8 @@ pit_read(uint16_t addr, void *priv) break; case 3: case 0x83: + /* Yes, wm is correct here - this is to ensure correct readout while the + count is being written. */ if (ctr->wm & 0x80) ret = ~(ctr->l & 0xff); else