Cleared null count bit in PIT status byte. Fixes Wing Commander III, Wings of Fury and probably other Origin games.
This commit is contained in:
parent
f1ee3cddba
commit
3c431794f0
1 changed files with 3 additions and 3 deletions
|
|
@ -353,17 +353,17 @@ void pit_write(uint16_t addr, uint8_t val, void *p)
|
||||||
{
|
{
|
||||||
if (val & 2)
|
if (val & 2)
|
||||||
{
|
{
|
||||||
pit->read_status[0] = (pit->ctrls[0] & 0x3f) | 0x40 | (pit->out[0] ? 0x80 : 0);
|
pit->read_status[0] = (pit->ctrls[0] & 0x3f) | (pit->out[0] ? 0x80 : 0);
|
||||||
pit->do_read_status[0] = 1;
|
pit->do_read_status[0] = 1;
|
||||||
}
|
}
|
||||||
if (val & 4)
|
if (val & 4)
|
||||||
{
|
{
|
||||||
pit->read_status[1] = (pit->ctrls[1] & 0x3f) | 0x40 | (pit->out[1] ? 0x80 : 0);
|
pit->read_status[1] = (pit->ctrls[1] & 0x3f) | (pit->out[1] ? 0x80 : 0);
|
||||||
pit->do_read_status[1] = 1;
|
pit->do_read_status[1] = 1;
|
||||||
}
|
}
|
||||||
if (val & 8)
|
if (val & 8)
|
||||||
{
|
{
|
||||||
pit->read_status[2] = (pit->ctrls[2] & 0x3f) | 0x40 | (pit->out[2] ? 0x80 : 0);
|
pit->read_status[2] = (pit->ctrls[2] & 0x3f) | (pit->out[2] ? 0x80 : 0);
|
||||||
pit->do_read_status[2] = 1;
|
pit->do_read_status[2] = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue