Extra empty buffer test.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@151
This commit is contained in:
parent
44c0b660fc
commit
35c9b53309
1 changed files with 6 additions and 4 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue