Reverted rev 339. Fixes Adlib Gold jukebox.

Disable PIT timer operation between write of control word and initial count. Lemmings High Performance PC mode now works without incorrect rev 339 commit.
This commit is contained in:
TomW 2015-10-10 14:32:50 +01:00
commit 6602a32304
3 changed files with 17 additions and 3 deletions

View file

@ -111,13 +111,11 @@ void pic_write(uint16_t addr, uint8_t val, void *priv)
if (pic.ins&(1<<c))
{
pic.ins&=~(1<<c);
pic.pend &= ~(1 << c);
pic_update_mask(&pic.mask2, pic.ins);
if (c == 2 && (pic2.pend&~pic2.mask)&~pic2.mask2)
pic.pend |= (1 << 2);
// pic.pend&=~(1<<c);
if (c==1 && keywaiting)
{
intclear&=~1;