1
0
Fork 0

Extra empty buffer test.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@151
This commit is contained in:
Sjoerd van der Berg 2002-08-14 22:13:31 +00:00
parent 44c0b660fc
commit 35c9b53309

View file

@ -63,10 +63,12 @@ static Bit8u read_p61(Bit32u port) {
static void write_p61(Bit32u port,Bit8u val) {
//TODO Enable spreaker through here :)
if ((val&128)) { /* Keyboard acknowledge */
kbuf_used--;
kbuf_pos++;
if (kbuf_pos>=KEYBUFSIZE) kbuf_pos=0;
if (kbuf_used>0) PIC_ActivateIRQ(1);
if (kbuf_used) {
kbuf_used--;
kbuf_pos++;
if (kbuf_pos>=KEYBUFSIZE) kbuf_pos=0;
if (kbuf_used) PIC_ActivateIRQ(1);
}
}
port_61_data=val;
if ((val & 3)==3) {