diff options
| -rw-r--r-- | sys/src/cmd/aux/realemu/pit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/aux/realemu/pit.c b/sys/src/cmd/aux/realemu/pit.c index 206b93545..8c5ed744f 100644 --- a/sys/src/cmd/aux/realemu/pit.c +++ b/sys/src/cmd/aux/realemu/pit.c @@ -51,7 +51,7 @@ latchcount(Pit *ch) return; w = ch->count & 0xFFFF; if(ch->bcd) - w = (w % 10) + ((w/10) % 10)<<4 + ((w/100) % 10)<<8 + ((w/1000) % 10)<<12; + w = (w % 10) | ((w/10) % 10)<<4 | ((w/100) % 10)<<8 | ((w/1000) % 10)<<12; ch->rlatch[0] = w & 0xFF; ch->rlatch[1] = (w >> 8) & 0xFF; ch->rcount = 0; |
