Writing PIT control byte with mode 0 resets PIT output. Fixes 103 error on PS/1.

This commit is contained in:
TomW 2015-08-26 20:34:05 +01:00
commit 91eaa9c83b

View file

@ -336,6 +336,8 @@ void pit_write(uint16_t addr, uint8_t val, void *priv)
pit.rereadlatch[val>>6]=1;
if ((val>>6)==2) ppispeakon=speakon=(pit.m[2]==0)?0:1;
pit.initial[t] = 1;
if (!pit.m[val >> 6])
pit_set_out(val >> 6, 0);
// pclog("ppispeakon %i\n",ppispeakon);
}
pit.wp=0;