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.

This commit is contained in:
OBattler
2021-04-10 19:46:06 +02:00
parent bcb2e5598e
commit 8aae3f6163

View File

@@ -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);