mirror of
https://github.com/86Box/86Box.git
synced 2025-01-22 17:22:25 -05:00
Also applied the changes to pit_fast.c.
This commit is contained in:
parent
1b4cc90455
commit
e64b7e837c
1 changed files with 7 additions and 6 deletions
|
@ -522,13 +522,14 @@ pitf_read_reg(void *priv, uint8_t reg)
|
|||
break;
|
||||
case 0x07:
|
||||
/* The SiS 551x datasheet is unclear about how exactly
|
||||
this register is structured. */
|
||||
this register is structured.
|
||||
Update: But the SiS 5571 datasheet is clear. */
|
||||
ret = (dev->counters[0].rm & 0x80) ? 0x01 : 0x00;
|
||||
ret = (dev->counters[0].wm & 0x80) ? 0x02 : 0x00;
|
||||
ret = (dev->counters[1].rm & 0x80) ? 0x04 : 0x00;
|
||||
ret = (dev->counters[1].wm & 0x80) ? 0x08 : 0x00;
|
||||
ret = (dev->counters[2].rm & 0x80) ? 0x10 : 0x00;
|
||||
ret = (dev->counters[2].wm & 0x80) ? 0x20 : 0x00;
|
||||
ret |= (dev->counters[1].rm & 0x80) ? 0x02 : 0x00;
|
||||
ret |= (dev->counters[2].rm & 0x80) ? 0x04 : 0x00;
|
||||
ret |= (dev->counters[0].wm & 0x80) ? 0x08 : 0x00;
|
||||
ret |= (dev->counters[1].wm & 0x80) ? 0x10 : 0x00;
|
||||
ret |= (dev->counters[2].wm & 0x80) ? 0x20 : 0x00;
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue